category Zend
package Zend_I18n
subpackage Filter

 Methods

Sets default option values for this instance

__construct(array | \Traversable | bool | null $allowWhiteSpaceOrOptions, string | null $locale) 
Inherited

inherited_from \Zend\I18n\Filter\Alnum::__construct()

Parameters

$allowWhiteSpaceOrOptions

array\Traversableboolnull

$locale

stringnull

Invoke filter as a command

__invoke(mixed $value) : mixed
Inherited

Proxies to filter()

inherited_from \Zend\Filter\AbstractFilter::__invoke()
inherited_from \Zend\I18n\Filter\AbstractLocale::__invoke()
inherited_from \Zend\I18n\Filter\Alnum::__invoke()

Parameters

$value

mixed

Exceptions

\Zend\Filter\Exception\ExceptionInterface If filtering $value is impossible

Returns

mixed

Defined by Zend\Filter\FilterInterface

filter(string $value) : string

Returns the string $value, removing all but alphabetic characters

Parameters

$value

string

Exceptions

\Zend\Filter\Exception\RuntimeException If filtering $value is impossible

Returns

string

Whether white space is allowed

getAllowWhiteSpace() : bool
Inherited

inherited_from \Zend\I18n\Filter\Alnum::getAllowWhiteSpace()

Returns

bool

Returns the locale option

getLocale() : string
Inherited

inherited_from \Zend\I18n\Filter\AbstractLocale::getLocale()
inherited_from \Zend\I18n\Filter\Alnum::getLocale()

Returns

string

Retrieve options representing object state

getOptions() : array
Inherited

inherited_from \Zend\Filter\AbstractFilter::getOptions()
inherited_from \Zend\I18n\Filter\AbstractLocale::getOptions()
inherited_from \Zend\I18n\Filter\Alnum::getOptions()

Returns

array

hasPcreUnicodeSupport()

hasPcreUnicodeSupport() : bool
Inherited

inherited_from \Zend\Filter\AbstractFilter::hasPcreUnicodeSupport()
inherited_from \Zend\I18n\Filter\AbstractLocale::hasPcreUnicodeSupport()
inherited_from \Zend\I18n\Filter\Alnum::hasPcreUnicodeSupport()

Returns

bool

Sets the allowWhiteSpace option

setAllowWhiteSpace(bool $flag) : \Zend\I18n\Filter\Alnum
Inherited

inherited_from \Zend\I18n\Filter\Alnum::setAllowWhiteSpace()

Parameters

$flag

bool

Returns

\Zend\I18n\Filter\AlnumProvides a fluent interface

Sets the locale option

setLocale(string | null $locale) : \Zend\I18n\Filter\AbstractLocale
Inherited

inherited_from \Zend\I18n\Filter\AbstractLocale::setLocale()
inherited_from \Zend\I18n\Filter\Alnum::setLocale()

Parameters

$locale

stringnull

Returns

setOptions()

setOptions(array | \Traversable $options) : \Zend\Filter\AbstractFilter
Inherited

inherited_from \Zend\Filter\AbstractFilter::setOptions()
inherited_from \Zend\I18n\Filter\AbstractLocale::setOptions()
inherited_from \Zend\I18n\Filter\Alnum::setOptions()

Parameters

$options

array\Traversable

Exceptions

\Zend\Filter\Exception\InvalidArgumentException

Returns

isOptions()

isOptions(mixed $options) : bool
Inherited

inherited_from \Zend\Filter\AbstractFilter::isOptions()
inherited_from \Zend\I18n\Filter\AbstractLocale::isOptions()
inherited_from \Zend\I18n\Filter\Alnum::isOptions()

Parameters

$options

mixed

Returns

bool

 Properties

 

Is PCRE is compiled with UTF-8 and Unicode support

$hasPcreUnicodeSupport : bool
Inherited

inherited_from \Zend\Filter\AbstractFilter::$$hasPcreUnicodeSupport
inherited_from \Zend\I18n\Filter\AbstractLocale::$$hasPcreUnicodeSupport
inherited_from \Zend\I18n\Filter\Alnum::$$hasPcreUnicodeSupport
 

Filter options

$options : array
Inherited

inherited_from \Zend\I18n\Filter\Alnum::$$options