* Added a Parser::getTags() accessor to get a list of parser extension tags,
authorÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Sun, 8 Jan 2006 15:13:37 +0000 (15:13 +0000)
committerÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Sun, 8 Jan 2006 15:13:37 +0000 (15:13 +0000)
  for Special:Version
* Documentation

includes/Parser.php

index c64fbf3..8a301b4 100644 (file)
@@ -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 ); }
+       /**#@-*/
 }
 
 /**