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

@ -16,12 +16,12 @@
* @package Zend_Dojo
* @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: BuildLayer.php 16971 2009-07-22 18:05:45Z mikaelkael $
* @version $Id: BuildLayer.php 18951 2009-11-12 16:26:19Z alexander $
*/
/**
* Dojo module layer and custom build profile generation support
*
*
* @package Zend_Dojo
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
@ -29,15 +29,15 @@
class Zend_Dojo_BuildLayer
{
/**
* Flag: whether or not to consume JS aggregated in the dojo() view
* Flag: whether or not to consume JS aggregated in the dojo() view
* helper when generate the module layer contents
* @var bool
*/
protected $_consumeJavascript = false;
/**
* Flag: whether or not to consume dojo.addOnLoad events registered
* with the dojo() view helper when generating the module layer file
* Flag: whether or not to consume dojo.addOnLoad events registered
* with the dojo() view helper when generating the module layer file
* contents
* @var bool
*/
@ -56,7 +56,7 @@ class Zend_Dojo_BuildLayer
protected $_layerName;
/**
* Path to the custom layer script relative to dojo.js (used when
* Path to the custom layer script relative to dojo.js (used when
* creating the build profile)
* @var string
*/
@ -89,8 +89,8 @@ class Zend_Dojo_BuildLayer
/**
* Constructor
*
* @param array|Zend_Config $options
*
* @param array|Zend_Config $options
* @return void
* @throws Zend_Dojo_Exception for invalid option argument
*/
@ -111,8 +111,8 @@ class Zend_Dojo_BuildLayer
* Set options
*
* Proxies to any setter that matches an option key.
*
* @param array $options
*
* @param array $options
* @return Zend_Dojo_BuildLayer
*/
public function setOptions(array $options)
@ -129,8 +129,8 @@ class Zend_Dojo_BuildLayer
/**
* Set View object
*
* @param Zend_View_Interface $view
*
* @param Zend_View_Interface $view
* @return Zend_Dojo_BuildLayer
*/
public function setView(Zend_View_Interface $view)
@ -141,7 +141,7 @@ class Zend_Dojo_BuildLayer
/**
* Retrieve view object
*
*
* @return Zend_View_Interface|null
*/
public function getView()
@ -151,8 +151,8 @@ class Zend_Dojo_BuildLayer
/**
* Set dojo() view helper instance
*
* @param Zend_Dojo_View_Helper_Dojo_Container $helper
*
* @param Zend_Dojo_View_Helper_Dojo_Container $helper
* @return Zend_Dojo_BuildLayer
*/
public function setDojoHelper(Zend_Dojo_View_Helper_Dojo_Container $helper)
@ -165,7 +165,7 @@ class Zend_Dojo_BuildLayer
* Retrieve dojo() view helper instance
*
* Will retrieve it from the view object if not registered.
*
*
* @return Zend_Dojo_View_Helper_Dojo_Container
* @throws Zend_Dojo_Exception if not registered and no view object found
*/
@ -184,8 +184,8 @@ class Zend_Dojo_BuildLayer
/**
* Set custom layer name; e.g. "custom.main"
*
* @param string $name
*
* @param string $name
* @return Zend_Dojo_BuildLayer
*/
public function setLayerName($name)
@ -200,7 +200,7 @@ class Zend_Dojo_BuildLayer
/**
* Retrieve custom layer name
*
*
* @return string|null
*/
public function getLayerName()
@ -212,8 +212,8 @@ class Zend_Dojo_BuildLayer
* Set the path to the custom layer script
*
* Should be a path relative to dojo.js
*
* @param string $path
*
* @param string $path
* @return Zend_Dojo_BuildLayer
*/
public function setLayerScriptPath($path)
@ -224,7 +224,7 @@ class Zend_Dojo_BuildLayer
/**
* Get custom layer script path
*
*
* @return string|null
*/
public function getLayerScriptPath()
@ -233,10 +233,10 @@ class Zend_Dojo_BuildLayer
}
/**
* Set flag indicating whether or not to consume JS aggregated in dojo()
* Set flag indicating whether or not to consume JS aggregated in dojo()
* view helper
*
* @param bool $flag
*
* @param bool $flag
* @return Zend_Dojo_BuildLayer
*/
public function setConsumeJavascript($flag)
@ -246,9 +246,9 @@ class Zend_Dojo_BuildLayer
}
/**
* Get flag indicating whether or not to consume JS aggregated in dojo()
* Get flag indicating whether or not to consume JS aggregated in dojo()
* view helper
*
*
* @return bool
*/
public function consumeJavascript()
@ -257,10 +257,10 @@ class Zend_Dojo_BuildLayer
}
/**
* Set flag indicating whether or not to consume dojo.addOnLoad events
* Set flag indicating whether or not to consume dojo.addOnLoad events
* aggregated in dojo() view helper
*
* @param bool $flag
*
* @param bool $flag
* @return Zend_Dojo_BuildLayer
*/
public function setConsumeOnLoad($flag)
@ -271,7 +271,7 @@ class Zend_Dojo_BuildLayer
/**
* Get flag indicating whether or not to consume dojo.addOnLoad events aggregated in dojo() view helper
*
*
* @return bool
*/
public function consumeOnLoad()
@ -281,8 +281,8 @@ class Zend_Dojo_BuildLayer
/**
* Set many build profile options at once
*
* @param array $options
*
* @param array $options
* @return Zend_Dojo_BuildLayer
*/
public function setProfileOptions(array $options)
@ -293,8 +293,8 @@ class Zend_Dojo_BuildLayer
/**
* Add many build profile options at once
*
* @param array $options
*
* @param array $options
* @return Zend_Dojo_BuildLayer
*/
public function addProfileOptions(array $options)
@ -305,9 +305,9 @@ class Zend_Dojo_BuildLayer
/**
* Add a single build profile option
*
* @param string $key
* @param value $value
*
* @param string $key
* @param value $value
* @return Zend_Dojo_BuildLayer
*/
public function addProfileOption($key, $value)
@ -318,8 +318,8 @@ class Zend_Dojo_BuildLayer
/**
* Is a given build profile option set?
*
* @param string $key
*
* @param string $key
* @return bool
*/
public function hasProfileOption($key)
@ -331,8 +331,8 @@ class Zend_Dojo_BuildLayer
* Retrieve a single build profile option
*
* Returns null if profile option does not exist.
*
* @param string $key
*
* @param string $key
* @return mixed
*/
public function getProfileOption($key)
@ -345,7 +345,7 @@ class Zend_Dojo_BuildLayer
/**
* Get all build profile options
*
*
* @return array
*/
public function getProfileOptions()
@ -355,8 +355,8 @@ class Zend_Dojo_BuildLayer
/**
* Remove a build profile option
*
* @param string $name
*
* @param string $name
* @return Zend_Dojo_BuildLayer
*/
public function removeProfileOption($name)
@ -369,7 +369,7 @@ class Zend_Dojo_BuildLayer
/**
* Remove all build profile options
*
*
* @return Zend_Dojo_BuildLayer
*/
public function clearProfileOptions()
@ -382,9 +382,9 @@ class Zend_Dojo_BuildLayer
* Add a build profile dependency prefix
*
* If just the prefix is passed, sets path to "../$prefix".
*
* @param string $prefix
* @param null|string $path
*
* @param string $prefix
* @param null|string $path
* @return Zend_Dojo_BuildLayer
*/
public function addProfilePrefix($prefix, $path = null)
@ -398,8 +398,8 @@ class Zend_Dojo_BuildLayer
/**
* Set multiple dependency prefixes for bulid profile
*
* @param array $prefixes
*
* @param array $prefixes
* @return Zend_Dojo_BuildLayer
*/
public function setProfilePrefixes(array $prefixes)
@ -412,7 +412,7 @@ class Zend_Dojo_BuildLayer
/**
* Get build profile dependency prefixes
*
*
* @return array
*/
public function getProfilePrefixes()
@ -442,7 +442,7 @@ class Zend_Dojo_BuildLayer
/**
* Generate module layer script
*
*
* @return string
*/
public function generateLayerScript()
@ -482,7 +482,7 @@ class Zend_Dojo_BuildLayer
/**
* Generate build profile
*
*
* @return string
*/
public function generateBuildProfile()
@ -509,8 +509,8 @@ class Zend_Dojo_BuildLayer
/**
* Retrieve module prefix
*
* @param string $module
*
* @param string $module
* @return void
*/
protected function _getPrefix($module)
@ -521,8 +521,8 @@ class Zend_Dojo_BuildLayer
/**
* Filter a JSON build profile to JavaScript
*
* @param string $profile
*
* @param string $profile
* @return string
*/
protected function _filterJsonProfileToJavascript($profile)

View File

