__construct()
__invoke()
addFilterRule()
addRules()
clearRules()
filter()
getOptions()
getPluginManager()
getRule()
getRules()
getTarget()
getTargetReplacementIdentifier()
hasPcreUnicodeSupport()
isThrowTargetExceptionsOn()
setFilterRule()
setOptions()
setPluginManager()
setRules()
setStaticRule()
setStaticRuleReference()
setTarget()
setTargetReference()
setTargetReplacementIdentifier()
setThrowTargetExceptionsOn()
_getRule()
_normalizeSpec()
isOptions()
$options
$pluginManager
$rules
$target
$targetReplacementIdentifier
$throwTargetExceptionsOn
Filter chain for string inflection
__construct(string | array | \Traversable $options)
stringarray\Traversable
Options to set
__invoke(mixed $value) : mixed
Proxies to filter()
inherited_from | \Zend\Filter\AbstractFilter::__invoke() |
---|
mixed
\Zend\Filter\Exception\ExceptionInterface |
If filtering $value is impossible |
---|
mixed
addFilterRule(mixed $spec, mixed $ruleSet) : \Zend\Filter\self
mixed
mixed
\Zend\Filter\self
addRules(array $rules) : \Zend\Filter\self
If prefixed with a ":" (colon), a filter rule will be added. If not prefixed, a static replacement will be added.
ex: array( ':controller' => array('CamelCaseToUnderscore', 'StringToLower'), ':action' => array('CamelCaseToUnderscore', 'StringToLower'), 'suffix' => 'phtml' );
array
\Zend\Filter\self
clearRules() : \Zend\Filter\self
\Zend\Filter\self
filter(string | array $source) : string
getOptions() : array
inherited_from | \Zend\Filter\AbstractFilter::getOptions() |
---|
array
getRule(string $spec, int $index) : \Zend\Filter\FilterInterface | false
getRules(string $spec) : array | false
By default, returns all rules. If a $spec is provided, will return those rules if found, false otherwise.
string
array
false
getTarget() : string
string
getTargetReplacementIdentifier() : string
string
hasPcreUnicodeSupport() : bool
inherited_from | \Zend\Filter\AbstractFilter::hasPcreUnicodeSupport() |
---|
bool
isThrowTargetExceptionsOn() : bool
bool
setFilterRule(string $spec, array | string | \Zend\Filter\FilterInterface $ruleSet) : \Zend\Filter\self
$ruleSet can be a string, Filter object or an array of strings or filter objects.
string
arraystring\Zend\Filter\FilterInterface
\Zend\Filter\self
setOptions(array | \Traversable $options) : \Zend\Filter\self
array\Traversable
\Zend\Filter\Exception\InvalidArgumentException |
---|
\Zend\Filter\self
setPluginManager(\Zend\Filter\FilterPluginManager $manager) : \Zend\Filter\self
setRules(array $rules) : \Zend\Filter\self
array
\Zend\Filter\self
setStaticRule(string $name, string $value) : \Zend\Filter\self
This is a single string value
string
string
\Zend\Filter\self
setStaticRuleReference(string $name, mixed $reference) : \Zend\Filter\self
This allows a consuming class to pass a property or variable in to be referenced when its time to build the output string from the target.
string
mixed
\Zend\Filter\self
setTarget(string $target) : \Zend\Filter\self
string
\Zend\Filter\self
setTargetReference(string $target) : \Zend\Filter\self
string
\Zend\Filter\self
setTargetReplacementIdentifier(string $targetReplacementIdentifier) : \Zend\Filter\self
string
\Zend\Filter\self
setThrowTargetExceptionsOn(bool $throwTargetExceptionsOn) : \Zend\Filter\self
bool
\Zend\Filter\self
_getRule(string $rule) : \Zend\Filter\FilterInterface
_normalizeSpec(string $spec) : string
string
string
isOptions(mixed $options) : bool
inherited_from | \Zend\Filter\AbstractFilter::isOptions() |
---|
mixed
bool
$rules : array
$target : string
$targetReplacementIdentifier : string
$throwTargetExceptionsOn : bool