NumberToLocalizedStringTransformer

class NumberToLocalizedStringTransformer implements DataTransformerInterface Transforms between a number type and a localized number with grouping (each thousand) and comma separators. Constants ROUND_CEILING Rounds a number towards positive infinity. Rounds 1.4 to 2 and -1.4 to -1. ROUND_FLOOR Rounds a number towards negative infinity. Rounds 1.4 to 1 and -1.4 to -2. ROUND_UP Rounds a number away from zero. Rounds 1.4 to 2 and -1.4 to -2. ROUND_DOWN Rounds a number towards zero. Rou

NumberHandler

class NumberHandler implements HandlerInterface CSS selector comment handler. This component is a port of the Python cssselect library, which is copyright Ian Bicking, see https://github.com/SimonSapin/cssselect. Methods __construct(TokenizerPatterns $patterns) bool handle(Reader $reader, TokenStream $stream) Details __construct(TokenizerPatterns $patterns) Parameters TokenizerPatterns $patterns bool handl

NumberFormatter::setTextAttribute()

bool setTextAttribute(int $attr, int $value) Not supported. Set a text attribute. Parameters int $attr An attribute specifier, one of the text attribute constants int $value The attribute value Return Value bool true on success or false on failure Exceptions MethodNotImplementedException See also http://www.php.net/manual/en/numberformatter.settextattribute.php

NumberFormatter::setSymbol()

bool setSymbol(int $attr, string $value) Not supported. Set the formatter's symbol. Parameters int $attr A symbol specifier, one of the format symbol constants string $value The value for the symbol Return Value bool true on success or false on failure Exceptions MethodNotImplementedException See also http://www.php.net/manual/en/numberformatter.setsymbol.php

NumberFormatter::setPattern()

bool setPattern(string $pattern) Not supported. Set the formatter's pattern. Parameters string $pattern A pattern string in conformance with the ICU DecimalFormat documentation Return Value bool true on success or false on failure Exceptions MethodNotImplementedException See also http://www.php.net/manual/en/numberformatter.setpattern.php http://www.icu-project.org/apiref/icu4c/classDecimalFormat.html#_details

NumberFormatter::setAttribute()

bool setAttribute(int $attr, int $value) Set an attribute. Parameters int $attr An attribute specifier, one of the numeric attribute constants The only currently supported attributes are NumberFormatter::FRACTIONDIGITS, NumberFormatter::GROUPINGUSED and NumberFormatter::ROUNDING_MODE. int $value The attribute value Return Value bool true on success or false on failure Exceptions MethodArgumentValueNotImplementedException When the $attr is not supported MethodArgumentValueNotImp

NumberFormatter::parseCurrency()

bool|string parseCurrency(string $value, string $currency, int $position = null) Not supported. Parse a currency number. Parameters string $value The value to parse string $currency Parameter to receive the currency name (reference) int $position Offset to begin the parsing on return this value will hold the offset at which the parsing ended Return Value bool|string The parsed numeric value of false on error Exceptions MethodNotImplementedException See also http://www.php.net/

NumberFormatter::parse()

int|float|false parse(string $value, int $type = self::TYPE_DOUBLE, int $position) Parse a number. Parameters string $value The value to parse int $type Type of the formatting, one of the format type constants. NumberFormatter::TYPE_DOUBLE by default int $position Offset to begin the parsing on return this value will hold the offset at which the parsing ended Return Value int|float|false The parsed value of false on error See also http://www.php.net/manual/en/numberformatter.pa

NumberFormatter::getTextAttribute()

bool|string getTextAttribute(int $attr) Not supported. Returns a formatter text attribute value. Parameters int $attr An attribute specifier, one of the text attribute constants Return Value bool|string The attribute value or false on error See also http://www.php.net/manual/en/numberformatter.gettextattribute.php

NumberFormatter::getSymbol()

bool|string getSymbol(int $attr) Not supported. Returns a formatter symbol value. Parameters int $attr A symbol specifier, one of the format symbol constants Return Value bool|string The symbol value or false on error See also http://www.php.net/manual/en/numberformatter.getsymbol.php