mediawiki-extensions-Echo/includes/formatters/EditThresholdPresentationModel.php

24 lines
582 B
PHP
Raw Normal View History

<?php
class EchoEditThresholdPresentationModel extends EchoEventPresentationModel {
public function getIconType() {
return 'edit';
}
public function getHeaderMessageKey() {
return 'notification-header-thank-you-' . $this->event->getExtraParam( 'editCount' ) . '-edit';
}
public function getPrimaryLink() {
return array(
'url' => $this->event->getTitle()->getLocalURL(),
'label' => $this->msg( 'notification-link-thank-you-edit', $this->getViewingUserForGender() )->text()
);
}
public function canRender() {
return $this->event->getTitle() !== null;
}
}