Go to the documentation of this file.
65 $row = $this->res->current();
77 public function reset() {
97 public function next() {
107 public function length() {
111 return $this->res->numRows();
119 abstract public function doQuery( $db );
125 abstract public function newItem( $row );
187 public function getId() {
189 return $this->row->$field;
198 $this->
list->getUser() );
207 $this->
list->getUser() );
225 return intval( $this->row->$field );
234 return strval( $this->row->$field );
240 abstract public function canView();
251 abstract public function getHTML();
263 public function doQuery( $db ) {
264 $conds =
array(
'rev_page' => $this->
title->getArticleID() );
265 if ( $this->ids !==
null ) {
266 $conds[
'rev_id'] = array_map(
'intval', $this->ids );
269 array(
'revision',
'page',
'user' ),
273 array(
'ORDER BY' =>
'rev_id DESC' ),
280 public function newItem( $row ) {
294 $this->context =
$list->getContext();
302 return 'rev_timestamp';
331 $date = $this->
list->getLanguage()->timeanddate( $this->revision->getTimestamp(),
true );
340 'oldid' => $this->revision->getId(),
353 return $this->context->msg(
'diff' )->escaped();
357 $this->context->msg(
'diff' )->escaped(),
360 'diff' => $this->revision->getId(),
373 $difflink = $this->context->msg(
'parentheses' )
379 $revlink =
"<span class=\"history-deleted\">$revlink</span>";
381 return "<li>$difflink $revlink $userlink $comment</li>";
getHTML()
Get the HTML of the list item.
skin txt MediaWiki includes four core it has been set as the default in MediaWiki since the replacing Monobook it had been been the default skin since before being replaced by Vector largely rewritten in while keeping its appearance Several legacy skins were removed in the as the burden of supporting them became too heavy to bear Those in etc for skin dependent CSS etc for skin dependent JavaScript These can also be customised on a per user by etc This feature has led to a wide variety of user styles becoming that gallery is a good place to ending in php
getType()
Get the internal type name of this list.
static pageJoinCond()
Return the value of a select() page conds array for the page table.
filterByIds(array $ids)
Select items only where the ID is any of the specified values.
static revUserLink( $rev, $isPublic=false)
Generate a user link if the current user is allowed to view it.
List for revision table items for a single page.
Abstract base class for revision items.
& wfGetDB( $db, $groups=array(), $wiki=false)
Get a Database object.
canView()
Returns true if the current user can view the item.
$list
The parent RevisionListBase.
wfTimestamp( $outputtype=TS_UNIX, $ts=0)
Get a timestamp string in one of various formats.
__construct( $list, $row)
length()
Get the number of items in the list.
getAuthorId()
Get the author user ID.
__construct( $list, $row)
canView()
Returns true if the current user can view the item.
null means default in associative array with keys and values unescaped Should be merged with default with a value of false meaning to suppress the attribute in associative array with keys and values unescaped noclasses just before the function returns a value If you return true
getAuthorIdField()
Get the DB field name storing user ids.
getAuthorNameField()
Get the DB field name storing user names.
formatDate()
Get the date, formatted in user's language.
static link( $target, $html=null, $customAttribs=array(), $query=array(), $options=array())
This function returns an HTML link to the given target.
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
getTimestampField()
Get the DB field name storing timestamps.
canViewContent()
Returns true if the current user can view the item text/file.
next()
Move the iteration pointer to the next list item, and return it.
doQuery( $db)
Do the DB query to iterate through the objects.
The simplest way of implementing IContextSource is to hold a RequestContext as a member variable and ...
formatTime()
Get the time, formatted in user's language.
current()
Get the current list item, or false if we are at the end.
getAuthorNameField()
Get the DB field name storing user names.
getIdField()
Get the DB field name associated with the ID list.
newItem( $row)
Create an item object from a DB result row.
the array() calling protocol came about after MediaWiki 1.4rc1.
List of Api Query prop modules.
getAuthorName()
Get the author user name.
setContext(IContextSource $context)
Set the IContextSource object.
deferred txt A few of the database updates required by various functions here can be deferred until after the result page is displayed to the user For updating the view updating the linked to tables after a etc PHP does not yet have any way to tell the server to actually return and disconnect while still running these but it might have such a feature in the future We handle these by creating a deferred update object and putting those objects on a global list
newItem( $row)
Create an item object from a DB result row.
const TS_MW
MediaWiki concatenated string timestamp (YYYYMMDDHHMMSS)
static revComment(Revision $rev, $local=false, $isPublic=false)
Wrap and format the given revision's comment block, if the current user is allowed to view it.
getId()
Get the ID, as it would appear in the ids URL parameter.
canViewContent()
Returns true if the current user can view the item text/file.
Item class for a live revision table row.
getTimestamp()
Get the timestamp in MW 14-char form.
Interface for objects which can provide a context on request.
getRevisionLink()
Get the HTML link to the revision text.
Represents a title within MediaWiki.
getDiffLink()
Get the HTML link to the diff.
static userJoinCond()
Return the value of a select() JOIN conds array for the user table.
getTimestampField()
Get the DB field name storing timestamps.
getType()
Get the internal type name of this list.
initCurrent()
Initialise the current iteration pointer.
static selectUserFields()
Return the list of user fields that should be selected from user table.
getIdField()
Get the DB field name associated with the ID list.
__construct(IContextSource $context, Title $title)
Construct a revision list for a given title.
static selectFields()
Return the list of revision fields that should be selected to create a new revision.
getHTML()
Get the HTML of the list item.
getAuthorIdField()
Get the DB field name storing user ids.