MediaWiki REL1_35
|
Expansions of core magic variables, used by the parser. More...
Static Public Member Functions | |
static | expand (Parser $parser, string $id, int $ts, NamespaceInfo $nsInfo, ServiceOptions $svcOptions, LoggerInterface $logger) |
Expand the magic variable given by $index. | |
Static Private Member Functions | |
static | getRevisionTimestampSubstring (Parser $parser, LoggerInterface $logger, int $start, int $len, int $mtts, string $variable) |
static | setOutputFlag (Parser $parser, LoggerInterface $logger, string $flag, string $reason) |
Helper method borrowed from Parser.php: sets the flag on the output but also does some debug logging. | |
Expansions of core magic variables, used by the parser.
Definition at line 31 of file CoreMagicVariables.php.
|
static |
Expand the magic variable given by $index.
Definition at line 48 of file CoreMagicVariables.php.
References $title, SiteStats\activeUsers(), SiteStats\articles(), CoreParserFunctions\cascadingsources(), SiteStats\edits(), MediaWiki\Config\ServiceOptions\get(), Parser\getContentLanguage(), Parser\getOptions(), Parser\getOutput(), Parser\getRevisionId(), Parser\getRevisionRecordObject(), Parser\getRevisionSize(), getRevisionTimestampSubstring(), Parser\getRevisionUser(), SpecialVersion\getVersion(), SiteStats\images(), NamespaceInfo\isSubject(), SiteStats\numberingroup(), SiteStats\pages(), setOutputFlag(), SiteStats\users(), wfEscapeWikiText(), wfTimestamp(), and wfUrlencode().
Referenced by Parser\expandMagicVariable().
|
staticprivate |
Parser | $parser | |
LoggerInterface | $logger | |
int | $start | |
int | $len | |
int | $mtts | Max time-till-save; sets vary-revision-timestamp if result changes by then |
string | $variable | Parser variable name |
Definition at line 325 of file CoreMagicVariables.php.
References Parser\getContentLanguage(), and wfTimestamp().
Referenced by expand().
|
staticprivate |
Helper method borrowed from Parser.php: sets the flag on the output but also does some debug logging.
Parser | $parser | |
LoggerInterface | $logger | |
string | $flag | |
string | $reason |
Definition at line 365 of file CoreMagicVariables.php.
Referenced by expand().