@ -16,12 +16,12 @@
* @package Zend_Dojo
* @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: Data.php 16204 2009-06-21 18:58:29Z thomas $
* @version $Id: Data.php 18951 2009-11-12 16:26:19Z alexander $
*/
/**
* dojo.data support for Zend Framework
*
*
* @uses ArrayAccess
* @uses Iterator
* @uses Countable
@ -29,7 +29,7 @@
* @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_Data implements ArrayAccess,Iterator,Countable
class Zend_Dojo_Data implements ArrayAccess,Iterator,Countable
{
/**
* Identifier field of item
@ -57,25 +57,25 @@ class Zend_Dojo_Data implements ArrayAccess,Iterator,Countable
/**
* Constructor
*
* @param string|null $identifier
* @param array|Traversable|null $items
* @param string|null $label
*
* @param string|null $identifier
* @param array|Traversable|null $items
* @param string|null $label
* @return void
*/
public function __construct($identifier = null, $items = null, $label = null)
{
if (null !== $identifier) {
$this->setIdentifier($identifier);
}
if (null !== $items) {
$this->setItems($items);
}
if (null !== $label) {
$this->setLabel($label);
}
}
public function __construct($identifier = null, $items = null, $label = null)
{
if (null !== $identifier) {
$this->setIdentifier($identifier);
}
if (null !== $items) {
$this->setItems($items);
}
if (null !== $label) {
$this->setLabel($label);
}
}
/**
* Set the items to collect
*
@ -157,8 +157,8 @@ class Zend_Dojo_Data implements ArrayAccess,Iterator,Countable
/**
* Does an item with the given identifier exist?
*
* @param string|int $id
*
* @param string|int $id
* @return bool
*/
public function hasItem($id)
@ -209,7 +209,7 @@ class Zend_Dojo_Data implements ArrayAccess,Iterator,Countable
return $this;
}
/**
* Set identifier for item lookups
*
@ -242,7 +242,7 @@ class Zend_Dojo_Data implements ArrayAccess,Iterator,Countable
return $this->_identifier;
}
/**
* Set label to use for displaying item associations
*
@ -271,9 +271,9 @@ class Zend_Dojo_Data implements ArrayAccess,Iterator,Countable
/**
* Set metadata by key or en masse
*
* @param string|array $spec
* @param mixed $value
*
* @param string|array $spec
* @param mixed $value
* @return Zend_Dojo_Data
*/
public function setMetadata($spec, $value = null)
@ -290,7 +290,7 @@ class Zend_Dojo_Data implements ArrayAccess,Iterator,Countable
/**
* Get metadata item or all metadata
*
*
* @param null|string $key Metadata key when pulling single metadata item
* @return mixed
*/
@ -309,8 +309,8 @@ class Zend_Dojo_Data implements ArrayAccess,Iterator,Countable
/**
* Clear individual or all metadata item(s)
*
* @param null|string $key
*
* @param null|string $key
* @return Zend_Dojo_Data
*/
public function clearMetadata($key = null)
@ -325,8 +325,8 @@ class Zend_Dojo_Data implements ArrayAccess,Iterator,Countable
/**
* Load object from array
*
* @param array $data
*
* @param array $data
* @return Zend_Dojo_Data
*/
public function fromArray(array $data)
@ -347,8 +347,8 @@ class Zend_Dojo_Data implements ArrayAccess,Iterator,Countable
/**
* Load object from JSON
*
* @param string $json
*
* @param string $json
* @return Zend_Dojo_Data
*/
public function fromJson($json)
@ -364,7 +364,7 @@ class Zend_Dojo_Data implements ArrayAccess,Iterator,Countable
/**
* Seralize entire data structure, including identifier and label, to array
*
*
* @return array
*/
public function toArray()
@ -392,7 +392,7 @@ class Zend_Dojo_Data implements ArrayAccess,Iterator,Countable
return $array;
}
/**
* Serialize to JSON (dojo.data format)
*
@ -520,10 +520,10 @@ class Zend_Dojo_Data implements ArrayAccess,Iterator,Countable
}
/**
* Normalize an item to attach to the collection
*
* @param array|object $item
* @param string|int|null $id
* Normalize an item to attach to the collection
*
* @param array|object $item
* @param string|int|null $id
* @return array
*/
protected function _normalizeItem($item, $id)
@ -560,4 +560,4 @@ class Zend_Dojo_Data implements ArrayAccess,Iterator,Countable
'data' => $item,
);
}
}
}

View File

@ -16,7 +16,7 @@
* @package Zend_Dojo
* @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: Exception.php 16204 2009-06-21 18:58:29Z thomas $
* @version $Id: Exception.php 18951 2009-11-12 16:26:19Z alexander $
*/
/** Zend_Exception */
@ -24,7 +24,7 @@ require_once 'Zend/Exception.php';
/**
* Exception class for Zend_Dojo
*
*
* @uses Zend_Exception
* @package Zend_Dojo
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)

View File

@ -24,20 +24,20 @@ require_once 'Zend/Form.php';
/**
* Dijit-enabled Form
*
*
* @uses Zend_Form
* @package Zend_Dojo
* @subpackage Form
* @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 $
*/
class Zend_Dojo_Form extends Zend_Form
{
/**
* Constructor
*
* @param array|Zend_Config|null $options
*
* @param array|Zend_Config|null $options
* @return void
*/
public function __construct($options = null)
@ -52,7 +52,7 @@ class Zend_Dojo_Form extends Zend_Form
/**
* Load the default decorators
*
*
* @return void
*/
public function loadDefaultDecorators()
@ -73,8 +73,8 @@ class Zend_Dojo_Form extends Zend_Form
* Set the view object
*
* Ensures that the view object has the dojo view helper path set.
*
* @param Zend_View_Interface $view
*
* @param Zend_View_Interface $view
* @return Zend_Dojo_Form_Element_Dijit
*/
public function setView(Zend_View_Interface $view = null)

View File

@ -29,15 +29,15 @@ require_once 'Zend/Form/Decorator/Abstract.php';
* Accepts the following options:
* - helper: the name of the view helper to use
*
* Assumes the view helper accepts four parameters, the id, content, dijit
* Assumes the view helper accepts four parameters, the id, content, dijit
* parameters, and (X)HTML attributes; these will be provided by the element.
*
*
* @uses Zend_Form_Decorator_Abstract
* @package Zend_Dojo
* @subpackage Form_Decorator
* @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 $
*/
abstract class Zend_Dojo_Form_Decorator_DijitContainer extends Zend_Form_Decorator_Abstract
{
@ -48,7 +48,7 @@ abstract class Zend_Dojo_Form_Decorator_DijitContainer extends Zend_Form_Decorat
protected $_helper;
/**
* Element attributes
* Element attributes
* @var array
*/
protected $_attribs;
@ -67,7 +67,7 @@ abstract class Zend_Dojo_Form_Decorator_DijitContainer extends Zend_Form_Decorat
/**
* Get view helper for rendering container
*
*
* @return string
*/
public function getHelper()
@ -80,8 +80,8 @@ abstract class Zend_Dojo_Form_Decorator_DijitContainer extends Zend_Form_Decorat
}
/**
* Get element attributes
*
* Get element attributes
*
* @return array
*/
public function getAttribs()
@ -98,7 +98,7 @@ abstract class Zend_Dojo_Form_Decorator_DijitContainer extends Zend_Form_Decorat
/**
* Get dijit option parameters
*
*
* @return array
*/
public function getDijitParams()
@ -128,7 +128,7 @@ abstract class Zend_Dojo_Form_Decorator_DijitContainer extends Zend_Form_Decorat
/**
* Get title
*
*
* @return string
*/
public function getTitle()
@ -162,8 +162,8 @@ abstract class Zend_Dojo_Form_Decorator_DijitContainer extends Zend_Form_Decorat
* Render a dijit layout container
*
* Replaces $content entirely from currently set element.
*
* @param string $content
*
* @param string $content
* @return string
*/
public function render($content)
@ -195,6 +195,6 @@ abstract class Zend_Dojo_Form_Decorator_DijitContainer extends Zend_Form_Decorat
} while ($view->dojo()->hasDijit($id));
}
return $view->$helper($id, $content, $dijitParams, $attribs);
return $view->$helper($id, $content, $dijitParams, $attribs);
}
}

View File

