PHP Class Ip\Internal\FormatHelper

Exibir arquivo Open project: impresspages/impresspages Class Usage Examples

Public Methods

Method Description
formatBytes ( $bytes, $context, $precision, null $languageCode = null ) : mixed | null | string
formatDate ( integer $unixTimestamp, string $context = null, integer $languageCode = null ) : string
formatDateTime ( integer $unixTimestamp, string $context = null, integer $languageCode = null ) : string
formatPrice ( integer $price, string $currency, string $context, string $languageCode = null ) : string
formatTime ( integer $unixTimestamp, string $context = null, integer $languageCode = null ) : string

Method Details

formatBytes() public static method

public static formatBytes ( $bytes, $context, $precision, null $languageCode = null ) : mixed | null | string
$bytes
$context
$precision
$languageCode null
return mixed | null | string

formatDate() public static method

public static formatDate ( integer $unixTimestamp, string $context = null, integer $languageCode = null ) : string
$unixTimestamp integer
$context string
$languageCode integer
return string

formatDateTime() public static method

public static formatDateTime ( integer $unixTimestamp, string $context = null, integer $languageCode = null ) : string
$unixTimestamp integer
$context string
$languageCode integer
return string

formatPrice() public static method

public static formatPrice ( integer $price, string $currency, string $context, string $languageCode = null ) : string
$price integer Price in cents
$currency string Three letter currency code
$context string
$languageCode string
return string

formatTime() public static method

public static formatTime ( integer $unixTimestamp, string $context = null, integer $languageCode = null ) : string
$unixTimestamp integer
$context string
$languageCode integer
return string