Zend Framework
1.12
|
Public Member Functions | |
__construct ($options=null) | |
Constructor. | |
getType () | |
Returns the set null types. | |
setType ($type=null) | |
Set the null types. | |
getLocale () | |
Returns the set locale. | |
setLocale ($locale=null) | |
Set the locales which are accepted. | |
getCasting () | |
Returns the casting option. | |
setCasting ($casting=true) | |
Set the working mode. | |
filter ($value) | |
Defined by Zend_Filter_Interface. | |
Public Attributes | |
const | BOOLEAN = 1 |
const | INTEGER = 2 |
const | FLOAT = 4 |
const | STRING = 8 |
const | ZERO = 16 |
const | EMPTY_ARRAY = 32 |
const | NULL = 64 |
const | PHP = 127 |
const | FALSE_STRING = 128 |
const | YES = 256 |
const | ALL = 511 |
Protected Member Functions | |
_getLocalizedQuestion ($value, $yes, $locale) | |
Determine the value of a localized string, and compare it to a given value. | |
Protected Attributes | |
$_constants | |
$_type = self::PHP | |
$_locale = array('auto') | |
$_casting = true | |
__construct | ( | $options = null | ) |
Constructor.
string | array | Zend_Config | $options | OPTIONAL |
|
protected |
Determine the value of a localized string, and compare it to a given value.
string | $value | |
boolean | $yes | |
array | $locale |
filter | ( | $value | ) |
Defined by Zend_Filter_Interface.
Returns a boolean representation of $value
string | $value |
Implements Zend_Filter_Interface.
getCasting | ( | ) |
Returns the casting option.
getLocale | ( | ) |
Returns the set locale.
getType | ( | ) |
Returns the set null types.
setCasting | ( | $casting = true | ) |
Set the working mode.
boolean | $locale | When true this filter works like cast When false it recognises only true and false and all other values are returned as is |
Zend_Filter_Exception |
setLocale | ( | $locale = null | ) |
Set the locales which are accepted.
string | array | Zend_Locale | $locale |
Zend_Filter_Exception |
setType | ( | $type = null | ) |
Set the null types.
integer | array | $type |
Zend_Filter_Exception |
|
protected |
|
protected |
|
protected |
|
protected |
const ALL = 511 |
const BOOLEAN = 1 |
const EMPTY_ARRAY = 32 |
const FALSE_STRING = 128 |
const FLOAT = 4 |
const INTEGER = 2 |
const NULL = 64 |
const PHP = 127 |
const STRING = 8 |
const YES = 256 |
const ZERO = 16 |