@ -31,14 +31,14 @@ require_once 'Zend/Form/Decorator/ViewHelper.php';
* - placement: whether to append or prepend the generated content to the passed in content
* - helper: the name of the view helper to use
*
* Assumes the view helper accepts three parameters, the name, value, and
* Assumes the view helper accepts three parameters, the name, value, and
* optional attributes; these will be provided by the element.
*
*
* @package Zend_Dojo
* @subpackage Form_Decorator
* @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: DijitElement.php 16204 2009-06-21 18:58:29Z thomas $
* @version $Id: DijitElement.php 18951 2009-11-12 16:26:19Z alexander $
*/
class Zend_Dojo_Form_Decorator_DijitElement extends Zend_Form_Decorator_ViewHelper
{
@ -67,7 +67,7 @@ class Zend_Dojo_Form_Decorator_DijitElement extends Zend_Form_Decorator_ViewHelp
/**
* Get element attributes
*
*
* @return array
*/
public function getElementAttribs()
@ -85,9 +85,9 @@ class Zend_Dojo_Form_Decorator_DijitElement extends Zend_Form_Decorator_ViewHelp
/**
* Set a single dijit option parameter
*
* @param string $key
* @param mixed $value
*
* @param string $key
* @param mixed $value
* @return Zend_Dojo_Form_Decorator_DijitContainer
*/
public function setDijitParam($key, $value)
@ -98,8 +98,8 @@ class Zend_Dojo_Form_Decorator_DijitElement extends Zend_Form_Decorator_ViewHelp
/**
* Set dijit option parameters
*
* @param array $params
*
* @param array $params
* @return Zend_Dojo_Form_Decorator_DijitContainer
*/
public function setDijitParams(array $params)
@ -110,8 +110,8 @@ class Zend_Dojo_Form_Decorator_DijitElement extends Zend_Form_Decorator_ViewHelp
/**
* Retrieve a single dijit option parameter
*
* @param string $key
*
* @param string $key
* @return mixed|null
*/
public function getDijitParam($key)
@ -127,7 +127,7 @@ class Zend_Dojo_Form_Decorator_DijitElement extends Zend_Form_Decorator_ViewHelp
/**
* Get dijit option parameters
*
*
* @return array
*/
public function getDijitParams()
@ -139,10 +139,10 @@ class Zend_Dojo_Form_Decorator_DijitElement extends Zend_Form_Decorator_ViewHelp
/**
* Render an element using a view helper
*
* Determine view helper from 'helper' option, or, if none set, from
* the element type. Then call as
* Determine view helper from 'helper' option, or, if none set, from
* the element type. Then call as
* helper($element->getName(), $element->getValue(), $element->getAttribs())
*
*
* @param string $content
* @return string
* @throws Zend_Form_Decorator_Exception if element or view are not registered
@ -177,11 +177,11 @@ class Zend_Dojo_Form_Decorator_DijitElement extends Zend_Form_Decorator_ViewHelp
} while ($view->dojo()->hasDijit($id));
}
$attribs['id'] = $id;
if (array_key_exists('options', $attribs)) {
$options = $attribs['options'];
$options = $attribs['options'];
}
$elementContent = $view->$helper($name, $value, $dijitParams, $attribs, $options);
switch ($this->getPlacement()) {
case self::APPEND:

View File

@ -33,7 +33,7 @@ require_once 'Zend/Dojo/Form/Decorator/DijitContainer.php';
* @subpackage Form_Decorator
* @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: DijitForm.php 16204 2009-06-21 18:58:29Z thomas $
* @version $Id: DijitForm.php 18951 2009-11-12 16:26:19Z alexander $
*/
class Zend_Dojo_Form_Decorator_DijitForm extends Zend_Dojo_Form_Decorator_DijitContainer
{
@ -41,8 +41,8 @@ class Zend_Dojo_Form_Decorator_DijitForm extends Zend_Dojo_Form_Decorator_DijitC
* Render a form
*
* Replaces $content entirely from currently set element.
*
* @param string $content
*
* @param string $content
* @return string
*/
public function render($content)
@ -56,6 +56,6 @@ class Zend_Dojo_Form_Decorator_DijitForm extends Zend_Dojo_Form_Decorator_DijitC
$dijitParams = $this->getDijitParams();
$attribs = array_merge($this->getAttribs(), $this->getOptions());
return $view->form($element->getName(), $attribs, $content);
return $view->form($element->getName(), $attribs, $content);
}
}

View File

