PHP Class Thelia\Tools\NumberFormat

Afficher le fichier Open project: thelia/thelia Class Usage Examples

Protected Properties

Свойство Type Description
$request

Méthodes publiques

Méthode Description
__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 )

Method Details

__construct() public méthode

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

format() public méthode

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

formatStandardNumber() public méthode

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
Résultat string

getInstance() public static méthode

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

Property Details

$request protected_oe property

protected $request