MediaWiki
1.32.5
|
A factory that stores information about MagicWords, and creates them on demand with caching. More...
Public Member Functions | |
__construct (Language $contLang) | |
#- More... | |
get ( $id) | |
Factory: creates an object representing an ID. More... | |
getCacheTTL ( $id) | |
Allow external reads of TTL array. More... | |
getContentLanguage () | |
getDoubleUnderscoreArray () | |
Get a MagicWordArray of double-underscore entities. More... | |
getSubstIDs () | |
Get an array of parser substitution modifier IDs. More... | |
getVariableIDs () | |
Get an array of parser variable IDs. More... | |
newArray (array $names=[]) | |
Get a new MagicWordArray with provided $names. More... | |
Private Attributes | |
Language | $contLang |
array | $mCacheTTLs |
Array of caching hints for ParserCache [ string => int ]. More... | |
MagicWordArray | $mDoubleUnderscoreArray = null |
string[] | $mDoubleUnderscoreIDs |
array | $mObjects = [] |
[ string => MagicWord ] More... | |
string[] | $mSubstIDs |
string[] | $mVariableIDs |
bool | $mVariableIDsInitialised = false |
#- More... | |
A factory that stores information about MagicWords, and creates them on demand with caching.
Possible future improvements:
Definition at line 34 of file MagicWordFactory.php.
MagicWordFactory::__construct | ( | Language | $contLang | ) |
MagicWordFactory::get | ( | $id | ) |
Factory: creates an object representing an ID.
string | $id | The internal name of the magic word |
Definition at line 218 of file MagicWordFactory.php.
Referenced by CoreParserFunctions\matchAgainstMagicword().
MagicWordFactory::getCacheTTL | ( | $id | ) |
Allow external reads of TTL array.
string | $id |
Definition at line 255 of file MagicWordFactory.php.
MagicWordFactory::getContentLanguage | ( | ) |
Definition at line 207 of file MagicWordFactory.php.
References $contLang.
MagicWordFactory::getDoubleUnderscoreArray | ( | ) |
Get a MagicWordArray of double-underscore entities.
Definition at line 268 of file MagicWordFactory.php.
References $mDoubleUnderscoreArray, newArray(), and Hooks\run().
MagicWordFactory::getSubstIDs | ( | ) |
Get an array of parser substitution modifier IDs.
Definition at line 245 of file MagicWordFactory.php.
References $mSubstIDs.
MagicWordFactory::getVariableIDs | ( | ) |
Get an array of parser variable IDs.
Definition at line 232 of file MagicWordFactory.php.
References $mVariableIDs, and Hooks\run().
MagicWordFactory::newArray | ( | array | $names = [] | ) |
Get a new MagicWordArray with provided $names.
array | $names |
Definition at line 282 of file MagicWordFactory.php.
Referenced by getDoubleUnderscoreArray().
|
private |
Definition at line 196 of file MagicWordFactory.php.
Referenced by __construct(), and getContentLanguage().
|
private |
Array of caching hints for ParserCache [ string => int ].
Definition at line 125 of file MagicWordFactory.php.
|
private |
Definition at line 193 of file MagicWordFactory.php.
Referenced by getDoubleUnderscoreArray().
|
private |
Definition at line 167 of file MagicWordFactory.php.
|
private |
[ string => MagicWord ]
Definition at line 190 of file MagicWordFactory.php.
|
private |
Definition at line 184 of file MagicWordFactory.php.
Referenced by getSubstIDs().
|
private |
Definition at line 41 of file MagicWordFactory.php.
Referenced by getVariableIDs().
|
private |
#-
Definition at line 38 of file MagicWordFactory.php.