Dojo/Form/Element/DijitMulti.php
Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled
with this package in the file LICENSE.txt.
It is also available through the world-wide-web at this URL:
http://framework.zend.com/license/new-bsd
If you did not receive a copy of the license and are unable to
obtain it through the world-wide-web, please send an email
to license@zend.com so we can send you a copy immediately.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Dojo
- Subpackage
- Form_Element
\Zend_Dojo_Form_Element_DijitMulti
Package: Zend_Dojo\Form_Element









Returns




CheckBox dijit
Note: this would be easier with mixins or traits...
- Parent(s)
- \Zend_Dojo_Form_Element_Dijit < \Zend_Form_Element
- Children
- \Zend_Dojo_Form_Element_ComboBox
- \Zend_Dojo_Form_Element_RadioButton
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Uses
- Version
- $Id$
Properties


 bool $_registerInArrayValidator = true
bool $_registerInArrayValidator = trueFlag: autoregister inArray validator?
Default value
trueDetails- Type
- bool


 string $_separator = '<br />'
string $_separator = '<br />'Separator to use between options; defaults to '
'.
'.
Default value
'<br />'Details- Type
- string


 array $_translated = array()
array $_translated = array()Which values are translated already?
Default value
array()Details- Type
- array
Methods


 _translateOption(string $option, string $value) : bool
_translateOption(string $option, string $value) : boolTranslate an option
Parameters
Returns
| Name | Type | Description | 
|---|---|---|
| $option | string | |
| $value | string | 
| Type | Description | 
|---|---|
| bool | 


 _translateValue(array | string $value) : array | string
_translateValue(array | string $value) : array | stringTranslate a value
Parameters
Returns
| Name | Type | Description | 
|---|---|---|
| $value | array | string | 
| Type | Description | 
|---|---|
| array | string | 


 addMultiOption(string $option, string $value = '') : \Zend_Form_Element_Multi
addMultiOption(string $option, string $value = '') : \Zend_Form_Element_MultiAdd an option
Parameters
Returns
| Name | Type | Description | 
|---|---|---|
| $option | string | |
| $value | string | 
| Type | Description | 
|---|---|
| \Zend_Form_Element_Multi | 


 addMultiOptions(array $options) : \Zend_Form_Element_Multi
addMultiOptions(array $options) : \Zend_Form_Element_MultiAdd many options at once
Parameters
Returns
| Name | Type | Description | 
|---|---|---|
| $options | array | 
| Type | Description | 
|---|---|
| \Zend_Form_Element_Multi | 


 clearMultiOptions() : \Zend_Form_Element_Multi
clearMultiOptions() : \Zend_Form_Element_MultiClear all options
Returns
| Type | Description | 
|---|---|
| \Zend_Form_Element_Multi | 


 getMultiOption(string $option) : mixed
getMultiOption(string $option) : mixedRetrieve single multi option
Parameters
Returns
| Name | Type | Description | 
|---|---|---|
| $option | string | 
| Type | Description | 
|---|---|
| mixed | 


 isValid(string $value, mixed $context = null) : bool
isValid(string $value, mixed $context = null) : boolIs the value provided valid?
Autoregisters InArray validator if necessary.
Parameters| Name | Type | Description | 
|---|---|---|
| $value | string | |
| $context | mixed | 
| Type | Description | 
|---|---|
| bool | 


 registerInArrayValidator() : bool
registerInArrayValidator() : boolGet status of auto-register inArray validator flag
Returns
| Type | Description | 
|---|---|
| bool | 


 removeMultiOption(string $option) : bool
removeMultiOption(string $option) : boolRemove a single multi option
Parameters
Returns
| Name | Type | Description | 
|---|---|---|
| $option | string | 
| Type | Description | 
|---|---|
| bool | 


 setMultiOptions(array $options) : \Zend_Form_Element_Multi
setMultiOptions(array $options) : \Zend_Form_Element_MultiSet all options at once (overwrites)
Parameters
Returns
| Name | Type | Description | 
|---|---|---|
| $options | array | 
| Type | Description | 
|---|---|
| \Zend_Form_Element_Multi | 


 setRegisterInArrayValidator(bool $flag) : \Zend_Form_Element_Multi
setRegisterInArrayValidator(bool $flag) : \Zend_Form_Element_MultiSet flag indicating whether or not to auto-register inArray validator
Parameters
Returns
| Name | Type | Description | 
|---|---|---|
| $flag | bool | 
| Type | Description | 
|---|---|
| \Zend_Form_Element_Multi | 

 Classes
                          Classes
                      