MediaWiki  1.30.0
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 }
RevDelArchivedFileList\getType
getType()
Get the internal type name of this list.
Definition: RevDelArchivedFileList.php:28
RevDelArchivedFileList\doQuery
doQuery( $db)
Definition: RevDelArchivedFileList.php:40
use
as see the revision history and available at free of to any person obtaining a copy of this software and associated documentation to deal in the Software without including without limitation the rights to use
Definition: MIT-LICENSE.txt:10
RevDelArchivedFileList\getRelationType
static getRelationType()
Get the DB field name associated with the ID list.
Definition: RevDelArchivedFileList.php:32
php
injection txt This is an overview of how MediaWiki makes use of dependency injection The design described here grew from the discussion of RFC T384 The term dependency this means that anything an object needs to operate should be injected from the the object itself should only know narrow no concrete implementation of the logic it relies on The requirement to inject everything typically results in an architecture that based on two main types of and essentially stateless service objects that use other service objects to operate on the value objects As of the beginning MediaWiki is only starting to use the DI approach Much of the code still relies on global state or direct resulting in a highly cyclical dependency which acts as the top level factory for services in MediaWiki which can be used to gain access to default instances of various services MediaWikiServices however also allows new services to be defined and default services to be redefined Services are defined or redefined by providing a callback the instantiator that will return a new instance of the service When it will create an instance of MediaWikiServices and populate it with the services defined in the files listed by thereby bootstrapping the DI framework Per $wgServiceWiringFiles lists includes ServiceWiring php
Definition: injection.txt:35
Wikimedia\Rdbms\IDatabase
Basic database interface for live and lazy-loaded relation database handles.
Definition: IDatabase.php:40
title
to move a page</td >< td > &*You are moving the page across *A non empty talk page already exists under the new or *You uncheck the box below In those you will have to move or merge the page manually if desired</td >< td > be sure to &You are responsible for making sure that links continue to point where they are supposed to go Note that the page will &a page at the new title
Definition: All_system_messages.txt:2696
RevDelArchivedFileItem
Item class for a filearchive table row.
Definition: RevDelArchivedFileItem.php:25
RevDelArchivedFileList
List for filearchive table items.
Definition: RevDelArchivedFileList.php:27
RevisionListBase\$ids
array $ids
Definition: RevisionList.php:35
RevDelArchivedFileList\newItem
newItem( $row)
Create an item object from a DB result row.
Definition: RevDelArchivedFileList.php:55
RevDelFileList
List for oldimage table items.
Definition: RevDelFileList.php:27
ArchivedFile\selectFields
static selectFields()
Fields in the filearchive table.
Definition: ArchivedFile.php:222