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

	public function __construct(array $options=array())
	{
		parent::__construct($options);
		
		$this->owner = $this->getOwner();
	}
	
	protected function prepareDefaultLayout()
	{
		$title  = ($this->getMenuTitle()) ? $this->getMenuTitle() : JText::_('AN-SE-DASHBOARD-HEADER');
		
		$header = KFactory::get('lib.anahita.uikit.header.page')->setTitle($title);
		
		$applications = $this->getViewer()->getApplications();
		
		$uiGadgets	  = KFactory::get('lib.anahita.uikit.gadget');
		
		foreach($applications as $app) {
			$uiGadgets->addGadgets( $app->getGadgets( AnModelApplicationGadget::TypeDashboard ) );
		}
				
		$this->assign('header', 	$header);
		$this->assign('owner', 		$this->owner);
		$this->assign('gadgets',	$uiGadgets);
	}
	
//end class
}
Return current item: Anahita Social Engine