* Added a Parser::getTags() accessor to get a list of parser extension tags,

for Special:Version
* Documentation
This commit is contained in:
Ævar Arnfjörð Bjarmason 2006-01-08 15:13:37 +00:00
parent ac7ad4309f
commit 76e38c8594

View 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 ); }
/**#@-*/
}
/**