Current File : /home/jvzmxxx/wiki1/extensions/SocialProfile/UserBoard/EchoUserBoardMessagePresentationModel.php
<?php

/**
 * Formatter for user board message notifications ('social-msg-send')
 */
class EchoUserBoardMessagePresentationModel extends EchoEventPresentationModel {

	public function getIconType() {
		return 'emailuser'; // per discussion with Cody on 27 March 2016
	}

	public function getHeaderMessage() {
		if ( $this->isBundled() ) {
			return $this->msg(
				'notification-social-msg-send-bundle',
				$this->getBundleCount()
			);
		} else {
			return $this->msg(
				'notification-social-msg-send',
				$this->event->getAgent()->getName(),
				$this->language->truncate( $this->event->getExtraParam( 'message' ), 100 )
			);
		}
	}

	public function getBodyMessage() {
		return false;
	}

	public function getPrimaryLink() {
		return array(
			'url' => SpecialPage::getTitleFor( 'UserBoard' )->getLocalURL(),
			'label' => $this->msg( 'echo-learn-more' )->text()
		);
	}

}