PHP Class Ip\Internal\FormatHelper

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

Méthodes publiques

Méthode 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 méthode

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

formatDate() public static méthode

public static formatDate ( integer $unixTimestamp, string $context = null, integer $languageCode = null ) : string
$unixTimestamp integer
$context string
$languageCode integer
Résultat string

formatDateTime() public static méthode

public static formatDateTime ( integer $unixTimestamp, string $context = null, integer $languageCode = null ) : string
$unixTimestamp integer
$context string
$languageCode integer
Résultat string

formatPrice() public static méthode

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

formatTime() public static méthode

public static formatTime ( integer $unixTimestamp, string $context = null, integer $languageCode = null ) : string
$unixTimestamp integer
$context string
$languageCode integer
Résultat string