@ -24,22 +24,22 @@ require_once 'Zend/Form/DisplayGroup.php';
/**
* Dijit-enabled DisplayGroup
*
*
* @uses Zend_Form_DisplayGroup
* @package Zend_Dojo
* @subpackage Form
* @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: DisplayGroup.php 16204 2009-06-21 18:58:29Z thomas $
* @version $Id: DisplayGroup.php 18951 2009-11-12 16:26:19Z alexander $
*/
class Zend_Dojo_Form_DisplayGroup extends Zend_Form_DisplayGroup
{
/**
* Constructor
*
*
* @param string $name
* @param Zend_Loader_PluginLoader $loader
* @param array|Zend_Config|null $options
* @param array|Zend_Config|null $options
* @return void
*/
public function __construct($name, Zend_Loader_PluginLoader $loader, $options = null)
@ -52,8 +52,8 @@ class Zend_Dojo_Form_DisplayGroup extends Zend_Form_DisplayGroup
* Set the view object
*
* Ensures that the view object has the dojo view helper path set.
*
* @param Zend_View_Interface $view
*
* @param Zend_View_Interface $view
* @return Zend_Dojo_Form_Element_Dijit
*/
public function setView(Zend_View_Interface $view = null)

View File

@ -24,13 +24,13 @@ require_once 'Zend/Dojo/Form/Element/Dijit.php';
/**
* Button dijit
*
*
* @category Zend
* @package Zend_Dojo
* @subpackage Form_Element
* @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 $
*/
class Zend_Dojo_Form_Element_Button extends Zend_Dojo_Form_Element_Dijit
{
@ -42,7 +42,7 @@ class Zend_Dojo_Form_Element_Button extends Zend_Dojo_Form_Element_Dijit
/**
* Constructor
*
*
* @param string|array|Zend_Config $spec Element name or configuration
* @param string|array|Zend_Config $options Element value or configuration
* @return void
@ -62,7 +62,7 @@ class Zend_Dojo_Form_Element_Button extends Zend_Dojo_Form_Element_Dijit
* If no label is present, returns the currently set name.
*
* If a translator is present, returns the translated label.
*
*
* @return string
*/
public function getLabel()
@ -82,7 +82,7 @@ class Zend_Dojo_Form_Element_Button extends Zend_Dojo_Form_Element_Dijit
/**
* Has this submit button been selected?
*
*
* @return bool
*/
public function isChecked()
@ -103,7 +103,7 @@ class Zend_Dojo_Form_Element_Button extends Zend_Dojo_Form_Element_Dijit
* Default decorators
*
* Uses only 'DijitElement' and 'DtDdWrapper' decorators by default.
*
*
* @return void
*/
public function loadDefaultDecorators()

View File

@ -26,13 +26,13 @@ require_once 'Zend/Dojo/Form/Element/Dijit.php';
* CheckBox dijit
*
* Note: this would be easier with mixins or traits...
*
*
* @uses Zend_Dojo_Form_Element_Dijit
* @package Zend_Dojo
* @subpackage Form_Element
* @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 $
*/
class Zend_Dojo_Form_Element_CheckBox extends Zend_Dojo_Form_Element_Dijit
{
@ -78,10 +78,10 @@ class Zend_Dojo_Form_Element_CheckBox extends Zend_Dojo_Form_Element_Dijit
/**
* Set options
*
* Intercept checked and unchecked values and set them early; test stored
* Intercept checked and unchecked values and set them early; test stored
* value against checked and unchecked values after configuration.
*
* @param array $options
*
* @param array $options
* @return Zend_Form_Element_Checkbox
*/
public function setOptions(array $options)
@ -111,11 +111,11 @@ class Zend_Dojo_Form_Element_CheckBox extends Zend_Dojo_Form_Element_Dijit
* If value matches checked value, sets to that value, and sets the checked
* flag to true.
*
* Any other value causes the unchecked value to be set as the current
* Any other value causes the unchecked value to be set as the current
* value, and the checked flag to be set as false.
*
*
* @param mixed $value
*
* @param mixed $value
* @return Zend_Form_Element_Checkbox
*/
public function setValue($value)
@ -132,8 +132,8 @@ class Zend_Dojo_Form_Element_CheckBox extends Zend_Dojo_Form_Element_Dijit
/**
* Set checked value
*
* @param string $value
*
* @param string $value
* @return Zend_Form_Element_Checkbox
*/
public function setCheckedValue($value)
@ -145,7 +145,7 @@ class Zend_Dojo_Form_Element_CheckBox extends Zend_Dojo_Form_Element_Dijit
/**
* Get value when checked
*
*
* @return string
*/
public function getCheckedValue()
@ -155,8 +155,8 @@ class Zend_Dojo_Form_Element_CheckBox extends Zend_Dojo_Form_Element_Dijit
/**
* Set unchecked value
*
* @param string $value
*
* @param string $value
* @return Zend_Form_Element_Checkbox
*/
public function setUncheckedValue($value)
@ -168,7 +168,7 @@ class Zend_Dojo_Form_Element_CheckBox extends Zend_Dojo_Form_Element_Dijit
/**
* Get value when not checked
*
*
* @return string
*/
public function getUncheckedValue()
@ -178,8 +178,8 @@ class Zend_Dojo_Form_Element_CheckBox extends Zend_Dojo_Form_Element_Dijit
/**
* Set checked flag
*
* @param bool $flag
*
* @param bool $flag
* @return Zend_Form_Element_Checkbox
*/
public function setChecked($flag)
@ -195,7 +195,7 @@ class Zend_Dojo_Form_Element_CheckBox extends Zend_Dojo_Form_Element_Dijit
/**
* Get checked flag
*
*
* @return bool
*/
public function isChecked()

View File

@ -24,13 +24,13 @@ require_once 'Zend/Dojo/Form/Element/DijitMulti.php';
/**
* ComboBox dijit
*
*
* @uses Zend_Dojo_Form_Element_DijitMulti
* @package Zend_Dojo
* @subpackage Form_Element
* @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 18951 2009-11-12 16:26:19Z alexander $
*/
class Zend_Dojo_Form_Element_ComboBox extends Zend_Dojo_Form_Element_DijitMulti
{
@ -47,8 +47,8 @@ class Zend_Dojo_Form_Element_ComboBox extends Zend_Dojo_Form_Element_DijitMulti
protected $_registerInArrayValidator = false;
/**
* Get datastore information
*
* Get datastore information
*
* @return array
*/
public function getStoreInfo()
@ -61,8 +61,8 @@ class Zend_Dojo_Form_Element_ComboBox extends Zend_Dojo_Form_Element_DijitMulti
/**
* Set datastore identifier
*
* @param string $identifier
*
* @param string $identifier
* @return Zend_Dojo_Form_Element_ComboBox
*/
public function setStoreId($identifier)
@ -74,8 +74,8 @@ class Zend_Dojo_Form_Element_ComboBox extends Zend_Dojo_Form_Element_DijitMulti
}
/**
* Get datastore identifier
*
* Get datastore identifier
*
* @return string|null
*/
public function getStoreId()
@ -89,8 +89,8 @@ class Zend_Dojo_Form_Element_ComboBox extends Zend_Dojo_Form_Element_DijitMulti
/**
* Set datastore dijit type
*
* @param string $dojoType
*
* @param string $dojoType
* @return Zend_Dojo_Form_Element_ComboBox
*/
public function setStoreType($dojoType)
@ -102,8 +102,8 @@ class Zend_Dojo_Form_Element_ComboBox extends Zend_Dojo_Form_Element_DijitMulti
}
/**
* Get datastore dijit type
*
* Get datastore dijit type
*
* @return string|null
*/
public function getStoreType()
@ -117,8 +117,8 @@ class Zend_Dojo_Form_Element_ComboBox extends Zend_Dojo_Form_Element_DijitMulti
/**
* Set datastore parameters
*
* @param array $params
*
* @param array $params
* @return Zend_Dojo_Form_Element_ComboBox
*/
public function setStoreParams(array $params)
@ -131,7 +131,7 @@ class Zend_Dojo_Form_Element_ComboBox extends Zend_Dojo_Form_Element_DijitMulti
/**
* Get datastore params
*
*
* @return array
*/
public function getStoreParams()
@ -145,8 +145,8 @@ class Zend_Dojo_Form_Element_ComboBox extends Zend_Dojo_Form_Element_DijitMulti
/**
* Set autocomplete flag
*
* @param bool $flag
*
* @param bool $flag
* @return Zend_Dojo_Form_Element_ComboBox
*/
public function setAutocomplete($flag)
@ -157,7 +157,7 @@ class Zend_Dojo_Form_Element_ComboBox extends Zend_Dojo_Form_Element_DijitMulti
/**
* Get autocomplete flag
*
*
* @return bool
*/
public function getAutocomplete()
@ -170,9 +170,9 @@ class Zend_Dojo_Form_Element_ComboBox extends Zend_Dojo_Form_Element_DijitMulti
/**
* Is the value valid?
*
* @param string $value
* @param mixed $context
*
* @param string $value
* @param mixed $context
* @return bool
*/
public function isValid($value, $context = null)

View File

@ -24,13 +24,13 @@ require_once 'Zend/Dojo/Form/Element/NumberTextBox.php';
/**
* CurrencyTextBox dijit
*
*
* @uses Zend_Dojo_Form_Element_NumberTextBox
* @package Zend_Dojo
* @subpackage Form_Element
* @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 $
*/
class Zend_Dojo_Form_Element_CurrencyTextBox extends Zend_Dojo_Form_Element_NumberTextBox
{
@ -110,7 +110,7 @@ class Zend_Dojo_Form_Element_CurrencyTextBox extends Zend_Dojo_Form_Element_Numb
/**
* Get whether or not to present fractional values
*
*
* @return bool
*/
public function getFractional()

View File

@ -24,13 +24,13 @@ require_once 'Zend/Dojo/Form/Element/ValidationTextBox.php';
/**
* DateTextBox dijit
*
*
* @uses Zend_Dojo_Form_Element_ValidationTextBox
* @package Zend_Dojo
* @subpackage Form_Element
* @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 $
*/
class Zend_Dojo_Form_Element_DateTextBox extends Zend_Dojo_Form_Element_ValidationTextBox
{

View File

@ -24,13 +24,13 @@ require_once 'Zend/Form/Element.php';
/**
* Base element for dijit elements
*
*
* @category Zend
* @package Zend_Dojo
* @subpackage Form_Element
* @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 18951 2009-11-12 16:26:19Z alexander $
*/
abstract class Zend_Dojo_Form_Element_Dijit extends Zend_Form_Element
{
@ -48,10 +48,10 @@ abstract class Zend_Dojo_Form_Element_Dijit extends Zend_Form_Element
/**
* Constructor
*
*
* @todo Should we set dojo view helper paths here?
* @param mixed $spec
* @param mixed $options
* @param mixed $spec
* @param mixed $options
* @return void
*/
public function __construct($spec, $options = null)
@ -62,9 +62,9 @@ abstract class Zend_Dojo_Form_Element_Dijit extends Zend_Form_Element
/**
* Set a dijit parameter
*
* @param string $key
* @param mixed $value
*
* @param string $key
* @param mixed $value
* @return Zend_Dojo_Form_Element_Dijit
*/
public function setDijitParam($key, $value)
@ -76,8 +76,8 @@ abstract class Zend_Dojo_Form_Element_Dijit extends Zend_Form_Element
/**
* Set multiple dijit params at once
*
* @param array $params
*
* @param array $params
* @return Zend_Dojo_Form_Element_Dijit
*/
public function setDijitParams(array $params)
@ -88,8 +88,8 @@ abstract class Zend_Dojo_Form_Element_Dijit extends Zend_Form_Element
/**
* Does the given dijit parameter exist?
*
* @param string $key
*
* @param string $key
* @return bool
*/
public function hasDijitParam($key)
@ -99,8 +99,8 @@ abstract class Zend_Dojo_Form_Element_Dijit extends Zend_Form_Element
/**
* Get a single dijit parameter
*
* @param string $key
*
* @param string $key
* @return mixed
*/
public function getDijitParam($key)
@ -114,7 +114,7 @@ abstract class Zend_Dojo_Form_Element_Dijit extends Zend_Form_Element
/**
* Retrieve all dijit parameters
*
*
* @return array
*/
public function getDijitParams()
@ -124,8 +124,8 @@ abstract class Zend_Dojo_Form_Element_Dijit extends Zend_Form_Element
/**
* Remove a single dijit parameter
*
* @param string $key
*
* @param string $key
* @return Zend_Dojo_Form_Element_Dijit
*/
public function removeDijitParam($key)
@ -139,7 +139,7 @@ abstract class Zend_Dojo_Form_Element_Dijit extends Zend_Form_Element
/**
* Clear all dijit parameters
*
*
* @return Zend_Dojo_Form_Element_Dijit
*/
public function clearDijitParams()
@ -150,7 +150,7 @@ abstract class Zend_Dojo_Form_Element_Dijit extends Zend_Form_Element
/**
* Load default decorators
*
*
* @return void
*/
public function loadDefaultDecorators()
@ -173,8 +173,8 @@ abstract class Zend_Dojo_Form_Element_Dijit extends Zend_Form_Element
* Set the view object
*
* Ensures that the view object has the dojo view helper path set.
*
* @param Zend_View_Interface $view
*
* @param Zend_View_Interface $view
* @return Zend_Dojo_Form_Element_Dijit
*/
public function setView(Zend_View_Interface $view = null)

View File

@ -26,13 +26,13 @@ require_once 'Zend/Dojo/Form/Element/Dijit.php';
* CheckBox dijit
*
* Note: this would be easier with mixins or traits...
*
*
* @uses Zend_Dojo_Form_Element_Dijit
* @package Zend_Dojo
* @subpackage Form_Element
* @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: DijitMulti.php 16204 2009-06-21 18:58:29Z thomas $
* @version $Id: DijitMulti.php 18951 2009-11-12 16:26:19Z alexander $
*/
abstract class Zend_Dojo_Form_Element_DijitMulti extends Zend_Dojo_Form_Element_Dijit
{
@ -84,7 +84,7 @@ abstract class Zend_Dojo_Form_Element_DijitMulti extends Zend_Dojo_Form_Element_
/**
* Retrieve options array
*
*
* @return array
*/
protected function _getMultiOptions()
@ -98,8 +98,8 @@ abstract class Zend_Dojo_Form_Element_DijitMulti extends Zend_Dojo_Form_Element_
/**
* Add an option
*
* @param string $option
*
* @param string $option
* @param string $value
* @return Zend_Form_Element_Multi
*/
@ -116,14 +116,14 @@ abstract class Zend_Dojo_Form_Element_DijitMulti extends Zend_Dojo_Form_Element_
/**
* Add many options at once
*
* @param array $options
*
* @param array $options
* @return Zend_Form_Element_Multi
*/
public function addMultiOptions(array $options)
{
foreach ($options as $option => $value) {
if (is_array($value)
if (is_array($value)
&& array_key_exists('key', $value)
&& array_key_exists('value', $value)
) {
@ -149,8 +149,8 @@ abstract class Zend_Dojo_Form_Element_DijitMulti extends Zend_Dojo_Form_Element_
/**
* Retrieve single multi option
*
* @param string $option
*
* @param string $option
* @return mixed
*/
public function getMultiOption($option)
@ -181,8 +181,8 @@ abstract class Zend_Dojo_Form_Element_DijitMulti extends Zend_Dojo_Form_Element_
/**
* Remove a single multi option
*
* @param string $option
*
* @param string $option
* @return bool
*/
public function removeMultiOption($option)
@ -202,7 +202,7 @@ abstract class Zend_Dojo_Form_Element_DijitMulti extends Zend_Dojo_Form_Element_
/**
* Clear all options
*
*
* @return Zend_Form_Element_Multi
*/
public function clearMultiOptions()
@ -214,8 +214,8 @@ abstract class Zend_Dojo_Form_Element_DijitMulti extends Zend_Dojo_Form_Element_
/**
* Set flag indicating whether or not to auto-register inArray validator
*
* @param bool $flag
*
* @param bool $flag
* @return Zend_Form_Element_Multi
*/
public function setRegisterInArrayValidator($flag)
@ -226,7 +226,7 @@ abstract class Zend_Dojo_Form_Element_DijitMulti extends Zend_Dojo_Form_Element_
/**
* Get status of auto-register inArray validator flag
*
*
* @return bool
*/
public function registerInArrayValidator()
@ -238,9 +238,9 @@ abstract class Zend_Dojo_Form_Element_DijitMulti extends Zend_Dojo_Form_Element_
* Is the value provided valid?
*
* Autoregisters InArray validator if necessary.
*
* @param string $value
* @param mixed $context
*
* @param string $value
* @param mixed $context
* @return bool
*/
public function isValid($value, $context = null)
@ -260,8 +260,8 @@ abstract class Zend_Dojo_Form_Element_DijitMulti extends Zend_Dojo_Form_Element_
/**
* Translate an option
*
* @param string $option
*
* @param string $option
* @param string $value
* @return bool
*/
@ -274,15 +274,15 @@ abstract class Zend_Dojo_Form_Element_DijitMulti extends Zend_Dojo_Form_Element_
}
$this->_translated[$option] = true;
return true;
}
}
return false;
}
/**
* Translate a value
*
* @param array|string $value
*
* @param array|string $value
* @return array|string
*/
protected function _translateValue($value)

View File

@ -17,7 +17,7 @@
* @subpackage Form_Element
* @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_Form_Element_Dijit */
@ -25,7 +25,7 @@ require_once 'Zend/Dojo/Form/Element/Dijit.php';
/**
* Editor dijit
*
*
* @uses Zend_Dojo_Form_Element_Dijit
* @category Zend
* @package Zend_Dojo
@ -42,8 +42,8 @@ class Zend_Dojo_Form_Element_Editor extends Zend_Dojo_Form_Element_Dijit
/**
* Add a single event to connect to the editing area
*
* @param string $event
*
* @param string $event
* @return Zend_Dojo_Form_Element_Editor
*/
public function addCaptureEvent($event)
@ -61,8 +61,8 @@ class Zend_Dojo_Form_Element_Editor extends Zend_Dojo_Form_Element_Dijit
/**
* Add multiple capture events
*
* @param array $events
*
* @param array $events
* @return Zend_Dojo_Form_Element_Editor
*/
public function addCaptureEvents(array $events)
@ -75,8 +75,8 @@ class Zend_Dojo_Form_Element_Editor extends Zend_Dojo_Form_Element_Dijit
/**
* Overwrite many capture events at once
*
* @param array $events
*
* @param array $events
* @return Zend_Dojo_Form_Element_Editor
*/
public function setCaptureEvents(array $events)
@ -88,7 +88,7 @@ class Zend_Dojo_Form_Element_Editor extends Zend_Dojo_Form_Element_Dijit
/**
* Get all capture events
*
*
* @return array
*/
public function getCaptureEvents()
@ -101,7 +101,7 @@ class Zend_Dojo_Form_Element_Editor extends Zend_Dojo_Form_Element_Dijit
/**
* Is a given capture event registered?
*
*
* @param string $event
* @return bool
*/
@ -113,7 +113,7 @@ class Zend_Dojo_Form_Element_Editor extends Zend_Dojo_Form_Element_Dijit
/**
* Remove a given capture event
*
*
* @param string $event
* @return Zend_Dojo_Form_Element_Editor
*/
@ -131,7 +131,7 @@ class Zend_Dojo_Form_Element_Editor extends Zend_Dojo_Form_Element_Dijit
/**
* Clear all capture events
*
*
* @return Zend_Dojo_Form_Element_Editor
*/
public function clearCaptureEvents()
@ -141,8 +141,8 @@ class Zend_Dojo_Form_Element_Editor extends Zend_Dojo_Form_Element_Dijit
/**
* Add a single event to the dijit
*
* @param string $event
*
* @param string $event
* @return Zend_Dojo_Form_Element_Editor
*/
public function addEvent($event)
@ -160,8 +160,8 @@ class Zend_Dojo_Form_Element_Editor extends Zend_Dojo_Form_Element_Dijit
/**
* Add multiple events
*
* @param array $events
*
* @param array $events
* @return Zend_Dojo_Form_Element_Editor
*/
public function addEvents(array $events)
@ -174,8 +174,8 @@ class Zend_Dojo_Form_Element_Editor extends Zend_Dojo_Form_Element_Dijit
/**
* Overwrite many events at once
*
* @param array $events
*
* @param array $events
* @return Zend_Dojo_Form_Element_Editor
*/
public function setEvents(array $events)
@ -187,7 +187,7 @@ class Zend_Dojo_Form_Element_Editor extends Zend_Dojo_Form_Element_Dijit
/**
* Get all events
*
*
* @return array
*/
public function getEvents()
@ -200,7 +200,7 @@ class Zend_Dojo_Form_Element_Editor extends Zend_Dojo_Form_Element_Dijit
/**
* Is a given event registered?
*
*
* @param string $event
* @return bool
*/
@ -212,7 +212,7 @@ class Zend_Dojo_Form_Element_Editor extends Zend_Dojo_Form_Element_Dijit
/**
* Remove a given event
*
*
* @param string $event
* @return Zend_Dojo_Form_Element_Editor
*/
@ -229,7 +229,7 @@ class Zend_Dojo_Form_Element_Editor extends Zend_Dojo_Form_Element_Dijit
/**
* Clear all events
*
*
* @return Zend_Dojo_Form_Element_Editor
*/
public function clearEvents()
@ -239,8 +239,8 @@ class Zend_Dojo_Form_Element_Editor extends Zend_Dojo_Form_Element_Dijit
/**
* Add a single editor plugin
*
* @param string $plugin
*
* @param string $plugin
* @return Zend_Dojo_Form_Element_Editor
*/
public function addPlugin($plugin)
@ -258,8 +258,8 @@ class Zend_Dojo_Form_Element_Editor extends Zend_Dojo_Form_Element_Dijit
/**
* Add multiple plugins
*
* @param array $plugins
*
* @param array $plugins
* @return Zend_Dojo_Form_Element_Editor
*/
public function addPlugins(array $plugins)
@ -272,8 +272,8 @@ class Zend_Dojo_Form_Element_Editor extends Zend_Dojo_Form_Element_Dijit
/**
* Overwrite many plugins at once
*
* @param array $plugins
*
* @param array $plugins
* @return Zend_Dojo_Form_Element_Editor
*/
public function setPlugins(array $plugins)
@ -285,7 +285,7 @@ class Zend_Dojo_Form_Element_Editor extends Zend_Dojo_Form_Element_Dijit
/**
* Get all plugins
*
*
* @return array
*/
public function getPlugins()
@ -298,7 +298,7 @@ class Zend_Dojo_Form_Element_Editor extends Zend_Dojo_Form_Element_Dijit
/**
* Is a given plugin registered?
*
*
* @param string $plugin
* @return bool
*/
@ -310,7 +310,7 @@ class Zend_Dojo_Form_Element_Editor extends Zend_Dojo_Form_Element_Dijit
/**
* Remove a given plugin
*
*
* @param string $plugin
* @return Zend_Dojo_Form_Element_Editor
*/
@ -327,7 +327,7 @@ class Zend_Dojo_Form_Element_Editor extends Zend_Dojo_Form_Element_Dijit
/**
* Clear all plugins
*
*
* @return Zend_Dojo_Form_Element_Editor
*/
public function clearPlugins()
@ -337,8 +337,8 @@ class Zend_Dojo_Form_Element_Editor extends Zend_Dojo_Form_Element_Dijit
/**
* Set edit action interval
*
* @param int $interval
*
* @param int $interval
* @return Zend_Dojo_Form_Element_Editor
*/
public function setEditActionInterval($interval)
@ -348,7 +348,7 @@ class Zend_Dojo_Form_Element_Editor extends Zend_Dojo_Form_Element_Dijit
/**
* Get edit action interval; defaults to 3
*
*
* @return int
*/
public function getEditActionInterval()
@ -361,8 +361,8 @@ class Zend_Dojo_Form_Element_Editor extends Zend_Dojo_Form_Element_Dijit
/**
* Set focus on load flag
*
* @param bool $flag
*
* @param bool $flag
* @return Zend_Dojo_Form_Element_Editor
*/
public function setFocusOnLoad($flag)
@ -372,7 +372,7 @@ class Zend_Dojo_Form_Element_Editor extends Zend_Dojo_Form_Element_Dijit
/**
* Retrieve focus on load flag
*
*
* @return bool
*/
public function getFocusOnLoad()
@ -385,8 +385,8 @@ class Zend_Dojo_Form_Element_Editor extends Zend_Dojo_Form_Element_Dijit
/**
* Set editor height
*
* @param string|int $height
*
* @param string|int $height
* @return Zend_Dojo_Form_Element_Editor
*/
public function setHeight($height)
@ -403,7 +403,7 @@ class Zend_Dojo_Form_Element_Editor extends Zend_Dojo_Form_Element_Dijit
/**
* Retrieve height
*
*
* @return string
*/
public function getHeight()
@ -416,8 +416,8 @@ class Zend_Dojo_Form_Element_Editor extends Zend_Dojo_Form_Element_Dijit
/**
* Set whether or not to inherit parent's width
*
* @param bool $flag
*
* @param bool $flag
* @return Zend_Dojo_Form_Element_Editor
*/
public function setInheritWidth($flag)
@ -427,7 +427,7 @@ class Zend_Dojo_Form_Element_Editor extends Zend_Dojo_Form_Element_Dijit
/**
* Whether or not to inherit the parent's width
*
*
* @return bool
*/
public function getInheritWidth()
@ -440,8 +440,8 @@ class Zend_Dojo_Form_Element_Editor extends Zend_Dojo_Form_Element_Dijit
/**
* Set minimum height of editor
*
* @param string|int $minHeight
*
* @param string|int $minHeight
* @return Zend_Dojo_Form_Element_Editor
*/
public function setMinHeight($minHeight)
@ -458,7 +458,7 @@ class Zend_Dojo_Form_Element_Editor extends Zend_Dojo_Form_Element_Dijit
/**
* Get minimum height of editor
*
*
* @return string
*/
public function getMinHeight()
@ -471,8 +471,8 @@ class Zend_Dojo_Form_Element_Editor extends Zend_Dojo_Form_Element_Dijit
/**
* Add a custom stylesheet
*
* @param string $styleSheet
*
* @param string $styleSheet
* @return Zend_Dojo_Form_Element_Editor
*/
public function addStyleSheet($styleSheet)
@ -493,8 +493,8 @@ class Zend_Dojo_Form_Element_Editor extends Zend_Dojo_Form_Element_Dijit
/**
* Add multiple custom stylesheets
*
* @param array $styleSheets
*
* @param array $styleSheets
* @return Zend_Dojo_Form_Element_Editor
*/
public function addStyleSheets(array $styleSheets)
@ -507,8 +507,8 @@ class Zend_Dojo_Form_Element_Editor extends Zend_Dojo_Form_Element_Dijit
/**
* Overwrite all stylesheets
*
* @param array $styleSheets
*
* @param array $styleSheets
* @return Zend_Dojo_Form_Element_Editor
*/
public function setStyleSheets(array $styleSheets)
@ -519,7 +519,7 @@ class Zend_Dojo_Form_Element_Editor extends Zend_Dojo_Form_Element_Dijit
/**
* Get all stylesheets
*
*
* @return string
*/
public function getStyleSheets()
@ -532,8 +532,8 @@ class Zend_Dojo_Form_Element_Editor extends Zend_Dojo_Form_Element_Dijit
/**
* Is a given stylesheet registered?
*
* @param string $styleSheet
*
* @param string $styleSheet
* @return bool
*/
public function hasStyleSheet($styleSheet)
@ -545,8 +545,8 @@ class Zend_Dojo_Form_Element_Editor extends Zend_Dojo_Form_Element_Dijit
/**
* Remove a single stylesheet
*
* @param string $styleSheet
*
* @param string $styleSheet
* @return Zend_Dojo_Form_Element_Editor
*/
public function removeStyleSheet($styleSheet)
@ -562,7 +562,7 @@ class Zend_Dojo_Form_Element_Editor extends Zend_Dojo_Form_Element_Dijit
/**
* Clear all stylesheets
*
*
* @return Zend_Dojo_Form_Element_Editor
*/
public function clearStyleSheets()
@ -575,8 +575,8 @@ class Zend_Dojo_Form_Element_Editor extends Zend_Dojo_Form_Element_Dijit
/**
* Set update interval
*
* @param int $interval
*
* @param int $interval
* @return Zend_Dojo_Form_Element_Editor
*/
public function setUpdateInterval($interval)
@ -586,7 +586,7 @@ class Zend_Dojo_Form_Element_Editor extends Zend_Dojo_Form_Element_Dijit
/**
* Get update interval
*
*
* @return int
*/
public function getUpdateInterval()

View File

@ -24,13 +24,13 @@ require_once 'Zend/Dojo/Form/Element/ComboBox.php';
/**
* FilteringSelect dijit
*
*
* @uses Zend_Dojo_Form_Element_ComboBox
* @package Zend_Dojo
* @subpackage Form_Element
* @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 $
*/
class Zend_Dojo_Form_Element_FilteringSelect extends Zend_Dojo_Form_Element_ComboBox
{

View File

@ -24,13 +24,13 @@ require_once 'Zend/Dojo/Form/Element/Slider.php';
/**
* HorizontalSlider dijit
*
*
* @uses Zend_Dojo_Form_Element_Slider
* @package Zend_Dojo
* @subpackage Form_Element
* @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 $
*/
class Zend_Dojo_Form_Element_HorizontalSlider extends Zend_Dojo_Form_Element_Slider
{
@ -42,7 +42,7 @@ class Zend_Dojo_Form_Element_HorizontalSlider extends Zend_Dojo_Form_Element_Sli
/**
* Get top decoration data
*
*
* @return array
*/
public function getTopDecoration()
@ -55,8 +55,8 @@ class Zend_Dojo_Form_Element_HorizontalSlider extends Zend_Dojo_Form_Element_Sli
/**
* Set dijit to use with top decoration
*
* @param mixed $dijit
*
* @param mixed $dijit
* @return Zend_Dojo_Form_Element_HorizontalSlider
*/
public function setTopDecorationDijit($dijit)
@ -69,8 +69,8 @@ class Zend_Dojo_Form_Element_HorizontalSlider extends Zend_Dojo_Form_Element_Sli
/**
* Set container to use with top decoration
*
* @param mixed $container
*
* @param mixed $container
* @return Zend_Dojo_Form_Element_HorizontalSlider
*/
public function setTopDecorationContainer($container)
@ -83,8 +83,8 @@ class Zend_Dojo_Form_Element_HorizontalSlider extends Zend_Dojo_Form_Element_Sli
/**
* Set labels to use with top decoration
*
* @param array $labels
*
* @param array $labels
* @return Zend_Dojo_Form_Element_HorizontalSlider
*/
public function setTopDecorationLabels(array $labels)
@ -97,8 +97,8 @@ class Zend_Dojo_Form_Element_HorizontalSlider extends Zend_Dojo_Form_Element_Sli
/**
* Set params to use with top decoration
*
* @param array $params
*
* @param array $params
* @return Zend_Dojo_Form_Element_HorizontalSlider
*/
public function setTopDecorationParams(array $params)
@ -111,8 +111,8 @@ class Zend_Dojo_Form_Element_HorizontalSlider extends Zend_Dojo_Form_Element_Sli
/**
* Set attribs to use with top decoration
*
* @param array $attribs
*
* @param array $attribs
* @return Zend_Dojo_Form_Element_HorizontalSlider
*/
public function setTopDecorationAttribs(array $attribs)
@ -125,7 +125,7 @@ class Zend_Dojo_Form_Element_HorizontalSlider extends Zend_Dojo_Form_Element_Sli
/**
* Get bottom decoration data
*
*
* @return array
*/
public function getBottomDecoration()
@ -138,8 +138,8 @@ class Zend_Dojo_Form_Element_HorizontalSlider extends Zend_Dojo_Form_Element_Sli
/**
* Set dijit to use with bottom decoration
*
* @param mixed $dijit
*
* @param mixed $dijit
* @return Zend_Dojo_Form_Element_HorizontalSlider
*/
public function setBottomDecorationDijit($dijit)
@ -152,8 +152,8 @@ class Zend_Dojo_Form_Element_HorizontalSlider extends Zend_Dojo_Form_Element_Sli
/**
* Set container to use with bottom decoration
*
* @param mixed $container
*
* @param mixed $container
* @return Zend_Dojo_Form_Element_HorizontalSlider
*/
public function setBottomDecorationContainer($container)
@ -166,8 +166,8 @@ class Zend_Dojo_Form_Element_HorizontalSlider extends Zend_Dojo_Form_Element_Sli
/**
* Set labels to use with bottom decoration
*
* @param array $labels
*
* @param array $labels
* @return Zend_Dojo_Form_Element_HorizontalSlider
*/
public function setBottomDecorationLabels(array $labels)
@ -180,8 +180,8 @@ class Zend_Dojo_Form_Element_HorizontalSlider extends Zend_Dojo_Form_Element_Sli
/**
* Set params to use with bottom decoration
*
* @param array $params
*
* @param array $params
* @return Zend_Dojo_Form_Element_HorizontalSlider
*/
public function setBottomDecorationParams(array $params)
@ -194,8 +194,8 @@ class Zend_Dojo_Form_Element_HorizontalSlider extends Zend_Dojo_Form_Element_Sli
/**
* Set attribs to use with bottom decoration
*
* @param array $attribs
*
* @param array $attribs
* @return Zend_Dojo_Form_Element_HorizontalSlider
*/
public function setBottomDecorationAttribs(array $attribs)

View File

@ -24,13 +24,13 @@ require_once 'Zend/Dojo/Form/Element/ValidationTextBox.php';
/**
* NumberSpinner dijit
*
*
* @uses Zend_Dojo_Form_Element_ValidationTextBox
* @package Zend_Dojo
* @subpackage Form_Element
* @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 $
*/
class Zend_Dojo_Form_Element_NumberSpinner extends Zend_Dojo_Form_Element_ValidationTextBox
{
@ -177,8 +177,8 @@ class Zend_Dojo_Form_Element_NumberSpinner extends Zend_Dojo_Form_Element_Valida
/**
* Set minimum value
*
* @param int $value
*
* @param int $value
* @return Zend_Dojo_Form_Element_NumberSpinner
*/
public function setMin($value)
@ -194,7 +194,7 @@ class Zend_Dojo_Form_Element_NumberSpinner extends Zend_Dojo_Form_Element_Valida
/**
* Get minimum value
*
*
* @return null|int
*/
public function getMin()
@ -211,8 +211,8 @@ class Zend_Dojo_Form_Element_NumberSpinner extends Zend_Dojo_Form_Element_Valida
/**
* Set maximum value
*
* @param int $value
*
* @param int $value
* @return Zend_Dojo_Form_Element_NumberSpinner
*/
public function setMax($value)
@ -228,7 +228,7 @@ class Zend_Dojo_Form_Element_NumberSpinner extends Zend_Dojo_Form_Element_Valida
/**
* Get maximum value
*
*
* @return null|int
*/
public function getMax()

View File

@ -24,13 +24,13 @@ require_once 'Zend/Dojo/Form/Element/ValidationTextBox.php';
/**
* NumberTextBox dijit
*
*
* @uses Zend_Dojo_Form_Element_ValidationTextBox
* @package Zend_Dojo
* @subpackage Form_Element
* @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 $
*/
class Zend_Dojo_Form_Element_NumberTextBox extends Zend_Dojo_Form_Element_ValidationTextBox
{

View File

@ -24,13 +24,13 @@ require_once 'Zend/Dojo/Form/Element/ValidationTextBox.php';
/**
* ValidationTextBox dijit tied to password input
*
*
* @uses Zend_Dojo_Form_Element_ValidationTextBox
* @package Zend_Dojo
* @subpackage Form_Element
* @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 $
*/
class Zend_Dojo_Form_Element_PasswordTextBox extends Zend_Dojo_Form_Element_ValidationTextBox
{

View File

@ -24,13 +24,13 @@ require_once 'Zend/Dojo/Form/Element/DijitMulti.php';
/**
* RadioButton dijit
*
*
* @uses Zend_Dojo_Form_Element_DijitMulti
* @package Zend_Dojo
* @subpackage Form_Element
* @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 $
*/
class Zend_Dojo_Form_Element_RadioButton extends Zend_Dojo_Form_Element_DijitMulti
{

View File

@ -24,14 +24,14 @@ require_once 'Zend/Dojo/Form/Element/Dijit.php';
/**
* dijit.form.SimpleTextArea
*
*
* @uses Zend_Dojo_Form_Element_Dijit
* @category Zend
* @package Zend_Dojo
* @subpackage Form_Element
* @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_Form_Element_SimpleTextarea extends Zend_Dojo_Form_Element_Dijit
{

View File

@ -24,13 +24,13 @@ require_once 'Zend/Dojo/Form/Element/Dijit.php';
/**
* Abstract Slider dijit
*
*
* @uses Zend_Dojo_Form_Element_Dijit
* @package Zend_Dojo
* @subpackage Form_Element
* @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 $
*/
abstract class Zend_Dojo_Form_Element_Slider extends Zend_Dojo_Form_Element_Dijit
{

View File

@ -24,13 +24,13 @@ require_once 'Zend/Dojo/Form/Element/Button.php';
/**
* Submit button dijit
*
*
* @category Zend
* @package Zend_Dojo
* @subpackage Form_Element
* @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 $
*/
class Zend_Dojo_Form_Element_SubmitButton extends Zend_Dojo_Form_Element_Button
{

View File

@ -24,13 +24,13 @@ require_once 'Zend/Dojo/Form/Element/Dijit.php';
/**
* TextBox dijit
*
*
* @category Zend
* @package Zend_Dojo
* @subpackage Form_Element
* @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 $
*/
class Zend_Dojo_Form_Element_TextBox extends Zend_Dojo_Form_Element_Dijit
{

View File

@ -24,13 +24,13 @@ require_once 'Zend/Dojo/Form/Element/Dijit.php';
/**
* Textarea dijit
*
*
* @category Zend
* @package Zend_Dojo
* @subpackage Form_Element
* @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 $
*/
class Zend_Dojo_Form_Element_Textarea extends Zend_Dojo_Form_Element_Dijit
{

View File

@ -24,13 +24,13 @@ require_once 'Zend/Dojo/Form/Element/DateTextBox.php';
/**
* TimeTextBox dijit
*
*
* @uses Zend_Dojo_Form_Element_DateTextBox
* @package Zend_Dojo
* @subpackage Form_Element
* @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 $
*/
class Zend_Dojo_Form_Element_TimeTextBox extends Zend_Dojo_Form_Element_DateTextBox
{
@ -42,8 +42,8 @@ class Zend_Dojo_Form_Element_TimeTextBox extends Zend_Dojo_Form_Element_DateText
/**
* Validate ISO 8601 time format
*
* @param string $format
*
* @param string $format
* @return true
* @throws Zend_Form_Element_Exception
*/

View File

@ -24,13 +24,13 @@ require_once 'Zend/Dojo/Form/Element/TextBox.php';
/**
* ValidationTextBox dijit
*
*
* @uses Zend_Dojo_Form_Element_TextBox
* @package Zend_Dojo
* @subpackage Form_Element
* @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 $
*/
class Zend_Dojo_Form_Element_ValidationTextBox extends Zend_Dojo_Form_Element_TextBox
{
@ -108,9 +108,9 @@ class Zend_Dojo_Form_Element_ValidationTextBox extends Zend_Dojo_Form_Element_Te
/**
* Set an individual constraint
*
* @param string $key
* @param mixed $value
*
* @param string $key
* @param mixed $value
* @return Zend_Dojo_Form_Element_ValidationTextBox
*/
public function setConstraint($key, $value)
@ -124,10 +124,10 @@ class Zend_Dojo_Form_Element_ValidationTextBox extends Zend_Dojo_Form_Element_Te
/**
* Set validation constraints
*
* Refer to Dojo dijit.form.ValidationTextBox documentation for valid
* Refer to Dojo dijit.form.ValidationTextBox documentation for valid
* structure.
*
* @param array $constraints
*
* @param array $constraints
* @return Zend_Dojo_Form_Element_ValidationTextBox
*/
public function setConstraints(array $constraints)
@ -139,8 +139,8 @@ class Zend_Dojo_Form_Element_ValidationTextBox extends Zend_Dojo_Form_Element_Te
/**
* Is the given constraint set?
*
* @param string $key
*
* @param string $key
* @return bool
*/
public function hasConstraint($key)
@ -151,8 +151,8 @@ class Zend_Dojo_Form_Element_ValidationTextBox extends Zend_Dojo_Form_Element_Te
/**
* Get an individual constraint
*
* @param string $key
*
* @param string $key
* @return mixed
*/
public function getConstraint($key)
@ -166,7 +166,7 @@ class Zend_Dojo_Form_Element_ValidationTextBox extends Zend_Dojo_Form_Element_Te
/**
* Get constraints
*
*
* @return array
*/
public function getConstraints()
@ -179,8 +179,8 @@ class Zend_Dojo_Form_Element_ValidationTextBox extends Zend_Dojo_Form_Element_Te
/**
* Remove a single constraint
*
* @param string $key
*
* @param string $key
* @return Zend_Dojo_Form_Element_ValidationTextBox
*/
public function removeConstraint($key)
@ -194,7 +194,7 @@ class Zend_Dojo_Form_Element_ValidationTextBox extends Zend_Dojo_Form_Element_Te
/**
* Clear all constraints
*
*
* @return Zend_Dojo_Form_Element_ValidationTextBox
*/
public function clearConstraints()
@ -204,9 +204,9 @@ class Zend_Dojo_Form_Element_ValidationTextBox extends Zend_Dojo_Form_Element_Te
/**
* Cast a boolean value to a string
*
* @param mixed $item
* @param string $key
*
* @param mixed $item
* @param string $key
* @return void
*/
protected function _castBoolToString(&$item, $key)

View File

@ -24,13 +24,13 @@ require_once 'Zend/Dojo/Form/Element/Slider.php';
/**
* VerticalSlider dijit
*
*
* @uses Zend_Dojo_Form_Element_Slider
* @package Zend_Dojo
* @subpackage Form_Element
* @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 $
*/
class Zend_Dojo_Form_Element_VerticalSlider extends Zend_Dojo_Form_Element_Slider
{
@ -42,7 +42,7 @@ class Zend_Dojo_Form_Element_VerticalSlider extends Zend_Dojo_Form_Element_Slide
/**
* Get left decoration data
*
*
* @return array
*/
public function getLeftDecoration()
@ -55,8 +55,8 @@ class Zend_Dojo_Form_Element_VerticalSlider extends Zend_Dojo_Form_Element_Slide
/**
* Set dijit to use with left decoration
*
* @param mixed $dijit
*
* @param mixed $dijit
* @return Zend_Dojo_Form_Element_HorizontalSlider
*/
public function setLeftDecorationDijit($dijit)
@ -69,8 +69,8 @@ class Zend_Dojo_Form_Element_VerticalSlider extends Zend_Dojo_Form_Element_Slide
/**
* Set container to use with left decoration
*
* @param mixed $container
*
* @param mixed $container
* @return Zend_Dojo_Form_Element_HorizontalSlider
*/
public function setLeftDecorationContainer($container)
@ -83,8 +83,8 @@ class Zend_Dojo_Form_Element_VerticalSlider extends Zend_Dojo_Form_Element_Slide
/**
* Set labels to use with left decoration
*
* @param array $labels
*
* @param array $labels
* @return Zend_Dojo_Form_Element_HorizontalSlider
*/
public function setLeftDecorationLabels(array $labels)
@ -97,8 +97,8 @@ class Zend_Dojo_Form_Element_VerticalSlider extends Zend_Dojo_Form_Element_Slide
/**
* Set params to use with left decoration
*
* @param array $params
*
* @param array $params
* @return Zend_Dojo_Form_Element_HorizontalSlider
*/
public function setLeftDecorationParams(array $params)
@ -111,8 +111,8 @@ class Zend_Dojo_Form_Element_VerticalSlider extends Zend_Dojo_Form_Element_Slide
/**
* Set attribs to use with left decoration
*
* @param array $attribs
*
* @param array $attribs
* @return Zend_Dojo_Form_Element_HorizontalSlider
*/
public function setLeftDecorationAttribs(array $attribs)
@ -125,7 +125,7 @@ class Zend_Dojo_Form_Element_VerticalSlider extends Zend_Dojo_Form_Element_Slide
/**
* Get right decoration data
*
*
* @return array
*/
public function getRightDecoration()
@ -138,8 +138,8 @@ class Zend_Dojo_Form_Element_VerticalSlider extends Zend_Dojo_Form_Element_Slide
/**
* Set dijit to use with right decoration
*
* @param mixed $dijit
*
* @param mixed $dijit
* @return Zend_Dojo_Form_Element_HorizontalSlider
*/
public function setRightDecorationDijit($dijit)
@ -152,8 +152,8 @@ class Zend_Dojo_Form_Element_VerticalSlider extends Zend_Dojo_Form_Element_Slide
/**
* Set container to use with right decoration
*
* @param mixed $container
*
* @param mixed $container
* @return Zend_Dojo_Form_Element_HorizontalSlider
*/
public function setRightDecorationContainer($container)
@ -166,8 +166,8 @@ class Zend_Dojo_Form_Element_VerticalSlider extends Zend_Dojo_Form_Element_Slide
/**
* Set labels to use with right decoration
*
* @param array $labels
*
* @param array $labels
* @return Zend_Dojo_Form_Element_HorizontalSlider
*/
public function setRightDecorationLabels(array $labels)
@ -180,8 +180,8 @@ class Zend_Dojo_Form_Element_VerticalSlider extends Zend_Dojo_Form_Element_Slide
/**
* Set params to use with right decoration
*
* @param array $params
*
* @param array $params
* @return Zend_Dojo_Form_Element_HorizontalSlider
*/
public function setRightDecorationParams(array $params)
@ -194,8 +194,8 @@ class Zend_Dojo_Form_Element_VerticalSlider extends Zend_Dojo_Form_Element_Slide
/**
* Set attribs to use with right decoration
*
* @param array $attribs
*
* @param array $attribs
* @return Zend_Dojo_Form_Element_HorizontalSlider
*/
public function setRightDecorationAttribs(array $attribs)

View File

@ -24,13 +24,13 @@ require_once 'Zend/Form/SubForm.php';
/**
* Dijit-enabled SubForm
*
*
* @uses Zend_Form_SubForm
* @package Zend_Dojo
* @subpackage Form
* @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: SubForm.php 16204 2009-06-21 18:58:29Z thomas $
* @version $Id: SubForm.php 18951 2009-11-12 16:26:19Z alexander $
*/
class Zend_Dojo_Form_SubForm extends Zend_Form_SubForm
{
@ -42,8 +42,8 @@ class Zend_Dojo_Form_SubForm extends Zend_Form_SubForm
/**
* Constructor
*
* @param array|Zend_Config|null $options
*
* @param array|Zend_Config|null $options
* @return void
*/
public function __construct($options = null)
@ -58,7 +58,7 @@ class Zend_Dojo_Form_SubForm extends Zend_Form_SubForm
/**
* Load the default decorators
*
*
* @return void
*/
public function loadDefaultDecorators()
@ -76,8 +76,8 @@ class Zend_Dojo_Form_SubForm extends Zend_Form_SubForm
}
/**
* Get view
*
* Get view
*
* @return Zend_View_Interface
*/
public function getView()

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