Location: PHPKode > projects > Anahita Social Engine > admin/controllers/application.php
<?php
/**
* @version		1.0.0
* @package		Anahita Social Engine
* @copyright	Copyright (C) 2007 - 2010 rmd Studio 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 ComSocialengineControllerApplication extends AnUikitControllerAbstract 
{
	public function __construct($options)
	{
		parent::__construct($options);
		$this->mixin( KFactory::tmp('lib.anahita.uikit.controller.behavior', array('mixer'=>$this, 'behaviors'=>array('enable','disable','globolize','unglobolize','order'))) );		
		$this->mixin( KFactory::tmp('lib.anahita.uikit.controller.state',    array('mixer' =>$this)) );		
	}
	
	public function _actionGlobolize()
	{
		$this->entities->isGlobal = 1;
	}
	
	public function _actionUnglobolize()
	{
		$this->entities->isGlobal = 0;
	}
	
	public function _actionEnable()
	{
		$this->entities->enabled = 1;
	}
	
	public function _actionDisable()
	{
		$this->entities->enabled = 0;
	}
}
Return current item: Anahita Social Engine