pluf/src/Pluf.php File Reference


Classes

class  Pluf
class  PlufErrorHandlerException

Functions

 __ ($str)
 _n ($sing, $plur, $n)
 __autoload ($class_name)
 PlufErrorHandler ($code, $string, $file, $line)
 Pluf_esc ($string)

Function Documentation

__ ( str  ) 

Translate a string.

Parameters:
string String to be translated.
Returns:
string Translated string.

__autoload ( class_name  ) 

Autoload function.

Parameters:
string Class name.

_n ( sing,
plur,
n 
)

Translate the plural form of a string.

Parameters:
string Singular form of the string.
string Plural form of the string.
int Number of elements.
Returns:
string Translated string.

Pluf_esc ( 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 Raw string
Returns:
string HTML escaped string

PlufErrorHandler ( code,
string,
file,
line 
)

The function that is the real error handler.


Generated on Wed Feb 3 15:44:51 2010 for Pluf by  doxygen