category Zend
package Zend_I18n
subpackage Filter

 Methods

__construct()

__construct(array | \Traversable | string | null $localeOrOptions, int $style, int $type) 

Parameters

$localeOrOptions

array\Traversablestringnull

$style

int

$type

int

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()

Parameters

$value

mixed

Exceptions

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

Returns

mixed

Defined by Zend\Filter\FilterInterface

filter(mixed $value) : mixed

see \Zend\Filter\FilterInterface::filter()

Parameters

$value

mixed

Exceptions

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

Returns

mixed

getFormatter()

getFormatter() : \NumberFormatter

Returns the locale option

getLocale() : string
Inherited

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

Returns

string

Retrieve options representing object state

getOptions() : array
Inherited

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

Returns

array

getStyle()

getStyle() : int

Returns

int

getType()

getType() : int

Returns

int

hasPcreUnicodeSupport()

hasPcreUnicodeSupport() : bool
Inherited

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

Returns

bool

setFormatter()

setFormatter(\NumberFormatter $formatter) : \Zend\I18n\Filter\NumberFormat

Parameters

$formatter

\NumberFormatter

Returns

Sets the locale option

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

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()

Parameters

$options

array\Traversable

Exceptions

\Zend\Filter\Exception\InvalidArgumentException

Returns

setStyle()

setStyle(int $style) : \Zend\I18n\Filter\NumberFormat

Parameters

$style

int

Returns

setType()

setType(int $type) : \Zend\I18n\Filter\NumberFormat

Parameters

$type

int

Returns

isOptions()

isOptions(mixed $options) : bool
Inherited

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

Parameters

$options

mixed

Returns

bool

 Properties

 

$formatter

$formatter : \NumberFormatter

 

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
 

Filter options

$options : array