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: AccordionContainer.php 16204 2009-06-21 18:58:29Z thomas $
* @version $Id: AccordionContainer.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';
/**
* Dojo AccordionContainer dijit
*
*
* @uses Zend_Dojo_View_Helper_DijitContainer
* @package Zend_Dojo
* @subpackage View
@ -48,9 +48,9 @@ class Zend_Dojo_View_Helper_AccordionContainer extends Zend_Dojo_View_Helper_Dij
/**
* dijit.layout.AccordionContainer
*
* @param string $id
* @param string $content
*
* @param string $id
* @param string $content
* @param array $params Parameters to use for dijit creation
* @param array $attribs HTML attributes
* @return string

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: AccordionPane.php 16204 2009-06-21 18:58:29Z thomas $
* @version $Id: AccordionPane.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';
/**
* Dojo AccordionPane dijit
*
*
* @uses Zend_Dojo_View_Helper_DijitContainer
* @package Zend_Dojo
* @subpackage View
@ -48,9 +48,9 @@ class Zend_Dojo_View_Helper_AccordionPane extends Zend_Dojo_View_Helper_DijitCon
/**
* dijit.layout.AccordionPane
*
* @param int $id
* @param string $content
*
* @param int $id
* @param string $content
* @param array $params Parameters to use for dijit creation
* @param array $attribs HTML attributes
* @return string

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: BorderContainer.php 16204 2009-06-21 18:58:29Z thomas $
* @version $Id: BorderContainer.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';
/**
* Dojo BorderContainer dijit
*
*
* @uses Zend_Dojo_View_Helper_DijitContainer
* @package Zend_Dojo
* @subpackage View
@ -54,9 +54,9 @@ class Zend_Dojo_View_Helper_BorderContainer extends Zend_Dojo_View_Helper_DijitC
/**
* dijit.layout.BorderContainer
*
* @param string $id
* @param string $content
*
* @param string $id
* @param string $content
* @param array $params Parameters to use for dijit creation
* @param array $attribs HTML attributes
* @return string

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: Button.php 16204 2009-06-21 18:58:29Z thomas $
* @version $Id: Button.php 18951 2009-11-12 16:26:19Z alexander $
*/
/** Zend_Dojo_View_Helper_Dijit */
@ -25,7 +25,7 @@ require_once 'Zend/Dojo/View/Helper/Dijit.php';
/**
* Dojo Button dijit
*
*
* @uses Zend_Dojo_View_Helper_Dijit
* @package Zend_Dojo
* @subpackage View
@ -48,14 +48,14 @@ class Zend_Dojo_View_Helper_Button extends Zend_Dojo_View_Helper_Dijit
/**
* dijit.form.Button
*
* @param string $id
* @param string $value
*
* @param string $id
* @param string $value
* @param array $params Parameters to use for dijit creation
* @param array $attribs HTML attributes
* @return string
*/
public function button($id, $value = null, array $params = array(), array $attribs = array())
public function button($id, $value = null, array $params = array(), array $attribs = array())
{
$attribs['name'] = $id;
if (!array_key_exists('id', $attribs)) {

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: CheckBox.php 17716 2009-08-21 15:08:31Z matthew $
* @version $Id: CheckBox.php 18951 2009-11-12 16:26:19Z alexander $
*/
/** Zend_Dojo_View_Helper_Dijit */
@ -25,7 +25,7 @@ require_once 'Zend/Dojo/View/Helper/Dijit.php';
/**
* Dojo CheckBox dijit
*
*
* @uses Zend_Dojo_View_Helper_Dijit
* @package Zend_Dojo
* @subpackage View
@ -54,9 +54,9 @@ class Zend_Dojo_View_Helper_CheckBox extends Zend_Dojo_View_Helper_Dijit
/**
* dijit.form.CheckBox
*
* @param int $id
* @param string $content
*
* @param int $id
* @param string $content
* @param array $params Parameters to use for dijit creation
* @param array $attribs HTML attributes
* @param array $checkedOptions Should contain either two items, or the keys checkedValue and uncheckedValue

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: ComboBox.php 16204 2009-06-21 18:58:29Z thomas $
* @version $Id: ComboBox.php 19058 2009-11-19 19:57:17Z matthew $
*/
/** Zend_Dojo_View_Helper_Dijit */
@ -25,7 +25,7 @@ require_once 'Zend/Dojo/View/Helper/Dijit.php';
/**
* Dojo ComboBox dijit
*
*
* @uses Zend_Dojo_View_Helper_Dijit
* @package Zend_Dojo
* @subpackage View
@ -54,9 +54,9 @@ class Zend_Dojo_View_Helper_ComboBox extends Zend_Dojo_View_Helper_Dijit
/**
* dijit.form.ComboBox
*
* @param int $id
* @param mixed $value
*
* @param int $id
* @param mixed $value
* @param array $params Parameters to use for dijit creation
* @param array $attribs HTML attributes
* @param array|null $options Select options
@ -72,9 +72,6 @@ class Zend_Dojo_View_Helper_ComboBox extends Zend_Dojo_View_Helper_Dijit
// using dojo.data datastore
if (false !== ($store = $this->_renderStore($params['store'], $id))) {
$params['store'] = $params['store']['store'];
if ($this->_useProgrammatic()) {
unset($params['store']);
}
if (is_string($store)) {
$html .= $store;
}
@ -99,9 +96,6 @@ class Zend_Dojo_View_Helper_ComboBox extends Zend_Dojo_View_Helper_Dijit
}
}
}
if ($this->_useProgrammatic()) {
unset($params['store']);
}
$html .= $this->_createFormElement($id, $value, $params, $attribs);
return $html;
}
@ -115,8 +109,8 @@ class Zend_Dojo_View_Helper_ComboBox extends Zend_Dojo_View_Helper_Dijit
* Render data store element
*
* Renders to dojo view helper
*
* @param array $params
*
* @param array $params
* @return string|false
*/
protected function _renderStore(array $params, $id)
@ -141,14 +135,13 @@ class Zend_Dojo_View_Helper_ComboBox extends Zend_Dojo_View_Helper_Dijit
if ($this->_useProgrammatic()) {
if (!$this->_useProgrammaticNoScript()) {
require_once 'Zend/Json.php';
$js = 'var ' . $storeParams['jsId'] . ' = '
$this->dojo->addJavascript('var ' . $storeParams['jsId'] . ";\n");
$js = $storeParams['jsId'] . ' = '
. 'new ' . $storeParams['dojoType'] . '('
. Zend_Json::encode($extraParams)
. ");\n"
. 'dijit.byId("' . $id . '").attr("store", '
. $storeParams['jsId'] . ');';
. ");\n";
$js = "function() {\n$js\n}";
$this->dojo->prependOnLoad($js);
$this->dojo->_addZendLoad($js);
}
return true;
}

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: ContentPane.php 16204 2009-06-21 18:58:29Z thomas $
* @version $Id: ContentPane.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';
/**
* Dojo ContentPane dijit
*
*
* @uses Zend_Dojo_View_Helper_DijitContainer
* @package Zend_Dojo
* @subpackage View
@ -48,9 +48,9 @@ class Zend_Dojo_View_Helper_ContentPane extends Zend_Dojo_View_Helper_DijitConta
/**
* dijit.layout.ContentPane
*
* @param string $id
* @param string $content
*
* @param string $id
* @param string $content
* @param array $params Parameters to use for dijit creation
* @param array $attribs HTML attributes
* @return string

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: CurrencyTextBox.php 16204 2009-06-21 18:58:29Z thomas $
* @version $Id: CurrencyTextBox.php 18951 2009-11-12 16:26:19Z alexander $
*/
/** Zend_Dojo_View_Helper_Dijit */
@ -25,7 +25,7 @@ require_once 'Zend/Dojo/View/Helper/Dijit.php';
/**
* Dojo CurrencyTextBox dijit
*
*
* @uses Zend_Dojo_View_Helper_Dijit
* @package Zend_Dojo
* @subpackage View
@ -54,9 +54,9 @@ class Zend_Dojo_View_Helper_CurrencyTextBox extends Zend_Dojo_View_Helper_Dijit
/**
* dijit.form.CurrencyTextBox
*
* @param int $id
* @param mixed $value
*
* @param int $id
* @param mixed $value
* @param array $params Parameters to use for dijit creation
* @param array $attribs HTML attributes
* @return string

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';

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: DateTextBox.php 16204 2009-06-21 18:58:29Z thomas $
* @version $Id: DateTextBox.php 18951 2009-11-12 16:26:19Z alexander $
*/
/** Zend_Dojo_View_Helper_Dijit */
@ -25,7 +25,7 @@ require_once 'Zend/Dojo/View/Helper/Dijit.php';
/**
* Dojo DateTextBox dijit
*
*
* @uses Zend_Dojo_View_Helper_Dijit
* @package Zend_Dojo
* @subpackage View
@ -54,9 +54,9 @@ class Zend_Dojo_View_Helper_DateTextBox extends Zend_Dojo_View_Helper_Dijit
/**
* dijit.form.DateTextBox
*
* @param int $id
* @param mixed $value
*
* @param int $id
* @param mixed $value
* @param array $params Parameters to use for dijit creation
* @param array $attribs HTML attributes
* @return string

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: Dijit.php 16204 2009-06-21 18:58:29Z thomas $
* @version $Id: Dijit.php 19108 2009-11-20 17:19:44Z matthew $
*/
/** Zend_View_Helper_HtmlElement */
@ -25,7 +25,7 @@ require_once 'Zend/View/Helper/HtmlElement.php';
/**
* Dojo dijit base class
*
*
* @uses Zend_View_Helper_Abstract
* @package Zend_Dojo
* @subpackage View
@ -63,12 +63,18 @@ abstract class Zend_Dojo_View_Helper_Dijit extends Zend_View_Helper_HtmlElement
*/
protected $_module;
/**
* Root node element type for layout elements
* @var string
*/
protected $_rootNode = 'div';
/**
* Set view
*
* Set view and enable dojo
*
* @param Zend_View_Interface $view
*
* @param Zend_View_Interface $view
* @return Zend_Dojo_View_Helper_Dijit
*/
public function setView(Zend_View_Interface $view)
@ -79,9 +85,32 @@ abstract class Zend_Dojo_View_Helper_Dijit extends Zend_View_Helper_HtmlElement
return $this;
}
/**
* Get root node type
*
* @return string
*/
public function getRootNode()
{
return $this->_rootNode;
}
/**
* Set root node type
*
* @param string $value
* @return Zend_Dojo_View_Helper_Dijit
*/
public function setRootNode($value)
{
$this->_rootNode = $value;
return $this;
}
/**
* Whether or not to use declarative dijit creation
*
*
* @return bool
*/
protected function _useDeclarative()
@ -91,7 +120,7 @@ abstract class Zend_Dojo_View_Helper_Dijit extends Zend_View_Helper_HtmlElement
/**
* Whether or not to use programmatic dijit creation
*
*
* @return bool
*/
protected function _useProgrammatic()
@ -101,7 +130,7 @@ abstract class Zend_Dojo_View_Helper_Dijit extends Zend_View_Helper_HtmlElement
/**
* Whether or not to use programmatic dijit creation w/o script creation
*
*
* @return bool
*/
protected function _useProgrammaticNoScript()
@ -111,34 +140,35 @@ abstract class Zend_Dojo_View_Helper_Dijit extends Zend_View_Helper_HtmlElement
/**
* Create a layout container
*
* @param int $id
* @param string $content
* @param array $params
* @param array $attribs
* @param string|null $dijit
*
* @param int $id
* @param string $content
* @param array $params
* @param array $attribs
* @param string|null $dijit
* @return string
*/
protected function _createLayoutContainer($id, $content, array $params, array $attribs, $dijit = null)
{
$attribs['id'] = $id;
$attribs = $this->_prepareDijit($attribs, $params, 'layout', $dijit);
$html = '<div' . $this->_htmlAttribs($attribs) . '>'
$nodeType = $this->getRootNode();
$html = '<' . $nodeType . $this->_htmlAttribs($attribs) . '>'
. $content
. "</div>\n";
. "</$nodeType>\n";
return $html;
}
/**
* Create HTML representation of a dijit form element
*
* @param string $id
* @param string $value
* @param array $params
* @param array $attribs
* @param string|null $dijit
*
* @param string $id
* @param string $value
* @param array $params
* @param array $attribs
* @param string|null $dijit
* @return string
*/
public function _createFormElement($id, $value, array $params, array $attribs, $dijit = null)
@ -152,8 +182,8 @@ abstract class Zend_Dojo_View_Helper_Dijit extends Zend_View_Helper_HtmlElement
$attribs = $this->_prepareDijit($attribs, $params, 'element', $dijit);
$html = '<input'
. $this->_htmlAttribs($attribs)
$html = '<input'
. $this->_htmlAttribs($attribs)
. $this->getClosingBracket();
return $html;
}
@ -162,10 +192,10 @@ abstract class Zend_Dojo_View_Helper_Dijit extends Zend_View_Helper_HtmlElement
* Merge attributes and parameters
*
* Also sets up requires
*
* @param array $attribs
* @param array $params
* @param string $type
*
* @param array $attribs
* @param array $params
* @param string $type
* @param string $dijit Dijit type to use (otherwise, pull from $_dijit)
* @return array
*/
@ -230,6 +260,9 @@ abstract class Zend_Dojo_View_Helper_Dijit extends Zend_View_Helper_HtmlElement
$dijit = (null === $dijit) ? $this->_dijit : $dijit;
if ($this->_useDeclarative()) {
$attribs = array_merge($attribs, $params);
if (isset($attribs['required'])) {
$attribs['required'] = ($attribs['required']) ? 'true' : 'false';
}
$attribs['dojoType'] = $dijit;
} elseif (!$this->_useProgrammaticNoScript()) {
$this->_createDijit($dijit, $attribs['id'], $params);
@ -240,10 +273,10 @@ abstract class Zend_Dojo_View_Helper_Dijit extends Zend_View_Helper_HtmlElement
/**
* Create a dijit programmatically
*
* @param string $dijit
* @param string $id
* @param array $params
*
* @param string $dijit
* @param string $id
* @param array $params
* @return void
*/
protected function _createDijit($dijit, $id, array $params)
@ -257,9 +290,9 @@ abstract class Zend_Dojo_View_Helper_Dijit extends Zend_View_Helper_HtmlElement
/**
* Cast a boolean to a string value
*
* @param mixed $item
* @param string $key
*
* @param mixed $item
* @param string $key
* @return void
*/
protected function _castBoolToString(&$item, $key)
@ -272,9 +305,9 @@ abstract class Zend_Dojo_View_Helper_Dijit extends Zend_View_Helper_HtmlElement
/**
* Render a hidden element to hold a value
*
* @param string $id
* @param string|int|float $value
*
* @param string $id
* @param string|int|float $value
* @return string
*/
protected function _renderHiddenElement($id, $value)
@ -289,7 +322,7 @@ abstract class Zend_Dojo_View_Helper_Dijit extends Zend_View_Helper_HtmlElement
/**
* Create JS function for retrieving parent form
*
*
* @return void
*/
protected function _createGetParentFormFunction()

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: DijitContainer.php 16204 2009-06-21 18:58:29Z thomas $
* @version $Id: DijitContainer.php 18951 2009-11-12 16:26:19Z alexander $
*/
/** Zend_Dojo_View_Helper_Dijit */
@ -25,7 +25,7 @@ require_once 'Zend/Dojo/View/Helper/Dijit.php';
/**
* Dijit layout container base class
*
*
* @uses Zend_Dojo_View_Helper_Dijit
* @package Zend_Dojo
* @subpackage View
@ -48,10 +48,10 @@ abstract class Zend_Dojo_View_Helper_DijitContainer extends Zend_Dojo_View_Helpe
/**
* Begin capturing content for layout container
*
* @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())
@ -73,8 +73,8 @@ abstract class Zend_Dojo_View_Helper_DijitContainer extends Zend_Dojo_View_Helpe
/**
* Finish capturing content for layout container
*
* @param string $id
*
* @param string $id
* @return string
*/
public function captureEnd($id)

View File

@ -16,7 +16,7 @@
* @package Zend_Dojo
* @subpackage View
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
* @version $Id: Dojo.php 16541 2009-07-07 06:59:03Z bkarwin $
* @version $Id: Dojo.php 18951 2009-11-12 16:26:19Z alexander $
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@ -26,16 +26,16 @@ require_once 'Zend/Registry.php';
/**
* Zend_Dojo_View_Helper_Dojo: Dojo View Helper
*
* Allows specifying stylesheets, path to dojo, module paths, and onLoad
* events.
*
* Allows specifying stylesheets, path to dojo, module paths, and onLoad
* events.
*
* @package Zend_Dojo
* @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
*/
class Zend_Dojo_View_Helper_Dojo
{
class Zend_Dojo_View_Helper_Dojo
{
/**#@+
* @const Programmatic dijit creation style constants
*/
@ -46,7 +46,7 @@ class Zend_Dojo_View_Helper_Dojo
/**
* @var Zend_View_Interface
*/
public $view;
public $view;
/**
* @var Zend_Dojo_View_Helper_Dojo_Container
@ -61,9 +61,9 @@ class Zend_Dojo_View_Helper_Dojo
/**
* Initialize helper
*
* Retrieve container from registry or create new container and store in
* Retrieve container from registry or create new container and store in
* registry.
*
*
* @return void
*/
public function __construct()
@ -79,8 +79,8 @@ class Zend_Dojo_View_Helper_Dojo
/**
* Set view object
*
* @param Zend_Dojo_View_Interface $view
*
* @param Zend_Dojo_View_Interface $view
* @return void
*/
public function setView(Zend_View_Interface $view)
@ -91,7 +91,7 @@ class Zend_Dojo_View_Helper_Dojo
/**
* Return dojo container
*
*
* @return Zend_Dojo_View_Helper_Dojo_Container
*/
public function dojo()
@ -101,9 +101,9 @@ class Zend_Dojo_View_Helper_Dojo
/**
* Proxy to container methods
*
* @param string $method
* @param array $args
*
* @param string $method
* @param array $args
* @return mixed
* @throws Zend_Dojo_View_Exception For invalid method calls
*/
@ -119,7 +119,7 @@ class Zend_Dojo_View_Helper_Dojo
/**
* Set whether or not dijits should be created declaratively
*
*
* @return void
*/
public static function setUseDeclarative()
@ -130,10 +130,10 @@ class Zend_Dojo_View_Helper_Dojo
/**
* Set whether or not dijits should be created programmatically
*
* Optionally, specifiy whether or not dijit helpers should generate the
* Optionally, specifiy whether or not dijit helpers should generate the
* programmatic dojo.
*
* @param int $style
*
* @param int $style
* @return void
*/
public static function setUseProgrammatic($style = self::PROGRAMMATIC_SCRIPT)
@ -146,7 +146,7 @@ class Zend_Dojo_View_Helper_Dojo
/**
* Should dijits be created declaratively?
*
*
* @return bool
*/
public static function useDeclarative()
@ -156,7 +156,7 @@ class Zend_Dojo_View_Helper_Dojo
/**
* Should dijits be created programmatically?
*
*
* @return bool
*/
public static function useProgrammatic()
@ -166,7 +166,7 @@ class Zend_Dojo_View_Helper_Dojo
/**
* Should dijits be created programmatically but without scripts?
*
*
* @return bool
*/
public static function useProgrammaticNoScript()

View File

@ -16,7 +16,7 @@
* @package Zend_Dojo
* @subpackage View
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
* @version $Id: Container.php 16541 2009-07-07 06:59:03Z bkarwin $
* @version $Id: Container.php 19058 2009-11-19 19:57:17Z matthew $
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@ -26,18 +26,18 @@ require_once 'Zend/Dojo.php';
/**
* Container for Dojo View Helper
*
*
*
* @package Zend_Dojo
* @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
*/
class Zend_Dojo_View_Helper_Dojo_Container
{
{
/**
* @var Zend_View_Interface
*/
public $view;
public $view;
/**
* addOnLoad capture lock
@ -67,7 +67,7 @@ class Zend_Dojo_View_Helper_Dojo_Container
* Dojo version to use from CDN
* @var string
*/
protected $_cdnVersion = '1.2.0';
protected $_cdnVersion = '1.3.2';
/**
* Has the dijit loader been registered?
@ -159,10 +159,16 @@ class Zend_Dojo_View_Helper_Dojo_Container
*/
protected $_stylesheets = array();
/**
* Array of onLoad events specific to Zend_Dojo integration operations
* @var array
*/
protected $_zendLoadActions = array();
/**
* Set view object
*
* @param Zend_Dojo_View_Interface $view
*
* @param Zend_Dojo_View_Interface $view
* @return void
*/
public function setView(Zend_View_Interface $view)
@ -172,7 +178,7 @@ class Zend_Dojo_View_Helper_Dojo_Container
/**
* Enable dojo
*
*
* @return Zend_Dojo_View_Helper_Dojo_Container
*/
public function enable()
@ -183,7 +189,7 @@ class Zend_Dojo_View_Helper_Dojo_Container
/**
* Disable dojo
*
*
* @return Zend_Dojo_View_Helper_Dojo_Container
*/
public function disable()
@ -194,18 +200,18 @@ class Zend_Dojo_View_Helper_Dojo_Container
/**
* Is dojo enabled?
*
*
* @return bool
*/
public function isEnabled()
{
return $this->_enabled;
}
/**
* Specify a module to require
*
* @param string $module
*
* @param string $module
* @return Zend_Dojo_View_Helper_Dojo_Container
*/
public function requireModule($module)
@ -233,18 +239,18 @@ class Zend_Dojo_View_Helper_Dojo_Container
/**
* Retrieve list of modules to require
*
*
* @return array
*/
public function getModules()
{
return $this->_modules;
}
/**
* Register a module path
*
* @param string $path
*
* @param string $path
* @return Zend_Dojo_View_Helper_Dojo_Container
*/
public function registerModulePath($module, $path)
@ -259,7 +265,7 @@ class Zend_Dojo_View_Helper_Dojo_Container
/**
* List registered module paths
*
*
* @return array
*/
public function getModulePaths()
@ -269,8 +275,8 @@ class Zend_Dojo_View_Helper_Dojo_Container
/**
* Add layer (custom build) path
*
* @param string $path
*
* @param string $path
* @return Zend_Dojo_View_Helper_Dojo_Container
*/
public function addLayer($path)
@ -284,7 +290,7 @@ class Zend_Dojo_View_Helper_Dojo_Container
/**
* Get registered layers
*
*
* @return array
*/
public function getLayers()
@ -294,8 +300,8 @@ class Zend_Dojo_View_Helper_Dojo_Container
/**
* Remove a registered layer
*
* @param string $path
*
* @param string $path
* @return Zend_Dojo_View_Helper_Dojo_Container
*/
public function removeLayer($path)
@ -311,7 +317,7 @@ class Zend_Dojo_View_Helper_Dojo_Container
/**
* Clear all registered layers
*
*
* @return Zend_Dojo_View_Helper_Dojo_Container
*/
public function clearLayers()
@ -322,8 +328,8 @@ class Zend_Dojo_View_Helper_Dojo_Container
/**
* Set CDN base path
*
* @param string $url
*
* @param string $url
* @return Zend_Dojo_View_Helper_Dojo_Container
*/
public function setCdnBase($url)
@ -334,18 +340,18 @@ class Zend_Dojo_View_Helper_Dojo_Container
/**
* Return CDN base URL
*
*
* @return string
*/
public function getCdnBase()
{
return $this->_cdnBase;
}
/**
* Use CDN, using version specified
*
* @param string $version
*
* @param string $version
* @return Zend_Dojo_View_Helper_Dojo_Container
*/
public function setCdnVersion($version = null)
@ -356,10 +362,10 @@ class Zend_Dojo_View_Helper_Dojo_Container
}
return $this;
}
/**
* Get CDN version
*
*
* @return string
*/
public function getCdnVersion()
@ -369,8 +375,8 @@ class Zend_Dojo_View_Helper_Dojo_Container
/**
* Set CDN path to dojo (relative to CDN base + version)
*
* @param string $path
*
* @param string $path
* @return Zend_Dojo_View_Helper_Dojo_Container
*/
public function setCdnDojoPath($path)
@ -381,7 +387,7 @@ class Zend_Dojo_View_Helper_Dojo_Container
/**
* Get CDN path to dojo (relative to CDN base + version)
*
*
* @return string
*/
public function getCdnDojoPath()
@ -391,18 +397,18 @@ class Zend_Dojo_View_Helper_Dojo_Container
/**
* Are we using the CDN?
*
*
* @return bool
*/
public function useCdn()
{
return !$this->useLocalPath();
}
/**
* Set path to local dojo
*
* @param string $path
*
* @param string $path
* @return Zend_Dojo_View_Helper_Dojo_Container
*/
public function setLocalPath($path)
@ -414,7 +420,7 @@ class Zend_Dojo_View_Helper_Dojo_Container
/**
* Get local path to dojo
*
*
* @return string
*/
public function getLocalPath()
@ -424,19 +430,19 @@ class Zend_Dojo_View_Helper_Dojo_Container
/**
* Are we using a local path?
*
*
* @return bool
*/
public function useLocalPath()
{
return (null === $this->_localPath) ? false : true;
}
/**
* Set Dojo configuration
*
* @param string $option
* @param mixed $value
*
* @param string $option
* @param mixed $value
* @return Zend_Dojo_View_Helper_Dojo_Container
*/
public function setDjConfig(array $config)
@ -447,9 +453,9 @@ class Zend_Dojo_View_Helper_Dojo_Container
/**
* Set Dojo configuration option
*
* @param string $option
* @param mixed $value
*
* @param string $option
* @param mixed $value
* @return Zend_Dojo_View_Helper_Dojo_Container
*/
public function setDjConfigOption($option, $value)
@ -461,7 +467,7 @@ class Zend_Dojo_View_Helper_Dojo_Container
/**
* Retrieve dojo configuration values
*
*
* @return array
*/
public function getDjConfig()
@ -471,9 +477,9 @@ class Zend_Dojo_View_Helper_Dojo_Container
/**
* Get dojo configuration value
*
* @param string $option
* @param mixed $default
*
* @param string $option
* @param mixed $default
* @return mixed
*/
public function getDjConfigOption($option, $default = null)
@ -484,11 +490,11 @@ class Zend_Dojo_View_Helper_Dojo_Container
}
return $default;
}
/**
* Add a stylesheet by module name
*
* @param string $module
*
* @param string $module
* @return Zend_Dojo_View_Helper_Dojo_Container
*/
public function addStylesheetModule($module)
@ -506,18 +512,18 @@ class Zend_Dojo_View_Helper_Dojo_Container
/**
* Get all stylesheet modules currently registered
*
*
* @return array
*/
public function getStylesheetModules()
{
return $this->_stylesheetModules;
}
/**
* Add a stylesheet
*
* @param string $path
*
* @param string $path
* @return Zend_Dojo_View_Helper_Dojo_Container
*/
public function addStylesheet($path)
@ -532,9 +538,9 @@ class Zend_Dojo_View_Helper_Dojo_Container
/**
* Register the dojo.css stylesheet?
*
* With no arguments, returns the status of the flag; with arguments, sets
* With no arguments, returns the status of the flag; with arguments, sets
* the flag and returns the object.
*
*
* @param null|bool $flag
* @return Zend_Dojo_View_Helper_Dojo_Container|bool
*/
@ -550,7 +556,7 @@ class Zend_Dojo_View_Helper_Dojo_Container
/**
* Retrieve registered stylesheets
*
*
* @return array
*/
public function getStylesheets()
@ -564,7 +570,7 @@ class Zend_Dojo_View_Helper_Dojo_Container
* dojo.addOnLoad accepts:
* - function name
* - lambda
*
*
* @param string $callback Lambda
* @return Zend_Dojo_View_Helper_Dojo_Container
*/
@ -578,7 +584,7 @@ class Zend_Dojo_View_Helper_Dojo_Container
/**
* Prepend an onLoad event to the list of onLoad actions
*
*
* @param string $callback Lambda
* @return Zend_Dojo_View_Helper_Dojo_Container
*/
@ -592,7 +598,7 @@ class Zend_Dojo_View_Helper_Dojo_Container
/**
* Retrieve all registered onLoad actions
*
*
* @return array
*/
public function getOnLoadActions()
@ -602,7 +608,7 @@ class Zend_Dojo_View_Helper_Dojo_Container
/**
* Start capturing routines to run onLoad
*
*
* @return bool
*/
public function onLoadCaptureStart()
@ -619,7 +625,7 @@ class Zend_Dojo_View_Helper_Dojo_Container
/**
* Stop capturing routines to run onLoad
*
*
* @return bool
*/
public function onLoadCaptureEnd()
@ -633,9 +639,9 @@ class Zend_Dojo_View_Helper_Dojo_Container
/**
* Add a programmatic dijit
*
* @param string $id
* @param array $params
*
* @param string $id
* @param array $params
* @return Zend_Dojo_View_Helper_Dojo_Container
*/
public function addDijit($id, array $params)
@ -655,9 +661,9 @@ class Zend_Dojo_View_Helper_Dojo_Container
/**
* Set a programmatic dijit (overwrites)
*
* @param string $id
* @param array $params
*
* @param string $id
* @param array $params
* @return Zend_Dojo_View_Helper_Dojo_Container
*/
public function setDijit($id, array $params)
@ -670,8 +676,8 @@ class Zend_Dojo_View_Helper_Dojo_Container
* Add multiple dijits at once
*
* Expects an array of id => array $params pairs
*
* @param array $dijits
*
* @param array $dijits
* @return Zend_Dojo_View_Helper_Dojo_Container
*/
public function addDijits(array $dijits)
@ -686,8 +692,8 @@ class Zend_Dojo_View_Helper_Dojo_Container
* Set multiple dijits at once (overwrites)
*
* Expects an array of id => array $params pairs
*
* @param array $dijits
*
* @param array $dijits
* @return Zend_Dojo_View_Helper_Dojo_Container
*/
public function setDijits(array $dijits)
@ -698,8 +704,8 @@ class Zend_Dojo_View_Helper_Dojo_Container
/**
* Is the given programmatic dijit already registered?
*
* @param string $id
*
* @param string $id
* @return bool
*/
public function hasDijit($id)
@ -709,8 +715,8 @@ class Zend_Dojo_View_Helper_Dojo_Container
/**
* Retrieve a dijit by id
*
* @param string $id
*
* @param string $id
* @return array|null
*/
public function getDijit($id)
@ -725,7 +731,7 @@ class Zend_Dojo_View_Helper_Dojo_Container
* Retrieve all dijits
*
* Returns dijits as an array of assoc arrays
*
*
* @return array
*/
public function getDijits()
@ -735,8 +741,8 @@ class Zend_Dojo_View_Helper_Dojo_Container
/**
* Remove a programmatic dijit if it exists
*
* @param string $id
*
* @param string $id
* @return Zend_Dojo_View_Helper_Dojo_Container
*/
public function removeDijit($id)
@ -750,7 +756,7 @@ class Zend_Dojo_View_Helper_Dojo_Container
/**
* Clear all dijits
*
*
* @return Zend_Dojo_View_Helper_Dojo_Container
*/
public function clearDijits()
@ -761,7 +767,7 @@ class Zend_Dojo_View_Helper_Dojo_Container
/**
* Render dijits as JSON structure
*
*
* @return string
*/
public function dijitsToJson()
@ -772,7 +778,7 @@ class Zend_Dojo_View_Helper_Dojo_Container
/**
* Create dijit loader functionality
*
*
* @return void
*/
public function registerDijitLoader()
@ -790,7 +796,7 @@ function() {
}
EOJ;
$this->requireModule('dojo.parser');
$this->prependOnLoad($js);
$this->_addZendLoad($js);
$this->addJavascript('var zendDijits = ' . $this->dijitsToJson() . ';');
$this->_dijitLoaderRegistered = true;
}
@ -798,8 +804,8 @@ EOJ;
/**
* Add arbitrary javascript to execute in dojo JS container
*
* @param string $js
*
* @param string $js
* @return Zend_Dojo_View_Helper_Dojo_Container
*/
public function addJavascript($js)
@ -819,7 +825,7 @@ EOJ;
/**
* Return all registered javascript statements
*
*
* @return array
*/
public function getJavascript()
@ -829,7 +835,7 @@ EOJ;
/**
* Clear arbitrary javascript stack
*
*
* @return Zend_Dojo_View_Helper_Dojo_Container
*/
public function clearJavascript()
@ -840,7 +846,7 @@ EOJ;
/**
* Capture arbitrary javascript to include in dojo script
*
*
* @return void
*/
public function javascriptCaptureStart()
@ -857,7 +863,7 @@ EOJ;
/**
* Finish capturing arbitrary javascript to include in dojo script
*
*
* @return true
*/
public function javascriptCaptureEnd()
@ -871,7 +877,7 @@ EOJ;
/**
* String representation of dojo environment
*
*
* @return string
*/
public function __toString()
@ -902,7 +908,7 @@ EOJ;
/**
* Retrieve local path to dojo resources for building relative paths
*
*
* @return string
*/
protected function _getLocalRelativePath()
@ -917,7 +923,7 @@ EOJ;
/**
* Render dojo stylesheets
*
*
* @return string
*/
protected function _renderStylesheets()
@ -962,7 +968,7 @@ EOJ;
/**
* Render DjConfig values
*
*
* @return string
*/
protected function _renderDjConfig()
@ -985,10 +991,10 @@ EOJ;
/**
* Render dojo script tag
*
* Renders Dojo script tag by utilizing either local path provided or the
* CDN. If any djConfig values were set, they will be serialized and passed
* Renders Dojo script tag by utilizing either local path provided or the
* CDN. If any djConfig values were set, they will be serialized and passed
* with that attribute.
*
*
* @return string
*/
protected function _renderDojoScriptTag()
@ -1007,7 +1013,7 @@ EOJ;
/**
* Render layers (custom builds) as script tags
*
*
* @return string
*/
protected function _renderLayers()
@ -1030,7 +1036,7 @@ EOJ;
/**
* Render dojo module paths and requires
*
*
* @return string
*/
protected function _renderExtras()
@ -1051,6 +1057,13 @@ EOJ;
}
$onLoadActions = array();
// Get Zend specific onLoad actions; these will always be first to
// ensure that dijits are created in the correct order
foreach ($this->_getZendLoadActions() as $callback) {
$onLoadActions[] = 'dojo.addOnLoad(' . $callback . ');';
}
// Get all other onLoad actions
foreach ($this->getOnLoadActions() as $callback) {
$onLoadActions[] = 'dojo.addOnLoad(' . $callback . ');';
}
@ -1081,4 +1094,33 @@ EOJ;
. PHP_EOL . '</script>';
return $html;
}
/**
* Add an onLoad action related to ZF dijit creation
*
* This method is public, but prefixed with an underscore to indicate that
* it should not normally be called by userland code. It is pertinent to
* ensuring that the correct order of operations occurs during dijit
* creation.
*
* @param string $callback
* @return Zend_Dojo_View_Helper_Dojo_Container
*/
public function _addZendLoad($callback)
{
if (!in_array($callback, $this->_zendLoadActions, true)) {
$this->_zendLoadActions[] = $callback;
}
return $this;
}
/**
* Retrieve all ZF dijit callbacks
*
* @return array
*/
public function _getZendLoadActions()
{
return $this->_zendLoadActions;
}
}

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: Editor.php 16971 2009-07-22 18:05:45Z mikaelkael $
* @version $Id: Editor.php 18951 2009-11-12 16:26:19Z alexander $
*/
/** Zend_Dojo_View_Helper_Textarea */
@ -28,7 +28,7 @@ require_once 'Zend/Json.php';
/**
* Dojo Editor dijit
*
*
* @uses Zend_Dojo_View_Helper_Textarea
* @package Zend_Dojo
* @subpackage View
@ -47,6 +47,19 @@ class Zend_Dojo_View_Helper_Editor extends Zend_Dojo_View_Helper_Textarea
*/
protected $_module = 'dijit.Editor';
/**
* @var array Maps non-core plugin to module basename
*/
protected $_pluginsModules = array(
'createLink' => 'LinkDialog',
'insertImage' => 'LinkDialog',
'fontName' => 'FontChoice',
'fontSize' => 'FontChoice',
'formatBlock' => 'FontChoice',
'foreColor' => 'TextColor',
'hiliteColor' => 'TextColor'
);
/**
* JSON-encoded parameters
* @var array
@ -55,15 +68,21 @@ class Zend_Dojo_View_Helper_Editor extends Zend_Dojo_View_Helper_Textarea
/**
* dijit.Editor
*
* @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
*/
public function editor($id, $value = null, $params = array(), $attribs = array())
{
if (isset($params['plugins'])) {
foreach ($this->_getRequiredModules($params['plugins']) as $module) {
$this->dojo->requireModule($module);
}
}
$hiddenName = $id;
if (array_key_exists('id', $attribs)) {
$hiddenId = $attribs['id'];
@ -92,10 +111,29 @@ class Zend_Dojo_View_Helper_Editor extends Zend_Dojo_View_Helper_Textarea
return $html;
}
/**
* Generates the list of required modules to include, if any is needed.
*
* @param array $plugins plugins to include
* @return array
*/
protected function _getRequiredModules(array $plugins)
{
$modules = array();
foreach ($plugins as $commandName) {
if (isset($this->_pluginsModules[$commandName])) {
$pluginName = $this->_pluginsModules[$commandName];
$modules[] = 'dijit._editor.plugins.' . $pluginName;
}
}
return array_unique($modules);
}
/**
* Normalize editor element name
*
* @param string $name
*
* @param string $name
* @return string
*/
protected function _normalizeEditorName($name)
@ -111,9 +149,9 @@ class Zend_Dojo_View_Helper_Editor extends Zend_Dojo_View_Helper_Textarea
/**
* Create onSubmit binding for element
*
* @param string $hiddenId
* @param string $editorId
*
* @param string $hiddenId
* @param string $editorId
* @return void
*/
protected function _createEditorOnSubmit($hiddenId, $editorId)

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: FilteringSelect.php 16204 2009-06-21 18:58:29Z thomas $
* @version $Id: FilteringSelect.php 18951 2009-11-12 16:26:19Z alexander $
*/
/** Zend_Dojo_View_Helper_ComboBox */
@ -25,7 +25,7 @@ require_once 'Zend/Dojo/View/Helper/ComboBox.php';
/**
* Dojo FilteringSelect dijit
*
*
* @uses Zend_Dojo_View_Helper_ComboBox
* @package Zend_Dojo
* @subpackage View
@ -48,9 +48,9 @@ class Zend_Dojo_View_Helper_FilteringSelect extends Zend_Dojo_View_Helper_ComboB
/**
* dijit.form.FilteringSelect
*
* @param int $id
* @param mixed $value
*
* @param int $id
* @param mixed $value
* @param array $params Parameters to use for dijit creation
* @param array $attribs HTML attributes
* @param array|null $options Select options

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: Form.php 16204 2009-06-21 18:58:29Z thomas $
* @version $Id: Form.php 18951 2009-11-12 16:26:19Z alexander $
*/
/** Zend_Dojo_View_Helper_Dijit */
@ -25,7 +25,7 @@ require_once 'Zend/Dojo/View/Helper/Dijit.php';
/**
* Dojo Form dijit
*
*
* @uses Zend_Dojo_View_Helper_Dijit
* @package Zend_Dojo
* @subpackage View
@ -53,10 +53,10 @@ class Zend_Dojo_View_Helper_Form extends Zend_Dojo_View_Helper_Dijit
/**
* dijit.form.Form
*
* @param string $id
*
* @param string $id
* @param null|array $attribs HTML attributes
* @param false|string $content
* @param false|string $content
* @return string
*/
public function form($id, $attribs = null, $content = false)
@ -81,7 +81,7 @@ class Zend_Dojo_View_Helper_Form extends Zend_Dojo_View_Helper_Dijit
/**
* Get standard form helper
*
*
* @return Zend_View_Helper_Form
*/
public function getFormHelper()

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: HorizontalSlider.php 16204 2009-06-21 18:58:29Z thomas $
* @version $Id: HorizontalSlider.php 18951 2009-11-12 16:26:19Z alexander $
*/
/** Zend_Dojo_View_Helper_Slider */
@ -25,7 +25,7 @@ require_once 'Zend/Dojo/View/Helper/Slider.php';
/**
* Dojo HorizontalSlider dijit
*
*
* @uses Zend_Dojo_View_Helper_Slider
* @package Zend_Dojo
* @subpackage View
@ -48,9 +48,9 @@ class Zend_Dojo_View_Helper_HorizontalSlider extends Zend_Dojo_View_Helper_Slide
/**
* dijit.form.HorizontalSlider
*
* @param int $id
* @param mixed $value
*
* @param int $id
* @param mixed $value
* @param array $params Parameters to use for dijit creation
* @param array $attribs HTML attributes
* @return string

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: NumberSpinner.php 16204 2009-06-21 18:58:29Z thomas $
* @version $Id: NumberSpinner.php 18951 2009-11-12 16:26:19Z alexander $
*/
/** Zend_Dojo_View_Helper_Dijit */
@ -25,7 +25,7 @@ require_once 'Zend/Dojo/View/Helper/Dijit.php';
/**
* Dojo NumberSpinner dijit
*
*
* @uses Zend_Dojo_View_Helper_Dijit
* @package Zend_Dojo
* @subpackage View
@ -54,9 +54,9 @@ class Zend_Dojo_View_Helper_NumberSpinner extends Zend_Dojo_View_Helper_Dijit
/**
* dijit.form.NumberSpinner
*
* @param int $id
* @param mixed $value
*
* @param int $id
* @param mixed $value
* @param array $params Parameters to use for dijit creation
* @param array $attribs HTML attributes
* @return string

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: NumberTextBox.php 16204 2009-06-21 18:58:29Z thomas $
* @version $Id: NumberTextBox.php 18951 2009-11-12 16:26:19Z alexander $
*/
/** Zend_Dojo_View_Helper_Dijit */
@ -25,7 +25,7 @@ require_once 'Zend/Dojo/View/Helper/Dijit.php';
/**
* Dojo NumberTextBox dijit
*
*
* @uses Zend_Dojo_View_Helper_Dijit
* @package Zend_Dojo
* @subpackage View
@ -54,9 +54,9 @@ class Zend_Dojo_View_Helper_NumberTextBox extends Zend_Dojo_View_Helper_Dijit
/**
* dijit.form.NumberTextBox
*
* @param int $id
* @param mixed $value
*
* @param int $id
* @param mixed $value
* @param array $params Parameters to use for dijit creation
* @param array $attribs HTML attributes
* @return string

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: PasswordTextBox.php 16204 2009-06-21 18:58:29Z thomas $
* @version $Id: PasswordTextBox.php 18951 2009-11-12 16:26:19Z alexander $
*/
/** Zend_Dojo_View_Helper_ValidationTextBox */
@ -25,7 +25,7 @@ require_once 'Zend/Dojo/View/Helper/ValidationTextBox.php';
/**
* Dojo ValidationTextBox dijit tied to password input
*
*
* @uses Zend_Dojo_View_Helper_Dijit
* @package Zend_Dojo
* @subpackage View
@ -42,9 +42,9 @@ class Zend_Dojo_View_Helper_PasswordTextBox extends Zend_Dojo_View_Helper_Valida
/**
* dijit.form.ValidationTextBox tied to password input
*
* @param string $id
* @param mixed $value
*
* @param string $id
* @param mixed $value
* @param array $params Parameters to use for dijit creation
* @param array $attribs HTML attributes
* @return string

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: RadioButton.php 16204 2009-06-21 18:58:29Z thomas $
* @version $Id: RadioButton.php 18951 2009-11-12 16:26:19Z alexander $
*/
/** Zend_Dojo_View_Helper_Dijit */
@ -25,7 +25,7 @@ require_once 'Zend/Dojo/View/Helper/Dijit.php';
/**
* Dojo RadioButton dijit
*
*
* @uses Zend_Dojo_View_Helper_Dijit
* @package Zend_Dojo
* @subpackage View
@ -48,9 +48,9 @@ class Zend_Dojo_View_Helper_RadioButton extends Zend_Dojo_View_Helper_Dijit
/**
* dijit.form.RadioButton
*
* @param string $id
* @param string $value
*
* @param string $id
* @param string $value
* @param array $params Parameters to use for dijit creation
* @param array $attribs HTML attributes
* @param array $options Array of radio options
@ -58,11 +58,11 @@ class Zend_Dojo_View_Helper_RadioButton extends Zend_Dojo_View_Helper_Dijit
* @return string
*/
public function radioButton(
$id,
$value = null,
array $params = array(),
array $attribs = array(),
array $options = null,
$id,
$value = null,
array $params = array(),
array $attribs = array(),
array $options = null,
$listsep = "<br />\n"
) {
$attribs['name'] = $id;

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: SimpleTextarea.php 16971 2009-07-22 18:05:45Z mikaelkael $
* @version $Id: SimpleTextarea.php 18951 2009-11-12 16:26:19Z alexander $
*/
/** Zend_Dojo_View_Helper_Dijit */
@ -25,13 +25,13 @@ require_once 'Zend/Dojo/View/Helper/Dijit.php';
/**
* dijit.form.SimpleTextarea view helper
*
*
* @uses Zend_Dojo_View_Helper_Dijit
* @package Zend_Dojo
* @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: SimpleTextarea.php 16971 2009-07-22 18:05:45Z mikaelkael $
* @version $Id: SimpleTextarea.php 18951 2009-11-12 16:26:19Z alexander $
*/
class Zend_Dojo_View_Helper_SimpleTextarea extends Zend_Dojo_View_Helper_Dijit
{
@ -52,9 +52,9 @@ class Zend_Dojo_View_Helper_SimpleTextarea extends Zend_Dojo_View_Helper_Dijit
/**
* dijit.form.SimpleTextarea
*
* @param string $id
* @param string $value
*
* @param string $id
* @param string $value
* @param array $params Parameters to use for dijit creation
* @param array $attribs HTML attributes
* @return string

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: Slider.php 16204 2009-06-21 18:58:29Z thomas $
* @version $Id: Slider.php 18951 2009-11-12 16:26:19Z alexander $
*/
/** Zend_Dojo_View_Helper_Dijit */
@ -25,7 +25,7 @@ require_once 'Zend/Dojo/View/Helper/Dijit.php';
/**
* Abstract class for Dojo Slider dijits
*
*
* @uses Zend_Dojo_View_Helper_Dijit
* @package Zend_Dojo
* @subpackage View
@ -54,9 +54,9 @@ abstract class Zend_Dojo_View_Helper_Slider extends Zend_Dojo_View_Helper_Dijit
/**
* dijit.form.Slider
*
* @param int $id
* @param mixed $value
*
* @param int $id
* @param mixed $value
* @param array $params Parameters to use for dijit creation
* @param array $attribs HTML attributes
* @return string
@ -137,10 +137,10 @@ abstract class Zend_Dojo_View_Helper_Slider extends Zend_Dojo_View_Helper_Dijit
/**
* Prepare slider decoration
*
* @param string $position
* @param string $id
* @param array $decInfo
*
* @param string $position
* @param string $id
* @param array $decInfo
* @return string
*/
protected function _prepareDecoration($position, $id, $decInfo)
@ -149,7 +149,7 @@ abstract class Zend_Dojo_View_Helper_Slider extends Zend_Dojo_View_Helper_Dijit
return '';
}
if (!is_array($decInfo)
if (!is_array($decInfo)
|| !array_key_exists('labels', $decInfo)
|| !is_array($decInfo['labels'])
) {
@ -233,11 +233,11 @@ abstract class Zend_Dojo_View_Helper_Slider extends Zend_Dojo_View_Helper_Dijit
/**
* Prepare slider label list
*
* @param string $id
* @param array $params
* @param array $attribs
* @param array $labels
*
* @param string $id
* @param array $params
* @param array $attribs
* @param array $labels
* @return string
*/
protected function _prepareLabelsList($id, array $params, array $attribs, array $labels)

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: SplitContainer.php 16204 2009-06-21 18:58:29Z thomas $
* @version $Id: SplitContainer.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';
/**
* Dojo SplitContainer dijit
*
*
* @uses Zend_Dojo_View_Helper_DijitContainer
* @package Zend_Dojo
* @subpackage View
@ -48,9 +48,9 @@ class Zend_Dojo_View_Helper_SplitContainer extends Zend_Dojo_View_Helper_DijitCo
/**
* dijit.layout.SplitContainer
*
* @param string $id
* @param string $content
*
* @param string $id
* @param string $content
* @param array $params Parameters to use for dijit creation
* @param array $attribs HTML attributes
* @return string

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: StackContainer.php 16204 2009-06-21 18:58:29Z thomas $
* @version $Id: StackContainer.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';
/**
* Dojo StackContainer dijit
*
*
* @uses Zend_Dojo_View_Helper_DijitContainer
* @package Zend_Dojo
* @subpackage View
@ -48,9 +48,9 @@ class Zend_Dojo_View_Helper_StackContainer extends Zend_Dojo_View_Helper_DijitCo
/**
* dijit.layout.StackContainer
*
* @param string $id
* @param string $content
*
* @param string $id
* @param string $content
* @param array $params Parameters to use for dijit creation
* @param array $attribs HTML attributes
* @return string

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: SubmitButton.php 16204 2009-06-21 18:58:29Z thomas $
* @version $Id: SubmitButton.php 18951 2009-11-12 16:26:19Z alexander $
*/
/** Zend_Dojo_View_Helper_Button */
@ -25,7 +25,7 @@ require_once 'Zend/Dojo/View/Helper/Button.php';
/**
* Dojo Button dijit tied to submit input
*
*
* @uses Zend_Dojo_View_Helper_Button
* @package Zend_Dojo
* @subpackage View
@ -41,14 +41,14 @@ class Zend_Dojo_View_Helper_SubmitButton extends Zend_Dojo_View_Helper_Button
/**
* dijit.form.Button tied to submit input
*
* @param string $id
* @param string $value
*
* @param string $id
* @param string $value
* @param array $params Parameters to use for dijit creation
* @param array $attribs HTML attributes
* @return string
*/
public function submitButton($id, $value = null, array $params = array(), array $attribs = array())
public function submitButton($id, $value = null, array $params = array(), array $attribs = array())
{
if (!array_key_exists('label', $params)) {
$params['label'] = $value;

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: TabContainer.php 16204 2009-06-21 18:58:29Z thomas $
* @version $Id: TabContainer.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';
/**
* Dojo TabContainer dijit
*
*
* @uses Zend_Dojo_View_Helper_DijitContainer
* @package Zend_Dojo
* @subpackage View
@ -48,9 +48,9 @@ class Zend_Dojo_View_Helper_TabContainer extends Zend_Dojo_View_Helper_DijitCont
/**
* dijit.layout.TabContainer
*
* @param string $id
* @param string $content
*
* @param string $id
* @param string $content
* @param array $params Parameters to use for dijit creation
* @param array $attribs HTML attributes
* @return string

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: TextBox.php 16204 2009-06-21 18:58:29Z thomas $
* @version $Id: TextBox.php 18951 2009-11-12 16:26:19Z alexander $
*/
/** Zend_Dojo_View_Helper_Dijit */
@ -25,7 +25,7 @@ require_once 'Zend/Dojo/View/Helper/Dijit.php';
/**
* Dojo TextBox dijit
*
*
* @uses Zend_Dojo_View_Helper_Dijit
* @package Zend_Dojo
* @subpackage View
@ -54,9 +54,9 @@ class Zend_Dojo_View_Helper_TextBox extends Zend_Dojo_View_Helper_Dijit
/**
* dijit.form.TextBox
*
* @param int $id
* @param mixed $value
*
* @param int $id
* @param mixed $value
* @param array $params Parameters to use for dijit creation
* @param array $attribs HTML attributes
* @return string

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: Textarea.php 16204 2009-06-21 18:58:29Z thomas $
* @version $Id: Textarea.php 18951 2009-11-12 16:26:19Z alexander $
*/
/** Zend_Dojo_View_Helper_Dijit */
@ -25,7 +25,7 @@ require_once 'Zend/Dojo/View/Helper/Dijit.php';
/**
* Dojo Textarea dijit
*
*
* @uses Zend_Dojo_View_Helper_Dijit
* @package Zend_Dojo
* @subpackage View
@ -54,9 +54,9 @@ class Zend_Dojo_View_Helper_Textarea extends Zend_Dojo_View_Helper_Dijit
/**
* dijit.form.Textarea
*
* @param int $id
* @param mixed $value
*
* @param int $id
* @param mixed $value
* @param array $params Parameters to use for dijit creation
* @param array $attribs HTML attributes
* @return string

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: TimeTextBox.php 16204 2009-06-21 18:58:29Z thomas $
* @version $Id: TimeTextBox.php 18951 2009-11-12 16:26:19Z alexander $
*/
/** Zend_Dojo_View_Helper_Dijit */
@ -25,7 +25,7 @@ require_once 'Zend/Dojo/View/Helper/Dijit.php';
/**
* Dojo TimeTextBox dijit
*
*
* @uses Zend_Dojo_View_Helper_Dijit
* @package Zend_Dojo
* @subpackage View
@ -54,9 +54,9 @@ class Zend_Dojo_View_Helper_TimeTextBox extends Zend_Dojo_View_Helper_Dijit
/**
* dijit.form.TimeTextBox
*
* @param int $id
* @param mixed $value
*
* @param int $id
* @param mixed $value
* @param array $params Parameters to use for dijit creation
* @param array $attribs HTML attributes
* @return string

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: ValidationTextBox.php 16204 2009-06-21 18:58:29Z thomas $
* @version $Id: ValidationTextBox.php 18951 2009-11-12 16:26:19Z alexander $
*/
/** Zend_Dojo_View_Helper_Dijit */
@ -25,7 +25,7 @@ require_once 'Zend/Dojo/View/Helper/Dijit.php';
/**
* Dojo ValidationTextBox dijit
*
*
* @uses Zend_Dojo_View_Helper_Dijit
* @package Zend_Dojo
* @subpackage View
@ -54,9 +54,9 @@ class Zend_Dojo_View_Helper_ValidationTextBox extends Zend_Dojo_View_Helper_Diji
/**
* dijit.form.ValidationTextBox
*
* @param int $id
* @param mixed $value
*
* @param int $id
* @param mixed $value
* @param array $params Parameters to use for dijit creation
* @param array $attribs HTML attributes
* @return string

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: VerticalSlider.php 16204 2009-06-21 18:58:29Z thomas $
* @version $Id: VerticalSlider.php 18951 2009-11-12 16:26:19Z alexander $
*/
/** Zend_Dojo_View_Helper_Slider */
@ -25,7 +25,7 @@ require_once 'Zend/Dojo/View/Helper/Slider.php';
/**
* Dojo VerticalSlider dijit
*
*
* @uses Zend_Dojo_View_Helper_Slider
* @package Zend_Dojo
* @subpackage View
@ -48,9 +48,9 @@ class Zend_Dojo_View_Helper_VerticalSlider extends Zend_Dojo_View_Helper_Slider
/**
* dijit.form.VerticalSlider
*
* @param int $id
* @param mixed $value
*
* @param int $id
* @param mixed $value
* @param array $params Parameters to use for dijit creation
* @param array $attribs HTML attributes
* @return string