MediaWiki 1.40.4
|
A factory that stores information about MagicWords, and creates them on demand with caching. More...
Public Member Functions | |
__construct (Language $contLang, HookContainer $hookContainer) | |
#- | |
get ( $id) | |
Factory: creates an object representing an ID. | |
getCacheTTL ( $id) | |
Allow external reads of TTL array. | |
getContentLanguage () | |
getDoubleUnderscoreArray () | |
Get a MagicWordArray of double-underscore entities. | |
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. | |
A factory that stores information about MagicWords, and creates them on demand with caching.
Possible future improvements:
Definition at line 40 of file MagicWordFactory.php.
MediaWiki\Parser\MagicWordFactory::__construct | ( | Language | $contLang, |
HookContainer | $hookContainer ) |
#-
Definition at line 215 of file MagicWordFactory.php.
MediaWiki\Parser\MagicWordFactory::get | ( | $id | ) |
Factory: creates an object representing an ID.
string | $id | The internal name of the magic word |
Definition at line 231 of file MagicWordFactory.php.
MediaWiki\Parser\MagicWordFactory::getCacheTTL | ( | $id | ) |
Allow external reads of TTL array.
string | $id |
Definition at line 269 of file MagicWordFactory.php.
MediaWiki\Parser\MagicWordFactory::getContentLanguage | ( | ) |
Definition at line 220 of file MagicWordFactory.php.
MediaWiki\Parser\MagicWordFactory::getDoubleUnderscoreArray | ( | ) |
Get a MagicWordArray of double-underscore entities.
Definition at line 282 of file MagicWordFactory.php.
References MediaWiki\Parser\MagicWordFactory\newArray().
MediaWiki\Parser\MagicWordFactory::getSubstIDs | ( | ) |
Get an array of parser substitution modifier IDs.
Definition at line 259 of file MagicWordFactory.php.
MediaWiki\Parser\MagicWordFactory::getVariableIDs | ( | ) |
Get an array of parser variable IDs.
Definition at line 245 of file MagicWordFactory.php.
MediaWiki\Parser\MagicWordFactory::newArray | ( | array | $names = [] | ) |
Get a new MagicWordArray with provided $names.
array | $names |
Definition at line 296 of file MagicWordFactory.php.
Referenced by MediaWiki\Parser\MagicWordFactory\getDoubleUnderscoreArray().