core/srcPluf.php

Classes

Pluf The main class of the framework.
PlufErrorHandlerException Exception to catch the PHP errors.

Functions

__()

__(  $str) : string

Translate a string.

Parameters

$str

Returns

string —

Translated string.

_n()

_n(  $sing,   $plur,   $n) : string

Translate the plural form of a string.

Parameters

$sing
$plur
$n

Returns

string —

Translated string.

Pluf_autoload()

Pluf_autoload(  $class_name) 

Autoload function.

Parameters

$class_name

PlufErrorHandler()

PlufErrorHandler(  $code,   $string,   $file,   $line) 

The function that is the real error handler.

Parameters

$code
$string
$file
$line

Pluf_esc()

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.

Parameters

$string

Returns

string —

HTML escaped string