MediaWiki  REL1_24
RevDelArchivedFileList.php
Go to the documentation of this file.
00001 <?php
00025 class RevDelArchivedFileList extends RevDelFileList {
00026     public function getType() {
00027         return 'filearchive';
00028     }
00029 
00030     public static function getRelationType() {
00031         return 'fa_id';
00032     }
00033 
00038     public function doQuery( $db ) {
00039         $ids = array_map( 'intval', $this->ids );
00040 
00041         return $db->select(
00042             'filearchive',
00043             ArchivedFile::selectFields(),
00044             array(
00045                 'fa_name' => $this->title->getDBkey(),
00046                 'fa_id' => $ids
00047             ),
00048             __METHOD__,
00049             array( 'ORDER BY' => 'fa_id DESC' )
00050         );
00051     }
00052 
00053     public function newItem( $row ) {
00054         return new RevDelArchivedFileItem( $this, $row );
00055     }
00056 }