From: Ævar Arnfjörð Bjarmason Date: Sun, 8 Jan 2006 15:13:37 +0000 (+0000) Subject: * Added a Parser::getTags() accessor to get a list of parser extension tags, X-Git-Tag: 1.6.0~684 X-Git-Url: http://git.cyclocoop.org/%7B%7B%20url_for%28%27admin_vote_add%27%29%20%7D%7D?a=commitdiff_plain;h=76e38c85949990bf575f24527ead5b4fb122bd9f;p=lhc%2Fweb%2Fwiklou.git * Added a Parser::getTags() accessor to get a list of parser extension tags, for Special:Version * Documentation --- diff --git a/includes/Parser.php b/includes/Parser.php index c64fbf3c20..8a301b41f5 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -3667,7 +3667,7 @@ class Parser $this->mOutput->mCacheTime = -1; } - /** + /**#@+ * Callback from the Sanitizer for expanding items found in HTML attribute * values, so they can be safely tested and escaped. * @param string $text @@ -3686,10 +3686,21 @@ class Parser $text = $this->unstripNoWiki( $text, $this->mStripState ); return $text; } + /**#@-*/ + /**#@+ + * Accessor/mutator + */ function Title( $x = NULL ) { return wfSetVar( $this->mTitle, $x ); } function Options( $x = NULL ) { return wfSetVar( $this->mOptions, $x ); } function OutputType( $x = NULL ) { return wfSetVar( $this->mOutputType, $x ); } + /**#@-*/ + + /**#@+ + * Accessor + */ + function getTags() { return array_keys( $this->mTagHooks ); } + /**#@-*/ } /**