NumberFormatFilter

Namespace

IO\Extensions\Filters

Extends
Properties
Type Name Description

ConfigRepository

$config

NumberFormatter

$numberFormatter

``

$cache

Methods
public __construct($config)

NumberFormatFilter constructor.

Parameters

Type

Name

Description

ConfigRepository

$config

public getFilters():array

Return the available filter methods

public formatDateTime($value):string

Format incorrect JSON ENCODED dateTimeFormat

Parameters

Type

Name

Description

string

$value

public trimNewlines($value):string

Trim newlines from string

Parameters

Type

Name

Description

string

$value

public formatDecimal($value, $decimal_places = -1):string

Format the given value to decimal

Parameters

Type

Name

Description

float

$value

int

$decimal_places

public formatMonetary($value, $currencyISO):string

Format the given value to currency

Parameters

Type

Name

Description

float

$value

string

$currencyISO

public fromMemoryCache()
public resetMemoryCache($key = null)
Parameters

Type

Name

Description

``

$key