/**
* Get a list of users who have edited this article, not including the user who made
* the most recent revision, which you can get from $article->getUser() if you want it
- * @return UserArray
+ * @return UserArrayFromResult
*/
public function getContributors() {
# @todo FIXME: This is expensive; cache this info somewhere.
* @ingroup Feed
*/
class FeedItem {
- /**#@+
- * @var string
- * @private
+ /**
+ * @var Title
*/
var $Title = 'Wiki';
var $Description = '';
var $Author = '';
var $UniqueId = '';
var $RSSIsPermalink;
- /**#@-*/
/**
* Constructor
*
- * @param $Title String: Item's title
+ * @param $Title String|Title Item's title
* @param $Description String
* @param $Url String: URL uniquely designating the item.
* @param $Date String: Item's date
}
}
+ /**
+ * @param $name string
+ * @param $title Title
+ */
protected function page( $name, $title ) {
$this->url( $name, $title->getFullUrl() );
}
/**
* Result object for the query. Warning: seek before use.
+ *
+ * @var ResultWrapper
*/
public $mResult;
# Sift for real versus user names
foreach ( $contributors as $user ) {
- $cnt--;
+ $cnt--;
if ( $user->isLoggedIn() ) {
$link = self::link( $user );
if ( !in_array( 'realname', $wgHiddenPrefs ) && $user->getRealName() ) {
/**
* Check if up to date cache file exists
* @param $timestamp string
+ *
+ * @return bool
*/
public function isFileCacheGood( $timestamp = '' ) {
global $wgCacheEpoch;
return self::METADATA_GOOD;
}
+ /**
+ * @param $image File
+ * @return array|bool
+ */
function formatMetadata( $image ) {
$metadata = $image->getMetadata();
if ( !$metadata ||
return $this->formatMetadataHelper( $exif );
}
- function getMetadataType( $image ) {
- return 'exif';
- }
+ function getMetadataType( $image ) {
+ return 'exif';
+ }
}
}
}
+ /**
+ * @param $title Title
+ */
function showForm( $title ) {
global $wgOut, $wgScript;
return "($download) $plink . . $dimensions . . $bytes . . $user . . $time";
}
+ /**
+ * @param $type string
+ * @return bool
+ */
protected static function isValidType( $type ) {
// From maintenance/tables.sql => img_major_mime
$types = array(
*/
class SpecialMergeHistory extends SpecialPage {
var $mAction, $mTarget, $mDest, $mTimestamp, $mTargetID, $mDestID, $mComment;
+
+ /**
+ * @var Title
+ */
var $mTargetObj, $mDestObj;
public function __construct() {
}
function doTagRow( $tag, $hitcount ) {
- static $sk=null, $doneTags=array();
- if (!$sk) {
+ static $sk = null, $doneTags = array();
+ if ( !$sk ) {
global $wgUser;
$sk = $wgUser->getSkin();
}