category | Zend |
---|---|
package | Zend_Filter |
copyright | Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) |
license | New BSD License |
__construct(array $filterRules, array $validatorRules, array $data= null
, array $options= null
)
array
array
array
OPTIONAL
array
OPTIONAL
__get(string $fieldName) : mixed
string
mixed
__isset(string $fieldName) : boolean
string
boolean
addFilterPrefixPath(string $prefix, string $path) : \Zend_Filter_Input
string
string
\Zend_Filter_Input
addNamespace(mixed $namespaces) : \Zend_Filter_Input
deprecated | since 1.5.0RC1 - use addFilterPrefixPath() or addValidatorPrefixPath instead. |
---|
mixed
\Zend_Filter_Input
addValidatorPrefixPath(string $prefix, string $path) : \Zend_Filter_Input
string
string
\Zend_Filter_Input
getErrors() : array
array
getEscaped(string $fieldName = null
) : mixed
string
OPTIONAL
mixed
getInvalid() : array
array
getMessages() : array
array
getMissing() : array
array
getPluginLoader(string $type) : \Zend_Loader_PluginLoader_Interface
$type may be one of:
If a plugin loader does not exist for the given type, defaults are created.
string
'filter' or 'validate'
\Zend_Filter_Exception |
on invalid type |
---|
\Zend_Loader_PluginLoader_Interface
getTranslator() : \Zend_Translate_Adapter | null
\Zend_Translate_Adapter
null
getUnescaped(string $fieldName = null
) : mixed
string
OPTIONAL
mixed
getUnknown() : array
array
hasInvalid() : boolean
boolean
hasMissing() : boolean
boolean
hasUnknown() : boolean
boolean
hasValid() : boolean
boolean
isValid(string $fieldName = null
) : boolean
string
boolean
process() : \Zend_Filter_Input
\Zend_Filter_Exception |
---|
\Zend_Filter_Input
setData(array $data) : \Zend_Filter_Input
array
\Zend_Filter_Input
setDefaultEscapeFilter(mixed $escapeFilter) : \Zend_Filter_Interface
mixed
\Zend_Filter_Interface
setDisableTranslator(boolean $flag) : \Zend_Filter_Input
boolean
\Zend_Filter_Input
setOptions(array $options) : \Zend_Filter_Input
array
\Zend_Filter_Exception |
if an unknown option is given |
---|
\Zend_Filter_Input
setPluginLoader(\Zend_Loader_PluginLoader_Interface $loader, string $type) : \Zend_Filter_Input
\Zend_Loader_PluginLoader_Interface
string
'filter' or 'validate'
\Zend_Filter_Exception |
on invalid type |
---|
\Zend_Filter_Input
setTranslator(\Zend_Translate|\Zend_Translate_Adapter|null $translator = null
) : \Zend_Filter_Input
\Zend_Translate
\Zend_Translate_Adapter
null
\Zend_Filter_Input
translatorIsDisabled() : boolean
boolean
_escapeRecursive($data) : mixed
mixed
_filter() : void
_filterRule(array $filterRule) : void
array
_getDefaultEscapeFilter() : \Zend_Filter_Interface
\Zend_Filter_Interface
_getFilter(mixed $classBaseName) : \Zend_Filter_Interface
mixed
\Zend_Filter_Interface
_getFilterOrValidator(string $type, mixed $classBaseName) : \Zend_Filter_Interface | \Zend_Validate_Interface
string
mixed
\Zend_Filter_Exception |
---|
\Zend_Filter_Interface
\Zend_Validate_Interface
_getMissingMessage(string $rule, string $field) : string
string
string
string
_getNotEmptyMessage($rule, $field) : string
string
_getNotEmptyValidatorInstance(array $validatorRule) : mixed
The purpose is to preserve things like a custom message, that may have been set on the validator outside Zend_Filter_Input.
array
mixed
false if none is found, Zend_Validate_NotEmpty instance if found_getValidator(mixed $classBaseName) : \Zend_Validate_Interface
mixed
\Zend_Validate_Interface
_process() : void
_validate() : void
_validateRule(array $validatorRule) : void
array
$_data : array
array()
$_defaultEscapeFilter : \Zend_Filter_Interface
null
$_defaults : array
array(self::ALLOW_EMPTY => false, self::BREAK_CHAIN => false, self::ESCAPE_FILTER => 'HtmlEntities', self::MISSING_MESSAGE => "Field '%field%' is required by rule '%rule%', but the field is missing", self::NOT_EMPTY_MESSAGE => "You must give a non-empty value for field '%field%'", self::PRESENCE => self::PRESENCE_OPTIONAL)
$_filterRules : array
array()
$_invalidErrors : array
array()
$_invalidMessages : array
array()
$_loaders : array
array()
$_missingFields : array
array()
$_processed : boolean
false
$_translator : \Zend_Translate
$_translatorDisabled : Boolean
false
$_unknownFields : array
array()
$_validFields : array
array()
$_validatorRules : array
array()
ALLOW_EMPTY = 'allowEmpty'
BREAK_CHAIN = 'breakChainOnFailure'
DEFAULT_VALUE = 'default'
ESCAPE_FILTER = 'escapeFilter'
FIELDS = 'fields'
FILTER = 'filter'
FILTER_CHAIN = 'filterChain'
FILTER_NAMESPACE = 'filterNamespace'
INPUT_NAMESPACE = 'inputNamespace'
MESSAGES = 'messages'
MISSING_MESSAGE = 'missingMessage'
NOT_EMPTY_MESSAGE = 'notEmptyMessage'
PRESENCE = 'presence'
PRESENCE_OPTIONAL = 'optional'
PRESENCE_REQUIRED = 'required'
RULE = 'rule'
RULE_WILDCARD = '*'
VALIDATE = 'validate'
VALIDATOR = 'validator'
VALIDATOR_CHAIN = 'validatorChain'
VALIDATOR_CHAIN_COUNT = 'validatorChainCount'
VALIDATOR_NAMESPACE = 'validatorNamespace'