Метод |
Описание |
|
addEllipsis ( $string, $length, string $end = '...' ) : string |
http://www.alfasky.com/?p=20
This little function will help you truncate a string to a specified
length when copying data to a place where you can only store or display
a limited number of characters, then it will append “…” to it showing
that some characters were removed from the original entry. |
|
check_time_format ( string $timestring ) : boolean |
Check if a parset string matches with the following time-formatting: 20.08.2008-19:00:00. |
|
expand_date_shortcut ( string $date ) : string |
Preprocess shortcut for date entries. |
|
expand_time_shortcut ( $time ) : string |
Preprocess shortcut for time entries. |
|
formatAnnotations ( &$ann ) |
Format the annotations and only include data which the user wants to see. |
|
formatCurrency ( integer | array $number, boolean $htmlNoWrap = true ) : integer | array | string |
Format a currency or an array of currencies accordingly. |
|
formatDuration ( $sek ) : integer | array |
Format a duration given in seconds according to the global setting. Either
seconds are shown or not. |
|
hourminsec ( integer $sek ) : array |
Returns hours, minutes and seconds as array. |
|