web/lib/Zend/View/Helper/Partial.php
changeset 807 877f952ae2bd
parent 207 621fa6caec0c
child 1230 68c69c656a2c
equal deleted inserted replaced
805:5e7a0fedabdf 807:877f952ae2bd
    13  * to license@zend.com so we can send you a copy immediately.
    13  * to license@zend.com so we can send you a copy immediately.
    14  *
    14  *
    15  * @category   Zend
    15  * @category   Zend
    16  * @package    Zend_View
    16  * @package    Zend_View
    17  * @subpackage Helper
    17  * @subpackage Helper
    18  * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
    18  * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
    19  * @version    $Id: Partial.php 20096 2010-01-06 02:05:09Z bkarwin $
    19  * @version    $Id: Partial.php 25203 2013-01-10 11:02:17Z frosch $
    20  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    20  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    21  */
    21  */
    22 
    22 
    23 /** Zend_View_Helper_Abstract.php */
    23 /** Zend_View_Helper_Abstract.php */
    24 require_once 'Zend/View/Helper/Abstract.php';
    24 require_once 'Zend/View/Helper/Abstract.php';
    26 /**
    26 /**
    27  * Helper for rendering a template fragment in its own variable scope.
    27  * Helper for rendering a template fragment in its own variable scope.
    28  *
    28  *
    29  * @package    Zend_View
    29  * @package    Zend_View
    30  * @subpackage Helper
    30  * @subpackage Helper
    31  * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
    31  * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
    32  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    32  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    33  */
    33  */
    34 class Zend_View_Helper_Partial extends Zend_View_Helper_Abstract
    34 class Zend_View_Helper_Partial extends Zend_View_Helper_Abstract
    35 {
    35 {
    36     /**
    36     /**
    69 
    69 
    70         $view = $this->cloneView();
    70         $view = $this->cloneView();
    71         if (isset($this->partialCounter)) {
    71         if (isset($this->partialCounter)) {
    72             $view->partialCounter = $this->partialCounter;
    72             $view->partialCounter = $this->partialCounter;
    73         }
    73         }
       
    74         if (isset($this->partialTotalCount)) {
       
    75             $view->partialTotalCount = $this->partialTotalCount;
       
    76         }
       
    77 
    74         if ((null !== $module) && is_string($module)) {
    78         if ((null !== $module) && is_string($module)) {
    75             require_once 'Zend/Controller/Front.php';
    79             require_once 'Zend/Controller/Front.php';
    76             $moduleDir = Zend_Controller_Front::getInstance()->getControllerDirectory($module);
    80             $moduleDir = Zend_Controller_Front::getInstance()->getControllerDirectory($module);
    77             if (null === $moduleDir) {
    81             if (null === $moduleDir) {
    78                 require_once 'Zend/View/Helper/Partial/Exception.php';
    82                 require_once 'Zend/View/Helper/Partial/Exception.php';