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.
Base class for multi-option form elements

bool
$_registerInArrayValidator= 'true'
Flag: autoregister inArray validator?
true
Details
string
$_separator= ''<br />''
Separator to use between options; defaults to '<br />'.
'<br />'
Details
array
$_translated= 'array()'
Which values are translated already?
array()
Details
_translateOption(
string $option, string $value
)
:
bool
Translate an option
Name | Type | Description |
---|---|---|
$option | string | |
$value | string |
Type | Description |
---|---|
bool |

_translateValue(
string $value
)
:
string
Translate a multi option value
Name | Type | Description |
---|---|---|
$value | string |
Type | Description |
---|---|
string |

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

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

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

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

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

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

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

setSeparator(
mixed $separator
)
:
\Zend_Form_Element_Multi
Set separator
Name | Type | Description |
---|---|---|
$separator | mixed |
Type | Description |
---|---|
\Zend_Form_Element_Multi |