Location: PHPKode > projects > Anahita Social Engine > site/views/person/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 ComSocialengineViewPersonHtml extends ComSocialengineViewHtml
{		
	
	/*
	 * method to prepare the default layout
	 * @return null
	 */
	protected function prepareDefaultLayout()
	{		
		$this->owner->mixin( KFactory::tmp('lib.anahita.uikit.action.mixin') );
		//add people related actions
		KFactory::get('lib.anahita.uikit.people.actions')->add( $this->owner );
		//add avatar related actions
		KFactory::get('lib.anahita.uikit.avatar.actions')->add( $this->owner );
				
		KFactory::get('lib.anahita.model.application.context')->setActor( $this->owner );
		
		$applications = $this->owner->getApplications();
					
		$uiGadgets	  = KFactory::get('lib.anahita.uikit.gadget');
		
		foreach($applications as $app) {
			$gadgets = $app->getGadgets( 'profile' );
			$uiGadgets->addGadgets( $gadgets );
		}
		
	
		
		if($this->owner !== $this->getViewer())
		{
			KFactory::get('lib.joomla.application')
			->getPathway()
			->addItem($this->owner->name);
		}
			
		$this->assign('owner' ,     $this->owner);
		$this->assign('gadgets',	$uiGadgets);
		$this->assign('header', 	KFactory::get('lib.anahita.uikit.header.page')->setTitle($this->owner->name));
	}
	
	
//end class		
}
Return current item: Anahita Social Engine