File indexing completed on 2024-12-22 05:36:37
0001 <?php 0002 /** 0003 * Zend Framework 0004 * 0005 * LICENSE 0006 * 0007 * This source file is subject to the new BSD license that is bundled 0008 * with this package in the file LICENSE.txt. 0009 * It is also available through the world-wide-web at this URL: 0010 * http://framework.zend.com/license/new-bsd 0011 * If you did not receive a copy of the license and are unable to 0012 * obtain it through the world-wide-web, please send an email 0013 * to license@zend.com so we can send you a copy immediately. 0014 * 0015 * @category Zend 0016 * @package Zend_Dojo 0017 * @subpackage Form 0018 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) 0019 * @license http://framework.zend.com/license/new-bsd New BSD License 0020 */ 0021 0022 /** Zend_Form_DisplayGroup */ 0023 // require_once 'Zend/Form/DisplayGroup.php'; 0024 0025 /** 0026 * Dijit-enabled DisplayGroup 0027 * 0028 * @uses Zend_Form_DisplayGroup 0029 * @package Zend_Dojo 0030 * @subpackage Form 0031 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) 0032 * @license http://framework.zend.com/license/new-bsd New BSD License 0033 * @version $Id$ 0034 */ 0035 class Zend_Dojo_Form_DisplayGroup extends Zend_Form_DisplayGroup 0036 { 0037 /** 0038 * Constructor 0039 * 0040 * @param string $name 0041 * @param Zend_Loader_PluginLoader $loader 0042 * @param array|Zend_Config|null $options 0043 * @return void 0044 */ 0045 public function __construct($name, Zend_Loader_PluginLoader $loader, $options = null) 0046 { 0047 parent::__construct($name, $loader, $options); 0048 $this->addPrefixPath('Zend_Dojo_Form_Decorator', 'Zend/Dojo/Form/Decorator'); 0049 } 0050 0051 /** 0052 * Set the view object 0053 * 0054 * Ensures that the view object has the dojo view helper path set. 0055 * 0056 * @param Zend_View_Interface $view 0057 * @return Zend_Dojo_Form_Element_Dijit 0058 */ 0059 public function setView(Zend_View_Interface $view = null) 0060 { 0061 if (null !== $view) { 0062 if (false === $view->getPluginLoader('helper')->getPaths('Zend_Dojo_View_Helper')) { 0063 $view->addHelperPath('Zend/Dojo/View/Helper', 'Zend_Dojo_View_Helper'); 0064 } 0065 } 0066 return parent::setView($view); 0067 } 0068 }