|
ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Class to get gettext strings from twig files returning arrays. More...
Inheritance diagram for Gettext\Extractors\Twig:
Collaboration diagram for Gettext\Extractors\Twig:Static Public Member Functions | ||||||||||
| static | fromString ($string, Translations $translations=null, $file='') | |||||||||
{Parses a string and append the translations found in the Translations instance.
| ||||||||||
| static | addExtension ($extension) | |||||||||
| Initialise Twig if it isn't already, and add a given Twig extension. More... | ||||||||||
Static Public Member Functions inherited from Gettext\Extractors\Extractor | ||||||||||
| static | fromFile ($file, Translations $translations=null) | |||||||||
| Extract the translations from a file. More... | ||||||||||
Static Public Member Functions inherited from Gettext\Extractors\ExtractorInterface | ||||||||||
| static | fromFile ($file, Translations $translations=null) | |||||||||
| Extract the translations from a file. More... | ||||||||||
| static | fromString ($string, Translations $translations=null, $file='') | |||||||||
| Parses a string and append the translations found in the Translations instance. More... | ||||||||||
Static Protected Member Functions | |
| static | checkHasExtensionByClassName ($className) |
| Checks if a given Twig extension is already registered or not. More... | |
Static Protected Member Functions inherited from Gettext\Extractors\Extractor | |
| static | getFiles ($file) |
| Checks and returns all files. More... | |
| static | readFile ($file) |
| Reads and returns the content of a file. More... | |
Static Protected Attributes | |
| static | $twig |
Class to get gettext strings from twig files returning arrays.
|
static |
Initialise Twig if it isn't already, and add a given Twig extension.
This must be called before calling fromString().
| mixed | $extension | Already initialised extension to add |
Definition at line 44 of file Twig.php.
Referenced by Gettext\Extractors\Twig\fromString().
Here is the caller graph for this function:
|
staticprotected |
Checks if a given Twig extension is already registered or not.
| string | Name of Twig extension to check |
Definition at line 65 of file Twig.php.
|
static |
{Parses a string and append the translations found in the Translations instance.
| string | $string | |
| Translations | null | $translations | |
| string | $file | The file path to insert the reference |
Implements Gettext\Extractors\ExtractorInterface.
Definition at line 24 of file Twig.php.
References Gettext\Extractors\PhpCode\$functions, Gettext\Extractors\Twig\addExtension(), and Gettext\Extractors\PhpCode\fromString().
Here is the call graph for this function: