MediaWiki fundraising/REL1_35
|
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. | |
Private Attributes | |
Language | $contLang |
HookRunner | $hookRunner |
array | $mCacheTTLs |
Array of caching hints for ParserCache [ string => int ]. | |
MagicWordArray | $mDoubleUnderscoreArray = null |
string[] | $mDoubleUnderscoreIDs |
array | $mObjects = [] |
[ string => MagicWord ] | |
string[] | $mSubstIDs |
string[] | $mVariableIDs |
bool | $mVariableIDsInitialised = false |
#- | |
A factory that stores information about MagicWords, and creates them on demand with caching.
Possible future improvements:
Definition at line 37 of file MagicWordFactory.php.
MagicWordFactory::__construct | ( | Language | $contLang, |
HookContainer | $hookContainer ) |
#-
Definition at line 211 of file MagicWordFactory.php.
MagicWordFactory::get | ( | $id | ) |
Factory: creates an object representing an ID.
string | $id | The internal name of the magic word |
Definition at line 227 of file MagicWordFactory.php.
Referenced by CoreParserFunctions\matchAgainstMagicword().
MagicWordFactory::getCacheTTL | ( | $id | ) |
Allow external reads of TTL array.
string | $id |
Definition at line 265 of file MagicWordFactory.php.
MagicWordFactory::getContentLanguage | ( | ) |
Definition at line 216 of file MagicWordFactory.php.
MagicWordFactory::getDoubleUnderscoreArray | ( | ) |
Get a MagicWordArray of double-underscore entities.
Definition at line 278 of file MagicWordFactory.php.
References newArray().
MagicWordFactory::getSubstIDs | ( | ) |
Get an array of parser substitution modifier IDs.
Definition at line 255 of file MagicWordFactory.php.
MagicWordFactory::getVariableIDs | ( | ) |
Get an array of parser variable IDs.
Definition at line 241 of file MagicWordFactory.php.
MagicWordFactory::newArray | ( | array | $names = [] | ) |
Get a new MagicWordArray with provided $names.
array | $names |
Definition at line 292 of file MagicWordFactory.php.
Referenced by getDoubleUnderscoreArray().
|
private |
Definition at line 200 of file MagicWordFactory.php.
|
private |
Definition at line 203 of file MagicWordFactory.php.
|
private |
Array of caching hints for ParserCache [ string => int ].
Definition at line 128 of file MagicWordFactory.php.
|
private |
Definition at line 197 of file MagicWordFactory.php.
|
private |
Definition at line 170 of file MagicWordFactory.php.
|
private |
[ string => MagicWord ]
Definition at line 194 of file MagicWordFactory.php.
|
private |
Definition at line 188 of file MagicWordFactory.php.
|
private |
Definition at line 44 of file MagicWordFactory.php.
|
private |
#-
Definition at line 41 of file MagicWordFactory.php.