How to get module, controller and action name?

How to get the current module, controller and action name.

Normally i am using below code

$module=Yii::app()->controller->module->id;

It is not working inside the PageAuthentication class




class PageAuthentication extends CBehavior

{

	public function attach($owner)

	{

		$owner->attachEventHandler('onBeginRequest', array($this, 'handleBeginRequest'));

	}




	public function handleBeginRequest($event)

	{

                // i need module, controller and action name.

		if(in_array($_GET['r'],array('employee/employee/update')) && $_GET['id']==11)

		{

			Yii::app()->user->setState('error_file','error_permission_record');

			throw new CHttpException(404,'You dont have permission to access this page.');

		}else

			return true;

	}

}