var $authorNameField = 'oi_user_text';
var $storeBatch, $deleteBatch, $cleanupBatch;
+ /**
+ * @param $db DatabaseBase
+ * @return mixed
+ */
public function doQuery( $db ) {
$archiveNames = array();
foreach( $this->ids as $timestamp ) {
var $dateField = 'fa_timestamp';
var $authorIdField = 'fa_user';
var $authorNameField = 'fa_user_text';
-
+
+ /**
+ * @param $db DatabaseBase
+ * @return mixed
+ */
public function doQuery( $db ) {
$ids = array_map( 'intval', $this->ids );
return $db->select( 'filearchive', '*',
var $authorIdField = 'log_user';
var $authorNameField = 'log_user_text';
+ /**
+ * @param $db DatabaseBase
+ * @return mixed
+ */
public function doQuery( $db ) {
$ids = array_map( 'intval', $this->ids );
return $db->select( 'logging', '*',
return null;
}
}
-
- // Checks if a revision still exists in the revision table.
- // If it doesn't, returns the corresponding ar_timestamp field
- // so that this key can be used instead.
+
+ /**
+ * Checks if a revision still exists in the revision table.
+ * If it doesn't, returns the corresponding ar_timestamp field
+ * so that this key can be used instead.
+ *
+ * @static
+ * @param $title Title
+ * @param $revid
+ * @return bool|mixed
+ */
public static function checkRevisionExistence( $title, $revid ) {
$dbr = wfGetDB( DB_SLAVE );
$exists = $dbr->selectField( 'revision', '1',
return $timestamp;
}
-
- // Creates utility links for log entries.
+
+ /**
+ * Creates utility links for log entries.
+ *
+ * @static
+ * @param $title Title
+ * @param $paramArray Array
+ * @param $skin Skin
+ * @param $messages
+ * @return String
+ */
public static function getLogLinks( $title, $paramArray, $skin, $messages ) {
global $wgLang;
}
// View/modify link...
- if ( count($undeletedRevisions) ) {
+ if ( count( $undeletedRevisions ) ) {
// FIXME THIS IS A HORRIBLE HORRIBLE HACK AND SHOULD DIE
// It's not possible to pass a list of both deleted and
// undeleted revisions to SpecialRevisionDelete, so we're
array(
'target' => $title->getPrefixedText(),
'type' => $originalKey,
- 'ids' => implode(',', $undeletedRevisions),
+ 'ids' => implode( ',', $undeletedRevisions ),
),
array( 'known', 'noclasses' )
);