2016-01-18 23:55:47 +00:00
|
|
|
<?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()
|
|
|
|
);
|
|
|
|
}
|
2016-03-11 16:58:21 +00:00
|
|
|
|
|
|
|
public function canRender() {
|
|
|
|
return $this->event->getTitle() !== null;
|
|
|
|
}
|
2016-01-18 23:55:47 +00:00
|
|
|
}
|