|
MediaWiki master
|
Store information about magic words, and create/cache MagicWord objects. More...
Public Member Functions | |
| __construct (private readonly Language $contLang, HookContainer $hookContainer,) | |
| get ( $id) | |
| Get a MagicWord object for a given internal ID. | |
| getCacheTTL ( $id) | |
| Allow external reads of TTL array. | |
| getContentLanguage () | |
| getDoubleUnderscoreArray () | |
| Get a MagicWordArray of double-underscore entities. | |
| getSubstArray () | |
| getSubstIDs () | |
| Get an array of parser substitution modifier IDs. | |
| getVariableIDs () | |
| Get an array of parser variable IDs. | |
| newArray (array $names=[]) | |
| Get a new MagicWordArray with provided $names. | |
Store information about magic words, and create/cache MagicWord objects.
See docs/magicword.md.
Possible future improvements:
Definition at line 25 of file MagicWordFactory.php.
| MediaWiki\Parser\MagicWordFactory::__construct | ( | private readonly Language | $contLang, |
| HookContainer | $hookContainer ) |
Definition at line 145 of file MagicWordFactory.php.
| MediaWiki\Parser\MagicWordFactory::get | ( | $id | ) |
Get a MagicWord object for a given internal ID.
| string | $id | The internal name of the magic word |
Definition at line 162 of file MagicWordFactory.php.
| MediaWiki\Parser\MagicWordFactory::getCacheTTL | ( | $id | ) |
Allow external reads of TTL array.
| string | $id |
Definition at line 211 of file MagicWordFactory.php.
| MediaWiki\Parser\MagicWordFactory::getContentLanguage | ( | ) |
Definition at line 152 of file MagicWordFactory.php.
| MediaWiki\Parser\MagicWordFactory::getDoubleUnderscoreArray | ( | ) |
Get a MagicWordArray of double-underscore entities.
Definition at line 218 of file MagicWordFactory.php.
| MediaWiki\Parser\MagicWordFactory::getSubstArray | ( | ) |
Definition at line 200 of file MagicWordFactory.php.
| MediaWiki\Parser\MagicWordFactory::getSubstIDs | ( | ) |
Get an array of parser substitution modifier IDs.
Definition at line 192 of file MagicWordFactory.php.
| MediaWiki\Parser\MagicWordFactory::getVariableIDs | ( | ) |
Get an array of parser variable IDs.
Definition at line 176 of file MagicWordFactory.php.
| MediaWiki\Parser\MagicWordFactory::newArray | ( | array | $names = [] | ) |
Get a new MagicWordArray with provided $names.
| string[] | $names |
Definition at line 232 of file MagicWordFactory.php.