Go to the documentation of this file.
35 $this->mConds = $conds;
37 $this->articleID =
$source->getArticleID();
40 $maxtimestamp =
$dbr->selectField(
46 $this->maxTimestamp = $maxtimestamp;
52 # Do a link batch query
53 $this->mResult->seek( 0 );
55 # Give some pointers to make (last) links
56 $this->mForm->prevId = [];
58 foreach ( $this->mResult
as $row ) {
62 if ( isset( $rev_id ) ) {
63 if ( $rev_id > $row->rev_id ) {
64 $this->mForm->prevId[$rev_id] = $row->rev_id;
65 } elseif ( $rev_id < $row->rev_id ) {
66 $this->mForm->prevId[$row->rev_id] = $rev_id;
70 $rev_id = $row->rev_id;
74 $this->mResult->seek( 0 );
80 return $this->mForm->formatRevisionRow( $row );
85 $conds[
'rev_page'] = $this->articleID;
86 $conds[] =
"rev_timestamp < " . $this->mDb->addQuotes( $this->maxTimestamp );
89 'tables' => [
'revision',
'page',
'user' ],
99 return 'rev_timestamp';
static pageJoinCond()
Return the value of a select() page conds array for the page table.
Class representing a list of titles The execute() method checks them all for existence and adds them ...
getArticleID( $flags=0)
Get the article ID for this Title from the link cache, adding it if necessary.
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
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
wfGetDB( $db, $groups=[], $wiki=false)
Get a Database object.
getContext()
Gets the context this SpecialPage is executed in.
static makeTitleSafe( $ns, $title, $fragment='', $interwiki='')
Create a new Title from a namespace index and a DB key.
Represents a title within MediaWiki.
This document is intended to provide useful advice for parties seeking to redistribute MediaWiki to end users It s targeted particularly at maintainers for Linux since it s been observed that distribution packages of MediaWiki often break We ve consistently had to recommend that users seeking support use official tarballs instead of their distribution s and this often solves whatever problem the user is having It would be nice if this could such as
static userJoinCond()
Return the value of a select() JOIN conds array for the user table.
static selectUserFields()
Return the list of user fields that should be selected from user table.
static selectFields()
Return the list of revision fields that should be selected to create a new revision.
Special page allowing users with the appropriate permissions to merge article histories,...
the array() calling protocol came about after MediaWiki 1.4rc1.