MediaWiki REL1_30
RevDelArchivedFileList.php
Go to the documentation of this file.
1<?php
23
28 public function getType() {
29 return 'filearchive';
30 }
31
32 public static function getRelationType() {
33 return 'fa_id';
34 }
35
40 public function doQuery( $db ) {
41 $ids = array_map( 'intval', $this->ids );
42
43 return $db->select(
44 'filearchive',
46 [
47 'fa_name' => $this->title->getDBkey(),
48 'fa_id' => $ids
49 ],
50 __METHOD__,
51 [ 'ORDER BY' => 'fa_id DESC' ]
52 );
53 }
54
55 public function newItem( $row ) {
56 return new RevDelArchivedFileItem( $this, $row );
57 }
58}
static selectFields()
Fields in the filearchive table.
Item class for a filearchive table row.
List for filearchive table items.
static getRelationType()
Get the DB field name associated with the ID list.
newItem( $row)
Create an item object from a DB result row.
getType()
Get the internal type name of this list.
List for oldimage table items.
Basic database interface for live and lazy-loaded relation database handles.
Definition IDatabase.php:40