MediaWiki master
|
Store information about magic words, and create/cache MagicWord objects. More...
Public Member Functions | |
__construct (Language $contentLanguage, 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 39 of file MagicWordFactory.php.
MediaWiki\Parser\MagicWordFactory::__construct | ( | Language | $contentLanguage, |
HookContainer | $hookContainer ) |
Definition at line 159 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 174 of file MagicWordFactory.php.
MediaWiki\Parser\MagicWordFactory::getCacheTTL | ( | $id | ) |
Allow external reads of TTL array.
string | $id |
Definition at line 223 of file MagicWordFactory.php.
MediaWiki\Parser\MagicWordFactory::getContentLanguage | ( | ) |
Definition at line 164 of file MagicWordFactory.php.
MediaWiki\Parser\MagicWordFactory::getDoubleUnderscoreArray | ( | ) |
Get a MagicWordArray of double-underscore entities.
Definition at line 232 of file MagicWordFactory.php.
MediaWiki\Parser\MagicWordFactory::getSubstArray | ( | ) |
Definition at line 212 of file MagicWordFactory.php.
MediaWiki\Parser\MagicWordFactory::getSubstIDs | ( | ) |
Get an array of parser substitution modifier IDs.
Definition at line 204 of file MagicWordFactory.php.
MediaWiki\Parser\MagicWordFactory::getVariableIDs | ( | ) |
Get an array of parser variable IDs.
Definition at line 188 of file MagicWordFactory.php.
MediaWiki\Parser\MagicWordFactory::newArray | ( | array | $names = [] | ) |
Get a new MagicWordArray with provided $names.
string[] | $names |
Definition at line 246 of file MagicWordFactory.php.