mediawiki-extensions-Echo/includes/formatters/EditThresholdPresentationModel.php
James D. Forrester 5031539327 Introduce congratulatory notifications for reaching edit thresholds
Bug: T124003
Change-Id: I21c6570e178fd03d969a516bdb31a6da9735d242
2016-02-12 14:11:21 -08:00

20 lines
503 B
PHP

<?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()
);
}
}