30 $revRecord = MediaWikiServices::getInstance()
31 ->getRevisionFactory()
32 ->newRevisionFromArchiveRow(
34 RevisionFactory::READ_NORMAL,
43 return 'ar_timestamp';
47 return 'ar_timestamp';
55 return 'ar_user_text';
63 # Convert DB timestamp to MW timestamp
64 return $this->revisionRecord->getTimestamp();
69 $dbw->newUpdateQueryBuilder()
71 ->set( [
'ar_deleted' => $bits ] )
73 'ar_namespace' => $this->list->getPage()->getNamespace(),
74 'ar_title' => $this->list->getPage()->getDBkey(),
76 'ar_timestamp' => $this->row->ar_timestamp,
77 'ar_rev_id' => $this->row->ar_rev_id,
78 'ar_deleted' => $this->getBits()
80 ->caller( __METHOD__ )->execute();
82 return (
bool)$dbw->affectedRows();
86 $date = $this->list->getLanguage()->userTimeAndDate(
87 $this->revisionRecord->getTimestamp(), $this->list->getUser() );
90 return htmlspecialchars( $date );
98 'target' => $this->list->getPageName(),
99 'timestamp' => $this->revisionRecord->getTimestamp()
106 return $this->list->msg(
'diff' )->escaped();
111 $this->list->msg(
'diff' )->text(),
114 'target' => $this->list->getPageName(),
116 'timestamp' => $this->revisionRecord->getTimestamp()
wfGetDB( $db, $groups=[], $wiki=false)
Get a Database object.
Item class for a archive table row.
getAuthorNameField()
Get the DB field name storing user names.
getRevisionLink()
Get the HTML link to the revision text.
getId()
Get the ID, as it would appear in the ids URL parameter.
getIdField()
Get the DB field name associated with the ID list.
getDiffLink()
Get the HTML link to the diff.
setBits( $bits)
Set the visibility of the item.
getAuthorIdField()
Get the DB field name storing user ids.
getTimestampField()
Get the DB field name storing timestamps.
static initRevisionRecord( $list, $row)
Create RevisionRecord object from $row sourced from $list.
getAuthorActorField()
Get the DB field name storing actor ids.
canViewContent()
Returns true if the current user can view the item text/file.
stdClass $row
The database result row.
RevisionListBase $list
The parent.
getLinkRenderer()
Returns an instance of LinkRenderer.
static getTitleFor( $name, $subpage=false, $fragment='')
Get a localised Title object for a specified special page name If you don't need a full Title object,...