From 76e38c85949990bf575f24527ead5b4fb122bd9f Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Sun, 8 Jan 2006 15:13:37 +0000 Subject: [PATCH] * Added a Parser::getTags() accessor to get a list of parser extension tags, for Special:Version * Documentation --- includes/Parser.php | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) 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 ); } + /**#@-*/ } /** -- 2.20.1