TextManager
in
Interface TextManager
Table of Contents
- getPhraseText() : string
- Returns a translated text for the given phrase and section.
- getSectionPhrases() : array<string|int, string>
- Returns a list with translated texts of all phrases in the given section.
Methods
getPhraseText()
Returns a translated text for the given phrase and section.
public
getPhraseText(string $phrase, string $section[, int|null $languageId = null ]) : string
If no language id is provided, the default one will be used.
Parameters
- $phrase : string
- $section : string
- $languageId : int|null = null
Return values
string —getSectionPhrases()
Returns a list with translated texts of all phrases in the given section.
public
getSectionPhrases(string $section[, int|null $languageId = null ]) : array<string|int, string>
If no language id is provided, the default one will be used.
Parameters
- $section : string
- $languageId : int|null = null