http://www.mediawiki.org/wiki/Special:Code/MediaWiki/82893
Revision: 82893
Author: reedy
Date: 2011-02-27 15:23:41 +0000 (Sun, 27 Feb 2011)
Log Message:
-----------
More bits of documentation
Modified Paths:
--------------
trunk/phase3/includes/Title.php
trunk/phase3/includes/parser/Parser.php
trunk/phase3/includes/parser/ParserOptions.php
Modified: trunk/phase3/includes/Title.php
===================================================================
--- trunk/phase3/includes/Title.php 2011-02-27 14:54:52 UTC (rev 82892)
+++ trunk/phase3/includes/Title.php 2011-02-27 15:23:41 UTC (rev 82893)
@@ -3704,6 +3704,9 @@
/**
* Callback for usort() to do title sorts by (namespace, title)
*
+ * @param $a Title
+ * @param $b Title
+ *
* @return Integer: result of string comparison, or namespace comparison
*/
public static function compare( $a, $b ) {
Modified: trunk/phase3/includes/parser/Parser.php
===================================================================
--- trunk/phase3/includes/parser/Parser.php 2011-02-27 14:54:52 UTC (rev
82892)
+++ trunk/phase3/includes/parser/Parser.php 2011-02-27 15:23:41 UTC (rev
82893)
@@ -112,7 +112,6 @@
var $mVariables, $mSubstWords; # Initialised by initialiseVariables()
var $mConf, $mPreprocessor, $mExtLinkBracketedRegex, $mUrlProtocols; #
Initialised in constructor
-
# Cleared with clearState():
var $mOutput, $mAutonumber, $mDTopen;
@@ -127,6 +126,10 @@
var $mTplExpandCache; # empty-frame expansion cache
var $mTplRedirCache, $mTplDomCache, $mHeadings, $mDoubleUnderscores;
var $mExpensiveFunctionCount; # number of expensive parser function
calls
+
+ /**
+ * @var User
+ */
var $mUser; # User object; only used when doing pre-save transform
# Temporary
@@ -136,6 +139,10 @@
* @var ParserOptions
*/
var $mOptions;
+
+ /**
+ * @var Title
+ */
var $mTitle; # Title context, used for self-link rendering and
similar things
var $mOutputType; # Output type, one of the OT_xxx constants
var $ot; # Shortcut alias, see setOutputType()
Modified: trunk/phase3/includes/parser/ParserOptions.php
===================================================================
--- trunk/phase3/includes/parser/ParserOptions.php 2011-02-27 14:54:52 UTC
(rev 82892)
+++ trunk/phase3/includes/parser/ParserOptions.php 2011-02-27 15:23:41 UTC
(rev 82893)
@@ -91,6 +91,10 @@
function getUser() { return $this->mUser; }
function getPreSaveTransform() { return
$this->mPreSaveTransform; }
+ /**
+ * @param $title Title
+ * @return Skin
+ */
function getSkin( $title = null ) {
if ( !isset( $this->mSkin ) ) {
$this->mSkin = $this->mUser->getSkin( $title );
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs