Location: PHPKode > projects > Anahita Social Engine > site/views/notifications/html.php
<?php
/**
 * @category	Anahita Social Engine™
 * @copyright	Copyright (C) 2008 - 2010 rmdStudio Inc. and Peerglobe Technology Inc. All rights reserved.
 * @license		GNU GPLv2 <http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>
 * @link     	http://www.anahitapolis.com
 */

class ComSocialengineViewNotificationsHtml extends ComSocialengineViewHtml
{
	public function __construct(array $options=array())
	{
		parent::__construct($options);
		
		$this->assign('owner', $this->getOwner());
		$this->offset 	= $this->getOffset();
		$this->limit	= $this->getLimit();
	}
	
	protected function prepareDefaultLayout()
	{
		$title = ($this->getMenuTitle()) ? $this->getMenuTitle() : JText::_('AN-SE-NOTIFICATIONS-HEADER');
		
		$header = KFactory::get('lib.anahita.uikit.header.page')->setTitle($title);
		
		$this->assign('header', $header);
	}
	
	protected function prepareListLayout()
	{
		foreach($this->notifications as $notitication) {		
			$notitication->mixin( KFactory::tmp('lib.anahita.uikit.action.mixin', array('mixer'=>$notitication)) );
			$notitication->addAction( 
						AnUikitHtmlTag::link( JText::_('AN-SE-ACTION-DELETE'), 
								'index.php?option=com_socialengine&view=notification&action=delete&id='.$notitication->id)
								->setTitle(JText::_('AN-SE-ACTION-DELETE'))
								->setClass('an-se-remove-handle an-se-confirm-remove')
								->setRemoveOptions(array('title'=> JText::_('AN-SE-PROMPT-CONFIRMATION-DELETE-ITEM'), 'point'=>'left'))			
			
			 );
		}
	}
	
//end class
}
Return current item: Anahita Social Engine