class Text (View source)

The Text class provides all methods related to the text modules used in the GUI.

Methods

static 
e(string $key)

Short version of echo Text::get().

static 
parseModules()

Parse the text modules file and store all modules in Text::$modules.

static string
get(string $key)

Return the requested text module.

static object
getObject()

Return the modules as object to be used in heredoc strings.

Details

static e(string $key)

Short version of echo Text::get().

Parameters

string $key

static parseModules()

Parse the text modules file and store all modules in Text::$modules.

In case AM_FILE_GUI_TRANSLATION is defined, the translated text modules will be merged into Text:$modules.

static string get(string $key)

Return the requested text module.

Parameters

string $key

Return Value

string The requested text module

static object getObject()

Return the modules as object to be used in heredoc strings.

Return Value

object The modules array as object