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_ElementCheckBox 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
Flag: autoregister inArray validator?
Default valuetrue
Details- Type
- bool



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



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



array $options = array()
Array of options for multi-item
Default valuearray()
Details- Type
- array
Methods



getMultiOption(string $option) : mixed
Retrieve single multi option
ParametersName | Type | Description |
---|
$option | string | |
---|
Returns 


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


removeMultiOption(string $option) : bool
Remove a single multi option
ParametersName | Type | Description |
---|
$option | string | |
---|
Returns 


setMultiOptions(array $options) : \Zend_Form_Element_Multi
Set all options at once (overwrites)
ParametersName | Type | Description |
---|
$options | array | |
---|
Returns 


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