50 private $comment =
null;
59 private $revert =
null;
67 parent::__construct(
$entry );
68 $this->hookRunner =
new HookRunner( $hookContainer );
72 $this->comment ??= parent::getComment();
76 if ( $this->revert ===
null ) {
80 return $this->comment;
93 $this->plaintext ?
null : $this->context->getSkin(),
99 if ( !$this->irctext ) {
100 $sep = $this->
msg(
'word-separator' );
101 $sep = $this->plaintext ? $sep->text() : $sep->escaped();
102 $action = $performer . $sep . $action;
109 if ( $this->revert !==
null ) {
110 return $this->revert;
115 return $this->revert;
118 $title = $this->entry->getTarget();
119 $type = $this->entry->getType();
120 $subtype = $this->entry->getSubtype();
129 if ( $this->comment ===
null ) {
133 $params = $this->entry->getParameters();
135 $this->hookRunner->onLogLine(
136 $type, $subtype, $title, $params, $this->comment, $this->revert, $this->entry->getTimestamp() );
138 return $this->revert;
143class_alias( LegacyLogFormatter::class,
'LegacyLogFormatter' );
static actionText( $type, $action, $title=null, $skin=null, $params=[], $filterWikilinks=false)
Generate text for a log entry.
getType()
The main log type.
getParameters()
Get the extra parameters stored for this message.
getSubtype()
The log subtype.
getTarget()
Get the target page of this action.