17use Wikimedia\Timestamp\TimestampFormat as TS;
33 ->newFile(
$row->fa_name );
38 return ArchivedFile::newFromRow(
$row );
48 return 'fa_timestamp';
58 return 'fa_user_text';
68 return $this->row->fa_id;
73 $dbw = $this->dbProvider->getPrimaryDatabase();
74 $dbw->newUpdateQueryBuilder()
75 ->update(
'filearchive' )
76 ->set( [
'fa_deleted' => $bits ] )
78 'fa_id' => $this->row->fa_id,
79 'fa_deleted' => $this->getBits(),
81 ->caller( __METHOD__ )->execute();
83 return (
bool)$dbw->affectedRows();
88 $date = $this->list->getLanguage()->userTimeAndDate(
89 $this->file->getTimestamp(), $this->list->getUser() );
93 $link = htmlspecialchars( $date );
96 $key = $this->file->getKey();
99 'target' => $this->list->getPageName(),
101 'token' => $this->list->getUser()->getEditToken( $key )
106 $link =
'<span class="history-deleted">' . $link .
'</span>';
115 $user = $this->list->getUser();
117 'title' => $this->list->getPageName(),
123 'commenthidden' => (bool)
$file->
isDeleted( File::DELETED_COMMENT ),
124 'contenthidden' => (bool)$this->
isDeleted(),
130 'target' => $this->list->getPageName(),
131 'file' =>
$file->getKey(),
132 'token' => $user->getEditToken(
$file->getKey() )
140 'userid' => $uploader->getId(),
141 'user' => $uploader->getName(),
145 if ( $comment !==
'' ) {
147 'comment' => $comment,
156 return $this->lockFile->acquireFileLock();
161 return $this->lockFile->releaseFileLock();
166class_alias( RevDelArchivedFileItem::class,
'RevDelArchivedFileItem' );
wfTimestamp( $outputtype=TS::UNIX, $ts=0)
Get a timestamp string in one of various formats.
Parent class for all special pages.
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,...