Location: PHPKode > projects > Anahita Social Engine > site/views/applications/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 ComSocialengineViewApplicationsHtml extends ComSocialengineViewHtml
{

	protected function prepareDefaultLayout()
	{
		$title = ($this->getMenuTitle()) ? $this->getMenuTitle() : JText::_('AN-SE-APPLICATIONS-HEADER-TITLE');
		
		$header = KFactory::get('lib.anahita.uikit.header.page')->setTitle($title);
		
		$this->assign('header', $header);
	}
	
	protected function prepareListLayout()
	{
		$query =	KFactory::get('lib.anahita.domain.factory')
					->getQuery('lib.anahita.model.application')
					->where('enabled', '=', 1)
					->order('name')
					;
				
		$this->assign('applications', $query->fetchAll());
	}
	
//end class	
}
Return current item: Anahita Social Engine