Skip to content
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.

Commit

Permalink
Show file tree
Hide file tree
Showing 95 changed files with 1,241 additions and 396 deletions.
4 changes: 0 additions & 4 deletions src/Exception/BadMethodCallException.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,12 @@
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_View
*/

namespace Zend\View\Exception;

/**
* Bad method call exception
*
* @category Zend
* @package Zend_View
*/
class BadMethodCallException
extends \BadMethodCallException
Expand Down
4 changes: 0 additions & 4 deletions src/Exception/DomainException.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,12 @@
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_View
*/

namespace Zend\View\Exception;

/**
* Domain exception
*
* @category Zend
* @package Zend_View
*/
class DomainException
extends \DomainException
Expand Down
5 changes: 0 additions & 5 deletions src/Exception/ExceptionInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,9 @@
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_View
*/

namespace Zend\View\Exception;

/**
* @category Zend
* @package Zend_View
*/
interface ExceptionInterface
{}
4 changes: 0 additions & 4 deletions src/Exception/InvalidArgumentException.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,12 @@
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_View
*/

namespace Zend\View\Exception;

/**
* Invalid argument exception
*
* @category Zend
* @package Zend_View
*/
class InvalidArgumentException
extends \InvalidArgumentException
Expand Down
4 changes: 0 additions & 4 deletions src/Exception/InvalidHelperException.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,12 @@
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_View
*/

namespace Zend\View\Exception;

/**
* Invalid helper exception
*
* @category Zend
* @package Zend_View
*/
class InvalidHelperException
extends \Exception
Expand Down
4 changes: 0 additions & 4 deletions src/Exception/RuntimeException.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,12 @@
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_View
*/

namespace Zend\View\Exception;

/**
* Runtime exception
*
* @category Zend
* @package Zend_View
*/
class RuntimeException
extends \RuntimeException
Expand Down
6 changes: 0 additions & 6 deletions src/Helper/AbstractHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,13 @@
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_View
*/

namespace Zend\View\Helper;

use Zend\View\Helper\HelperInterface;
use Zend\View\Renderer\RendererInterface as Renderer;

/**
* @category Zend
* @package Zend_View
* @subpackage Helper
*/
abstract class AbstractHelper implements HelperInterface
{
/**
Expand Down
6 changes: 0 additions & 6 deletions src/Helper/AbstractHtmlElement.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,10 @@
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_View
*/

namespace Zend\View\Helper;

/**
* @category Zend
* @package Zend_View
* @subpackage Helper
*/
abstract class AbstractHtmlElement extends AbstractHelper
{
/**
Expand Down
4 changes: 0 additions & 4 deletions src/Helper/BasePath.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_View
*/

namespace Zend\View\Helper;
Expand All @@ -14,9 +13,6 @@

/**
* Helper for retrieving the base path.
*
* @package Zend_View
* @subpackage Helper
*/
class BasePath extends AbstractHelper
{
Expand Down
4 changes: 0 additions & 4 deletions src/Helper/Cycle.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,12 @@
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_View
*/

namespace Zend\View\Helper;

/**
* Helper for alternating between set of values
*
* @package Zend_View
* @subpackage Helper
*/
class Cycle extends AbstractHelper implements \Iterator
{
Expand Down
4 changes: 0 additions & 4 deletions src/Helper/DeclareVars.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,12 @@
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_View
*/

namespace Zend\View\Helper;

/**
* Helper for declaring default values of template variables
*
* @package Zend_View
* @subpackage Helper
*/
class DeclareVars extends AbstractHelper
{
Expand Down
4 changes: 0 additions & 4 deletions src/Helper/Doctype.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_View
*/

namespace Zend\View\Helper;
Expand All @@ -15,9 +14,6 @@

/**
* Helper for setting and retrieving the doctype
*
* @package Zend_View
* @subpackage Helper
*/
class Doctype extends AbstractHelper
{
Expand Down
5 changes: 0 additions & 5 deletions src/Helper/EscapeCss.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_View
*/

namespace Zend\View\Helper;
Expand All @@ -14,9 +13,6 @@

/**
* Helper for escaping values
*
* @package Zend_View
* @subpackage Helper
*/
class EscapeCss extends Escaper\AbstractHelper
{
Expand All @@ -31,5 +27,4 @@ protected function escape($value)
{
return $this->getEscaper()->escapeCss($value);
}

}
5 changes: 0 additions & 5 deletions src/Helper/EscapeHtml.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_View
*/

namespace Zend\View\Helper;
Expand All @@ -14,9 +13,6 @@

/**
* Helper for escaping values
*
* @package Zend_View
* @subpackage Helper
*/
class EscapeHtml extends Escaper\AbstractHelper
{
Expand All @@ -31,5 +27,4 @@ protected function escape($value)
{
return $this->getEscaper()->escapeHtml($value);
}

}
5 changes: 0 additions & 5 deletions src/Helper/EscapeHtmlAttr.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_View
*/

namespace Zend\View\Helper;
Expand All @@ -14,9 +13,6 @@

/**
* Helper for escaping values
*
* @package Zend_View
* @subpackage Helper
*/
class EscapeHtmlAttr extends Escaper\AbstractHelper
{
Expand All @@ -31,5 +27,4 @@ protected function escape($value)
{
return $this->getEscaper()->escapeHtmlAttr($value);
}

}
5 changes: 0 additions & 5 deletions src/Helper/EscapeJs.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_View
*/

namespace Zend\View\Helper;
Expand All @@ -14,9 +13,6 @@

/**
* Helper for escaping values
*
* @package Zend_View
* @subpackage Helper
*/
class EscapeJs extends Escaper\AbstractHelper
{
Expand All @@ -31,5 +27,4 @@ protected function escape($value)
{
return $this->getEscaper()->escapeJs($value);
}

}
5 changes: 0 additions & 5 deletions src/Helper/EscapeUrl.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_View
*/

namespace Zend\View\Helper;
Expand All @@ -14,9 +13,6 @@

/**
* Helper for escaping values
*
* @package Zend_View
* @subpackage Helper
*/
class EscapeUrl extends Escaper\AbstractHelper
{
Expand All @@ -31,5 +27,4 @@ protected function escape($value)
{
return $this->getEscaper()->escapeUrl($value);
}

}
6 changes: 1 addition & 5 deletions src/Helper/Escaper/AbstractHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_View
*/

namespace Zend\View\Helper\Escaper;
Expand All @@ -16,9 +15,6 @@

/**
* Helper for escaping values
*
* @package Zend_View
* @subpackage Helper
*/
abstract class AbstractHelper extends Helper\AbstractHelper
{
Expand Down Expand Up @@ -65,7 +61,7 @@ public function getEscaper()
*/
public function setEncoding($encoding)
{
if (!is_null($this->escaper)) {
if (null !== $this->escaper) {
throw new Exception\InvalidArgumentException(
'Character encoding settings cannot be changed once the Helper has been used or '
. ' if a Zend\Escaper\Escaper object (with preset encoding option) is set.'
Expand Down
Loading

0 comments on commit c6a0e2c

Please sign in to comment.