PHP 클래스 Thelia\Tools\NumberFormat

파일 보기 프로젝트 열기: thelia/thelia 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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