MediaWiki
REL1_35
ChangeTagsList.php
Go to the documentation of this file.
1
<?php
30
abstract
class
ChangeTagsList
extends
RevisionListBase
{
31
public
function
__construct
(
IContextSource
$context
,
Title
$title
, array
$ids
) {
32
parent::__construct(
$context
,
$title
);
33
$this->ids =
$ids
;
34
}
35
46
public
static
function
factory
( $typeName,
IContextSource
$context
,
47
Title
$title
, array
$ids
48
) {
49
switch
( $typeName ) {
50
case
'revision'
:
51
$className = ChangeTagsRevisionList::class;
52
break
;
53
case
'logentry'
:
54
$className = ChangeTagsLogList::class;
55
break
;
56
default
:
57
throw
new
Exception(
"Class $typeName requested, but does not exist"
);
58
}
59
60
return
new
$className(
$context
,
$title
,
$ids
);
61
}
62
66
public
function
reloadFromMaster
() {
67
$dbw =
wfGetDB
(
DB_MASTER
);
68
$this->res = $this->
doQuery
( $dbw );
69
}
70
81
abstract
public
function
updateChangeTagsOnAll
( $tagsToAdd, $tagsToRemove, $params,
82
$reason, $user );
83
}
wfGetDB
wfGetDB( $db, $groups=[], $wiki=false)
Get a Database object.
Definition
GlobalFunctions.php:2462
ChangeTagsList
Definition
ChangeTagsList.php:30
ChangeTagsList\reloadFromMaster
reloadFromMaster()
Reload the list data from the master DB.
Definition
ChangeTagsList.php:66
ChangeTagsList\factory
static factory( $typeName, IContextSource $context, Title $title, array $ids)
Creates a ChangeTags*List of the requested type.
Definition
ChangeTagsList.php:46
ChangeTagsList\updateChangeTagsOnAll
updateChangeTagsOnAll( $tagsToAdd, $tagsToRemove, $params, $reason, $user)
Add/remove change tags from all the items in the list.
ChangeTagsList\__construct
__construct(IContextSource $context, Title $title, array $ids)
Definition
ChangeTagsList.php:31
ContextSource\$context
IContextSource $context
Definition
ContextSource.php:34
RevisionListBase
List for revision table items for a single page.
Definition
RevisionListBase.php:29
RevisionListBase\$ids
array $ids
Definition
RevisionListBase.php:34
RevisionListBase\$title
Title $title
Definition
RevisionListBase.php:31
RevisionListBase\doQuery
doQuery( $db)
Do the DB query to iterate through the objects.
Title
Represents a title within MediaWiki.
Definition
Title.php:42
IContextSource
Interface for objects which can provide a MediaWiki context on request.
Definition
IContextSource.php:55
DB_MASTER
const DB_MASTER
Definition
defines.php:29
includes
changetags
ChangeTagsList.php
Generated on Sat Apr 6 2024 00:07:00 for MediaWiki by
1.9.8