Location: PHPKode > projects > Anahita Social Engine > site/views/person/info/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 ComSocialengineViewPersonInfoHtml extends ComSocialengineViewHtml
{	
	protected $globalParams = null;
	
	public function __construct(array $options=array())
	{
		parent::__construct($options);
		$this->globalParams = JComponentHelper::getParams('com_socialengine');
	}
	
	protected function prepareDefaultLayout()
	{
		$personInfo = $this->owner->information;

		$this->assign('personInfo', 	$personInfo);
		$this->assign('globalParams', 	$this->globalParams);
	}
	
	protected function prepareEditLayout()
	{	
		$file = dirname(__FILE__).DS.'person.xml';
		
		$params  = new AnUtilParameter('', $file);
		$params->bind( $this->owner->information->getIterator() );
		$fields  = $params->renderToArray('params', 'an-se-person-fields');
		
		$this->assign('fields', 		$fields);
		$this->assign('globalParams', 	$this->globalParams);			
	}

//end class	
}
Return current item: Anahita Social Engine