PHP Класс Thelia\Tools\NumberFormat

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$request

Открытые методы

Метод Описание
__construct ( Request $request )
format ( $number, $decimals = null, $decPoint = null, $thousandsSep = null )
formatStandardNumber ( float $number, string $decimals = null ) : string Get a standard number, with '.' as decimal point and no thousands separator so that this number can be used to perform calculations.
getInstance ( Request $request )

Описание методов

__construct() публичный Метод

public __construct ( Request $request )
$request Symfony\Component\HttpFoundation\Request

format() публичный Метод

public format ( $number, $decimals = null, $decPoint = null, $thousandsSep = null )

formatStandardNumber() публичный Метод

Get a standard number, with '.' as decimal point and no thousands separator so that this number can be used to perform calculations.
public formatStandardNumber ( float $number, string $decimals = null ) : string
$number float the number
$decimals string number of decimal figures
Результат string

getInstance() публичный статический Метод

public static getInstance ( Request $request )
$request Symfony\Component\HttpFoundation\Request

Описание свойств

$request защищенное свойство

protected $request