2015-11-17 17:44:45 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
class EchoEmailUserPresentationModel extends EchoEventPresentationModel {
|
|
|
|
|
|
|
|
public function getIconType() {
|
2016-01-13 04:24:11 +00:00
|
|
|
return 'emailuser';
|
2015-11-17 17:44:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public function getPrimaryLink() {
|
|
|
|
return false;
|
|
|
|
}
|
2015-12-22 15:57:13 +00:00
|
|
|
|
|
|
|
public function getSecondaryLinks() {
|
|
|
|
return array( $this->getAgentLink() );
|
|
|
|
}
|
2016-02-10 17:34:26 +00:00
|
|
|
|
|
|
|
public function getBodyMessage() {
|
2016-02-10 22:09:41 +00:00
|
|
|
$preview = $this->event->getExtraParam( 'preview' );
|
|
|
|
return $preview ? $this->msg( 'notification-body-emailuser' )->plaintextParams( $preview ) : false;
|
2016-02-10 17:34:26 +00:00
|
|
|
}
|
2015-11-17 17:44:45 +00:00
|
|
|
}
|