2015-10-28 07:23:38 +00:00
|
|
|
<?php
|
|
|
|
class EchoThanksPresentationModel extends EchoEventPresentationModel {
|
|
|
|
public function canRender() {
|
|
|
|
return (bool)$this->event->getTitle();
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getIconType() {
|
|
|
|
return 'thanks';
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getHeaderMessage() {
|
|
|
|
$msg = parent::getHeaderMessage();
|
2016-01-21 16:12:23 +00:00
|
|
|
$msg->params( $this->getTruncatedTitleText( $this->event->getTitle(), true ) );
|
2015-11-13 00:03:55 +00:00
|
|
|
$msg->params( $this->getViewingUserForGender() );
|
2015-10-28 07:23:38 +00:00
|
|
|
return $msg;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getPrimaryLink() {
|
2016-04-22 20:13:56 +00:00
|
|
|
return [
|
|
|
|
'url' => $this->event->getTitle()->getLocalURL( [
|
2015-10-28 07:23:38 +00:00
|
|
|
'oldid' => 'prev',
|
|
|
|
'diff' => $this->event->getExtraParam( 'revid' )
|
2016-04-22 20:13:56 +00:00
|
|
|
] ),
|
2016-01-12 21:45:42 +00:00
|
|
|
'label' => $this->msg( 'notification-link-text-view-edit' )->text(),
|
2016-04-22 20:13:56 +00:00
|
|
|
];
|
2015-10-28 07:23:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public function getSecondaryLinks() {
|
2016-04-22 20:13:56 +00:00
|
|
|
return [ $this->getAgentLink() ];
|
2015-10-28 07:23:38 +00:00
|
|
|
}
|
|
|
|
}
|