Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7432980
RevisionList.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
RevisionList.php
View Options
<?php
/**
* Holders of revision list for a single page
*
* @license GPL-2.0-or-later
* @file
*/
namespace
MediaWiki\RevisionList
;
use
MediaWiki\MediaWikiServices
;
use
Wikimedia\Rdbms\SelectQueryBuilder
;
class
RevisionList
extends
RevisionListBase
{
/** @inheritDoc */
public
function
getType
()
{
return
'revision'
;
}
/** @inheritDoc */
public
function
doQuery
(
$db
)
{
$queryBuilder
=
MediaWikiServices
::
getInstance
()->
getRevisionStore
()->
newSelectQueryBuilder
(
$db
)
->
joinComment
()
->
joinPage
()
->
joinUser
()
->
where
(
[
'rev_page'
=>
$this
->
page
->
getId
()
]
)
->
orderBy
(
'rev_id'
,
SelectQueryBuilder
::
SORT_DESC
);
if
(
$this
->
ids
!==
null
)
{
$queryBuilder
->
andWhere
(
[
'rev_id'
=>
array_map
(
'intval'
,
$this
->
ids
)
]
);
}
return
$queryBuilder
->
caller
(
__METHOD__
)->
fetchResultSet
();
}
/** @inheritDoc */
public
function
newItem
(
$row
)
{
return
new
RevisionItem
(
$this
,
$row
);
}
}
/** @deprecated class alias since 1.43 */
class_alias
(
RevisionList
::
class
,
'RevisionList'
);
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Nov 22, 11:40 (3 h, 23 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
b0/a1/20f77c52bc941fc2ca14e573f79d
Default Alt Text
RevisionList.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment