Location: PHPKode > projects > Anahita Social Engine > dependencies/plg_system_socialengine/socialengine/uikit/setting/mixin.php
<?php
/**
 * @version		1.0.0
 * @category	Anahita Social Engine™
 * @copyright	Copyright (C) 2008 - 2009 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 AnUikitSettingMixin extends KMixinAbstract
{
	public function __construct($options)
	{	
		parent::__construct($options);
		
		$identifier = $this->_mixer->getIdentifier();
		
		$component  = $identifier->type.'_'.$identifier->package;
		
		$application = $this->_mixer->getApplication();
		
		$actor		 = $this->_mixer->getViewer();
		
		$setting     = 	$application->getSetting($actor);

		$this->_mixer->assign('application', $application);
		
		$setting_header = (string) KFactory::get('lib.anahita.uikit.setting.header')->assign('application', $application);
		
		$this->_mixer->assign('setting_header', $setting_header);
		
		$path   = JPATH_SITE.DS.'components'.DS.$component.DS.'models'.DS.'application.xml';
		
		$params = new AnUtilParameter($setting->params, $path);
		
		//$params = JComponentHelper::getParams($component);
		
		$setting_form = (string) KFactory::get('lib.anahita.uikit.setting.form')->assign('params', $params)->assign('application', $application);
		
		$this->_mixer->assign('setting_form', $setting_form);
		
		$this->_mixer->assign('setting', $setting_header.$setting_form);
	}

}
Return current item: Anahita Social Engine