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() {
|
2016-09-08 22:14:26 +00:00
|
|
|
if ( !$this->event->getTitle() ) {
|
|
|
|
return false;
|
|
|
|
}
|
2016-01-18 23:55:47 +00:00
|
|
|
return array(
|
|
|
|
'url' => $this->event->getTitle()->getLocalURL(),
|
|
|
|
'label' => $this->msg( 'notification-link-thank-you-edit', $this->getViewingUserForGender() )->text()
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|