Location: PHPKode > projects > Anahita Social Engine > site/views/requests/html.php
<?php
/**
 * @category	Anahita Social Engine™
 * @copyright	Copyright (C) 2007 - 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 ComSocialengineViewRequestsHtml extends ComSocialengineViewHtml
{
	
	/**
	 * Method to prepare the default layout 
	 * @return null
	 */
	protected function prepareDefaultLayout()
	{
		$title = ($this->getMenuTitle()) ? $this->getMenuTitle() : JText::_('AN-SE-REQUESTS-HEADER-TITLE');
		
		$header = KFactory::get('lib.anahita.uikit.header.page')->setTitle($title);
		
		$this->assign('header', $header);
		
		$requests = KFactory::get('lib.anahita.domain.factory')
				->getQuery('lib.anahita.model.person.story.request')
				->where('owner',	  '=', $this->getViewer())
				->order('date', 'DESC')
				->limit($this->getLimit(), $this->getOffset())
				->fetchAll();
				;
		die;
		KFactory::get('site::com.socialengine.helper.story')->setNotificationActions($requests);
	
		$this->assign('requests', $requests);		
	}
	
//end class
}
Return current item: Anahita Social Engine