Location: PHPKode > projects > Anahita Social Engine > dependencies/plg_system_socialengine/socialengine/uikit/setting/controller.php
<?php
/**
 * @version		1.0.0
 * @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 AnUikitSettingController extends AnUikitController
{
	public function _actionEdit()
	{		
		$setting   = $this->getApplication()->getSetting($this->getViewer());
		
		$params    = (array) KRequest::get('post.params', 'cmd');		
		
		$setting->params = $params;
		
		if( KFactory::get('lib.anahita.domain.context')->save() )
			print KFactory::get('lib.anahita.uikit.prompt.message')->setBody(JTEXT::_('AN-SE-PROMPT-SAVED-SUCCESS'));
		else
			print KFactory::get('lib.anahita.uikit.prompt.error')->setBody(JTEXT::_('AN-SE-PROMPT-SAVED-ERROR'));	
	}
}
Return current item: Anahita Social Engine