package Default
inherited_from \Zend\I18n\Filter\AbstractLocale

 Methods

__construct()

__construct(array|\Traversable|string|null $localeOrOptions = null, integer $style = \NumberFormatter::DEFAULT_STYLE, integer $type = \NumberFormatter::TYPE_DOUBLE
inherited_from \Zend\I18n\Filter\AbstractLocale::__construct()

Parameters

$localeOrOptions

array\Traversablestringnull

$style

integer

$type

integer

__construct()

__construct() 
Inherited

Exceptions

\Zend\I18n\Exception\ExtensionNotLoadedException if ext/intl is not present

Invoke filter as a command

__invoke(mixed $value) : mixed
Inherited

Proxies to \filter()

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

Parameters

$value

mixed

Returns

mixed

getFormatter()

getFormatter() : \NumberFormatter

Exceptions

\Zend\I18n\Exception\RuntimeException

Returns

\NumberFormatter

Returns the locale option

getLocale() : string
Inherited

Returns

string

Retrieve options representing object state

getOptions() : array
Inherited

Returns

array

getStyle()

getStyle() : integer

Returns

integer

getType()

getType() : integer

Returns

integer

hasPcreUnicodeSupport()

hasPcreUnicodeSupport() : boolean
InheritedStatic
deprecated Since 2.1.0

Returns

boolean

setFormatter()

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

Parameters

$formatter

\NumberFormatter

Returns

\Zend\I18n\Filter\NumberFormat

Sets the locale option

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

Parameters

$locale

stringnull

Returns

\Zend\I18n\Filter\NumberFormat

Sets the locale option

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

Parameters

$locale

stringnull

Returns

\Zend\I18n\Filter\AbstractLocale

setOptions()

setOptions(array|\Traversable $options) : \Zend\I18n\Filter\NumberParse
Inherited
fluent This method is part of a fluent interface and will return the same instance

Parameters

$options

array\Traversable

Exceptions

\Zend\Filter\Exception\InvalidArgumentException

Returns

\Zend\I18n\Filter\NumberParse

setStyle()

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

Parameters

$style

integer

Returns

\Zend\I18n\Filter\NumberFormat

setType()

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

Parameters

$type

integer

Returns

\Zend\I18n\Filter\NumberFormat

isOptions()

isOptions(mixed $options) : boolean
InheritedStatic

Parameters

$options

mixed

Returns

boolean

 Properties

 

$formatter

$formatter : \NumberFormatter

Default

null
 

$options

$options 

Default

array('locale' => null, 'style' => \NumberFormatter::DEFAULT_STYLE, 'type' => \NumberFormatter::TYPE_DOUBLE)
 

Filter options

$options : array

Default

array()