private function callback($theme, $method, $data)
	{
		if ($theme == NULL)
			throw new CHttpException(400, Yii::t('Api.Theme', 'Missing Theme'));

		if ($method == NULL)
			throw new CHttpException(400, Yii::t('Api.Theme', 'Method name is missing'));

		Yii::import('base.themes.' . $theme . '.Theme');
		$theme = new Theme;

		if (method_exists($theme, $method))
			return $theme->$method($data);

		throw new CHttpException(404, Yii::t('Api.Theme', 'Missing callback method.'));
	}
private function callback($theme, $method, $data)
	{
		if ($theme == NULL)
			throw new CHttpException(400, Yii::t('Api.Theme', 'Missing Theme'));

		if ($method == NULL)
			throw new CHttpException(400, Yii::t('Api.Theme', 'Method name is missing'));

		Yii::import('base.themes.' . $theme . '.Theme');
		$theme = new Theme;

		if (method_exists($theme, $method))
			return $theme->$method($data);

		throw new CHttpException(404, Yii::t('Api.Theme', 'Missing callback method.'));
	}
private function callback ( $ theme , $ method , $ data ) { if ( $ theme == NULL ) throw new CHttpException ( 400 , Yii :: t ( 'Api.Theme' , 'Missing Theme' ) ) ; if ( $ method == NULL ) throw new CHttpException ( 400 , Yii :: t ( 'Api.Theme' , 'Method name is missing' ) ) ; Yii :: import ( 'base.themes.' . $ theme . '.Theme' ) ; $ theme = new Theme ; if ( method_exists ( $ theme , $ method ) ) return $ theme -> $ method ( $ data ) ; throw new CHttpException ( 404 , Yii :: t ( 'Api.Theme' , 'Missing callback method.' ) ) ; }
Callback method for actionCallback and actionCallbackPost

@param  string $method The method of the current theme they want to call
@param string $theme   The theme name
@param array $data $_GET or $_POST
@return mixed
Callback method for actionCallback and actionCallbackPost