Method | Description | |
---|---|---|
formatDate ( string $value, boolean $isUTC ) : string | Formats the given value to a date of the format 'Y-m-d'. | |
formatDateTime ( string $value, boolean $isUTC ) : string | Formats the given value to a date of the format 'Y-m-d H:i'. | |
formatFloat ( float $float ) : double | string | Formats a float to not display in scientific notation. | |
getLanguageName ( string $language ) : string | Gets a language name in the given language. | |
registerTwigExtensions ( Pimple\Container $app ) | Registers all extensions. |
Method | Description | |
---|---|---|
formatTime ( string $value, string $timezone, string $pattern ) : string | Formats the given time value to a timestring defined by the $pattern parameter. |
public formatFloat ( float $float ) : double | string | ||
$float | float | the float to format |
return | double | string | the formated float |
public getLanguageName ( string $language ) : string | ||
$language | string | the language code of the desired language name |
return | string | the language name in the given language or null if not available |
public registerTwigExtensions ( Pimple\Container $app ) | ||
$app | Pimple\Container | the current application |