MediaWiki REL1_33
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 $fileQuery = ArchivedFile::getQueryInfo();
44 return $db->select(
45 $fileQuery['tables'],
46 $fileQuery['fields'],
47 [
48 'fa_name' => $this->title->getDBkey(),
49 'fa_id' => $ids
50 ],
51 __METHOD__,
52 [ 'ORDER BY' => 'fa_id DESC' ],
53 $fileQuery['joins']
54 );
55 }
56
57 public function newItem( $row ) {
58 return new RevDelArchivedFileItem( $this, $row );
59 }
60}
and that you know you can do these things To protect your we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights These restrictions translate to certain responsibilities for you if you distribute copies of the or if you modify it For if you distribute copies of such a whether gratis or for a you must give the recipients all the rights that you have You must make sure that receive or can get the source code And you must show them these terms so they know their rights We protect your rights with two and(2) offer you this license which gives you legal permission to copy
static getQueryInfo()
Return the tables, fields, and join conditions to be selected to create a new archivedfile object.
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:38
title