MediaWiki  REL1_24
RevDelLogList Class Reference

List for logging table items. More...

Inheritance diagram for RevDelLogList:
Collaboration diagram for RevDelLogList:

List of all members.

Public Member Functions

 doQuery ($db)
 getLogAction ()
 Get the log action for this list type.
 getLogParams ($params)
 Get log parameter array.
 getSuppressBit ()
 Get the integer value of the flag used for suppression.
 getType ()
 Get the internal type name of this list.
 newItem ($row)
 Create an item object from a DB result row.

Static Public Member Functions

static getRelationType ()
 Get the DB field name associated with the ID list.
static getRestriction ()
 Get the user right required for this list type Override this function.
static getRevdelConstant ()
 Get the revision deletion constant for this list type Override this function.
static suggestTarget ($target, array $ids)
 Suggest a target for the revision deletion Optionally override this function.

Detailed Description

List for logging table items.

Definition at line 25 of file RevDelLogList.php.


Member Function Documentation

Parameters:
DatabaseBase$db
Returns:
mixed

Reimplemented from RevisionListBase.

Definition at line 61 of file RevDelLogList.php.

References RevisionListBase\$ids, and array().

Get the log action for this list type.

Returns:
string

Reimplemented from RevDelList.

Definition at line 92 of file RevDelLogList.php.

Get log parameter array.

Parameters:
array$paramsAssociative array of log parameters, same as updateLog()
Returns:
array

Reimplemented from RevDelList.

Definition at line 96 of file RevDelLogList.php.

References $params, and array().

static RevDelLogList::getRelationType ( ) [static]

Get the DB field name associated with the ID list.

This used to populate the log_search table for finding log entries. Override this function.

Returns:
string|null

Reimplemented from RevDelList.

Definition at line 30 of file RevDelLogList.php.

static RevDelLogList::getRestriction ( ) [static]

Get the user right required for this list type Override this function.

Since:
1.22
Returns:
string|null

Reimplemented from RevDelList.

Definition at line 34 of file RevDelLogList.php.

static RevDelLogList::getRevdelConstant ( ) [static]

Get the revision deletion constant for this list type Override this function.

Since:
1.22
Returns:
int|null

Reimplemented from RevDelList.

Definition at line 38 of file RevDelLogList.php.

References LogPage\DELETED_ACTION.

Get the integer value of the flag used for suppression.

Reimplemented from RevDelList.

Definition at line 88 of file RevDelLogList.php.

References Revision\DELETED_RESTRICTED.

Get the internal type name of this list.

Equal to the table name. Override this function.

Returns:
null

Reimplemented from RevisionListBase.

Definition at line 26 of file RevDelLogList.php.

Create an item object from a DB result row.

Parameters:
object$row

Reimplemented from RevisionListBase.

Definition at line 84 of file RevDelLogList.php.

static RevDelLogList::suggestTarget ( target,
array ids 
) [static]

Suggest a target for the revision deletion Optionally override this function.

Since:
1.22
Parameters:
Title | null$targetUser-supplied target
array$ids
Returns:
Title|null

Reimplemented from RevDelList.

Definition at line 42 of file RevDelLogList.php.

References $result, array(), SpecialPage\getTitleFor(), and wfGetDB().


The documentation for this class was generated from the following file: