Location: PHPKode > projects > Anahita Social Engine > dependencies/plg_system_socialengine/socialengine/uikit/action/mixin.php
<?php
/**
 * @version		$Id: html.php 1286 2009-10-20 18:11:30Z rmdstudio $
 * @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 AnUikitActionMixin extends KMixinAbstract
{
	protected $_actions = array();
	
	public function setActions($actions)
	{
		$this->_actions = array();
		$this->addAction($actions);
	}
	
	public function addAction($actions)
	{
		if ( !is_array($actions) ) $actions = array($actions);
			
		foreach($actions as $action) {
			$this->_actions[] = $action;
		}
	}
	
	public function getActions()
	{
		return $this->_actions;
	}
//end class
}
Return current item: Anahita Social Engine