}
}
+ /**
+ * @param $revision Revision
+ * @return string
+ */
protected function feedItemAuthor( $revision ) {
return $revision->getUserText();
}
+ /**
+ * @param $revision Revision
+ * @return string
+ */
protected function feedItemDesc( $revision ) {
if( $revision ) {
return '<p>' . htmlspecialchars( $revision->getUserText() ) . wfMsgForContent( 'colon-separator' ) .
/**
* Callback function to output a block
+ *
+ * @param $block Block
*/
function formatRow( $block ) {
global $wgUser, $wgLang, $wgBlockAllowsUTEdit;
parent::__construct();
}
+ /**
+ * @return Array
+ */
function getFieldNames() {
if ( !$this->mFieldNames ) {
global $wgMiserMode;
/**
* Fetch user page links and cache their existence
+ *
+ * @param $db DatabaseBase
*/
function preprocessResults( $db, $res ) {
$batch = new LinkBatch;
}
}
+ /**
+ * @param $skin Skin
+ * @param $result
+ * @return string
+ */
function formatResult( $skin, $result ) {
global $wgLang, $wgContLang;
* @ingroup SpecialPage
*/
class MovePageForm extends UnlistedSpecialPage {
+
+ /**
+ * @var Title
+ */
var $oldTitle, $newTitle; # Objects
var $reason; # Text input
var $moveTalk, $deleteAndMove, $moveSubpages, $fixRedirects, $leaveRedirect, $moveOverShared; # Checks
$section = '';
-
if( !is_null($sectionTitle) ) {
if( $sectionText == '' )
$sectionText = null;
* @ingroup SpecialPage
*/
class PageArchive {
+
+ /**
+ * @var Title
+ */
protected $title;
var $fileStatus;
return $restored;
}
+ /**
+ * @return Status
+ */
function getFileStatus() { return $this->fileStatus; }
}
);
}
+ /**
+ * @param $rev Revision
+ * @param $prefix
+ * @return string
+ */
private function diffHeader( $rev, $prefix ) {
global $wgUser, $wgLang;
$sk = $wgUser->getSkin();
/**
* Fetch revision text link if it's available to all users
+ *
+ * @param $rev Revision
+ * @param $sk Skin
* @return string
*/
function getPageLink( $rev, $titleObj, $ts, $sk ) {
/**
* Fetch image view link if it's available to all users
*
+ * @param $file File
+ * @param $sk Skin
* @return String: HTML fragment
*/
function getFileLink( $file, $titleObj, $ts, $key, $sk ) {
/**
* Fetch file's user id if it's available to this user
*
+ * @param $file File
+ * @param $sk Skin
* @return String: HTML fragment
*/
function getFileUser( $file, $sk ) {
/**
* Fetch file upload comment if it's available to this user
*
+ * @param $file File
+ * @param $sk Skin
* @return String: HTML fragment
*/
function getFileComment( $file, $sk ) {
public $mRequest; // The WebRequest or FauxRequest this form is supposed to handle
public $mSourceType;
public $mUpload;
+
+ /**
+ * @var LocalFile
+ */
public $mLocalFile;
public $mUploadClicked;
/**
* Attempt to automatically create a user on login. Only succeeds if there
* is an external authentication method which allows it.
+ *
+ * @param $user User
+ *
* @return integer Status code
*/
function attemptAutoCreate( $user ) {
/**
* @private
+ *
+ * @param $user User
+ *
+ * @return Boolean
*/
function showCreateOrLoginLink( &$user ) {
if( $this->mType == 'signup' ) {
- return( true );
+ return true;
} elseif( $user->isAllowed( 'createaccount' ) ) {
- return( true );
+ return true;
} else {
- return( false );
+ return false;
}
}