import v2.0.0.0_RC3 | 2012-07-01

https://github.com/lucanos/CommunityID -> http://www.itadmins.net/archives/357
This commit is contained in:
2019-07-17 22:31:04 +02:00
parent 38c146901c
commit 2f397f01f7
2677 changed files with 296182 additions and 45159 deletions

View File

@ -17,7 +17,7 @@
* @subpackage View
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: CustomDijit.php 16971 2009-07-22 18:05:45Z mikaelkael $
* @version $Id: CustomDijit.php 18951 2009-11-12 16:26:19Z alexander $
*/
/** Zend_Dojo_View_Helper_DijitContainer */
@ -25,7 +25,7 @@ require_once 'Zend/Dojo/View/Helper/DijitContainer.php';
/**
* Arbitrary dijit support
*
*
* @uses Zend_Dojo_View_Helper_DijitContainer
* @package Zend_Dojo
* @subpackage View
@ -43,13 +43,13 @@ class Zend_Dojo_View_Helper_CustomDijit extends Zend_Dojo_View_Helper_DijitConta
/**
* Render a custom dijit
*
* Requires that either the {@link $_defaultDojotype} property is set, or
* Requires that either the {@link $_defaultDojotype} property is set, or
* that you pass a value to the "dojoType" key of the $params argument.
*
* @param string $id
* @param string $value
* @param array $params
* @param array $attribs
*
* @param string $id
* @param string $value
* @param array $params
* @param array $attribs
* @return string|Zend_Dojo_View_Helper_CustomDijit
*/
public function customDijit($id = null, $value = null, array $params = array(), array $attribs = array())
@ -58,7 +58,7 @@ class Zend_Dojo_View_Helper_CustomDijit extends Zend_Dojo_View_Helper_DijitConta
return $this;
}
if (!array_key_exists('dojoType', $params)
if (!array_key_exists('dojoType', $params)
&& (null === $this->_defaultDojoType)
) {
require_once 'Zend/Dojo/View/Exception.php';
@ -72,23 +72,28 @@ class Zend_Dojo_View_Helper_CustomDijit extends Zend_Dojo_View_Helper_DijitConta
$this->_module = $this->_defaultDojoType;
}
if (array_key_exists('rootNode', $params)) {
$this->setRootNode($params['rootNode']);
unset($params['rootNode']);
}
return $this->_createLayoutContainer($id, $value, $params, $attribs);
}
/**
* Begin capturing content.
*
* Requires that either the {@link $_defaultDojotype} property is set, or
*
* Requires that either the {@link $_defaultDojotype} property is set, or
* that you pass a value to the "dojoType" key of the $params argument.
*
* @param string $id
* @param array $params
* @param array $attribs
*
* @param string $id
* @param array $params
* @param array $attribs
* @return void
*/
public function captureStart($id, array $params = array(), array $attribs = array())
{
if (!array_key_exists('dojoType', $params)
if (!array_key_exists('dojoType', $params)
&& (null === $this->_defaultDojoType)
) {
require_once 'Zend/Dojo/View/Exception.php';