2015-11-25 04:07:54 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
class EchoForeignPresentationModel extends EchoEventPresentationModel {
|
|
|
|
public function getIconType() {
|
2016-01-15 22:19:01 +00:00
|
|
|
return 'global';
|
2015-11-25 04:07:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public function getPrimaryLink() {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
protected function getHeaderMessageKey() {
|
|
|
|
$data = $this->event->getExtra();
|
|
|
|
$section = $data['section'];
|
|
|
|
|
|
|
|
return "notification-header-{$this->type}-{$section}";
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getHeaderMessage() {
|
|
|
|
$msg = parent::getHeaderMessage();
|
|
|
|
|
|
|
|
$data = $this->event->getExtra();
|
|
|
|
$msg->params( reset( $data['wikis'] ) );
|
|
|
|
$msg->numParams( count( $data['wikis'] ) - 1 );
|
|
|
|
|
|
|
|
return $msg;
|
|
|
|
}
|
|
|
|
}
|