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

Commit

Permalink
Merge remote-tracking branch 'upstream/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
Show file tree
Hide file tree
Showing 165 changed files with 5,201 additions and 3,574 deletions.
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,13 @@
"zendframework/zend-navigation": "Zend\\Navigation component",
"zendframework/zend-paginator": "Zend\\Paginator component",
"zendframework/zend-permissions-acl": "Zend\\Permissions\\Acl component",
"zendframework/zend-servicemanager": "Zend\\ServiceManager component",
"zendframework/zend-servicemanager": "self.version",
"zendframework/zend-uri": "Zend\\Uri component"
},
"extra": {
"branch-alias": {
"dev-master": "2.4-dev",
"dev-develop": "2.5-dev"
"dev-master": "2.2-dev",
"dev-develop": "2.3-dev"
}
},
"autoload-dev": {
Expand Down
6 changes: 1 addition & 5 deletions src/Exception/BadMethodCallException.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,14 @@
* Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @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
6 changes: 1 addition & 5 deletions src/Exception/DomainException.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,14 @@
* Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @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
7 changes: 1 addition & 6 deletions src/Exception/ExceptionInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,11 @@
* Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @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
{}
6 changes: 1 addition & 5 deletions src/Exception/InvalidArgumentException.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,14 @@
* Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @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
6 changes: 1 addition & 5 deletions src/Exception/InvalidHelperException.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,14 @@
* Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @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
6 changes: 1 addition & 5 deletions src/Exception/RuntimeException.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,14 @@
* Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @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
10 changes: 2 additions & 8 deletions src/Helper/AbstractHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,19 @@
* Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @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
{
/**
* View object
* View object instance
*
* @var Renderer
*/
Expand Down
19 changes: 7 additions & 12 deletions src/Helper/AbstractHtmlElement.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,12 @@
* Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @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 Expand Up @@ -50,12 +44,11 @@ public function getClosingBracket()
/**
* Is doctype XHTML?
*
* @return boolean
* @return bool
*/
protected function isXhtml()
{
$doctype = $this->view->plugin('doctype');
return $doctype->isXhtml();
return $this->getView()->plugin('doctype')->isXhtml();
}

/**
Expand All @@ -71,7 +64,8 @@ protected function isXhtml()
protected function htmlAttribs($attribs)
{
$xhtml = '';
$escaper = $this->view->plugin('escapehtml');
$escaper = $this->getView()->plugin('escapehtml');

foreach ((array) $attribs as $key => $val) {
$key = $escaper($key);

Expand Down Expand Up @@ -102,8 +96,8 @@ protected function htmlAttribs($attribs)
} else {
$xhtml .= " $key=\"$val\"";
}

}

return $xhtml;
}

Expand All @@ -123,6 +117,7 @@ protected function normalizeId($value)
$value = str_replace('][', '-', $value);
$value = str_replace('[', '-', $value);
}

return $value;
}
}
8 changes: 2 additions & 6 deletions src/Helper/BasePath.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@
* Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @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,14 +13,11 @@

/**
* Helper for retrieving the base path.
*
* @package Zend_View
* @subpackage Helper
*/
class BasePath extends AbstractHelper
{
/**
* Base path.
* Base path
*
* @var string
*/
Expand Down
Loading

0 comments on commit 5472285

Please sign in to comment.