35 return 'log_timestamp';
45 return 'log_user_text';
55 return LogEventsList::userCan(
56 $this->row, LogPage::DELETED_RESTRICTED, $this->list->getAuthority()
69 return $this->row->ts_tags;
77 $date = htmlspecialchars( $this->list->getLanguage()->userTimeAndDate(
78 $this->row->log_timestamp, $this->list->getUser() ) );
79 $title =
Title::makeTitle( $this->row->log_namespace, $this->row->log_title );
81 $formatter = $services->getLogFormatterFactory()->newFromRow( $this->row );
82 $formatter->setContext( $this->list->getContext() );
86 $loglink = $services->getLinkRenderer()->makeLink(
88 $this->list->msg(
'log' )->text(),
90 [
'page' => $title->getPrefixedText() ]
92 $loglink = $this->list->msg(
'parentheses' )->rawParams( $loglink )->escaped();
94 $action = $formatter->getActionText();
96 $dir = $this->list->getLanguage()->getDir();
97 $comment = Html::rawElement(
'bdi', [
'dir' => $dir ], $formatter->getComment() );
99 $content =
"$loglink $date $action $comment";
106 $this->list->getContext()
108 $content .=
" $tagSummary";
109 $attribs[
'class'] = $classes;
111 return Html::rawElement(
'li', $attribs, $content );
116class_alias( ChangeTagsLogItem::class,
'ChangeTagsLogItem' );
Class to simplify the use of log pages.
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,...