class Text (View source)

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

Properties

static private $modules Array of UI text modules.

Methods

static string
get(string $key)

Return the requested text module.

static array
getEditorModules()

Return array only including editor text modlues.

static object
getObject()

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

static 
parseModules()

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

Details

static string get(string $key)

Return the requested text module.

Parameters

string $key

Return Value

string The requested text module

static array getEditorModules()

Return array only including editor text modlues.

Return Value

array The filtered modlues array

static object getObject()

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

Return Value

object The modules array as object

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.