__()
__( $str) : string
Translate a string.
Parameters
| $str |
Returns
string —Translated string.
| Pluf | The main class of the framework. |
| PlufErrorHandlerException | Exception to catch the PHP errors. |
_n( $sing, $plur, $n) : string
Translate the plural form of a string.
| $sing | ||
| $plur | ||
| $n |
Translated string.
| package |
Default |
|---|
| package |
Default |
|---|
PlufErrorHandler( $code, $string, $file, $line)
The function that is the real error handler.
| $code | ||
| $string | ||
| $file | ||
| $line |
| package |
Default |
|---|
Pluf_esc( $string) : string
Shortcut needed all over the place.
Note that in some cases, we need to escape strings not in UTF-8, so this is not possible to safely use a call to htmlspecialchars. This is why str_replace is used.
| $string |
HTML escaped string
| package |
Default |
|---|