framework/web/widgets/COutputCache.php
protected function replayActions()
	{
		if(empty($this->_actions))
			return;
		$controller=$this->getController();
		$cs=Yii::app()->getClientScript();
		foreach($this->_actions as $action)
		{
			if($action[0]==='clientScript')
				$object=$cs;
			elseif($action[0]==='')
				$object=$controller;
			else
				$object=$controller->{$action[0]};
			if(method_exists($object,$action[1]))
				call_user_func_array(array($object,$action[1]),$action[2]);
			elseif($action[0]==='' && function_exists($action[1]))
				call_user_func_array($action[1],$action[2]);
			else
				throw new CException(Yii::t('yii','Unable to replay the action "{object}.{method}". The method does not exist.',
					array('object'=>$action[0],
						'method'=>$action[1])));
		}
	}
protected function replayActions()
	{
		if(empty($this->_actions))
			return;
		$controller=$this->getController();
		$cs=Yii::app()->getClientScript();
		foreach($this->_actions as $action)
		{
			if($action[0]==='clientScript')
				$object=$cs;
			elseif($action[0]==='')
				$object=$controller;
			else
				$object=$controller->{$action[0]};
			if(method_exists($object,$action[1]))
				call_user_func_array(array($object,$action[1]),$action[2]);
			elseif($action[0]==='' && function_exists($action[1]))
				call_user_func_array($action[1],$action[2]);
			else
				throw new CException(Yii::t('yii','Unable to replay the action "{object}.{method}". The method does not exist.',
					array('object'=>$action[0],
						'method'=>$action[1])));
		}
	}
protected function replayActions ( ) { if ( empty ( $ this -> _actions ) ) return ; $ controller = $ this -> getController ( ) ; $ cs = Yii :: app ( ) -> getClientScript ( ) ; foreach ( $ this -> _actions as $ action ) { if ( $ action [ 0 ] === 'clientScript' ) $ object = $ cs ; elseif ( $ action [ 0 ] === '' ) $ object = $ controller ; else $ object = $ controller -> { $ action [ 0 ] } ; if ( method_exists ( $ object , $ action [ 1 ] ) ) call_user_func_array ( array ( $ object , $ action [ 1 ] ) , $ action [ 2 ] ) ; elseif ( $ action [ 0 ] === '' && function_exists ( $ action [ 1 ] ) ) call_user_func_array ( $ action [ 1 ] , $ action [ 2 ] ) ; else throw new CException ( Yii :: t ( 'yii' , 'Unable to replay the action "{object}.{method}". The method does not exist.' , array ( 'object' => $ action [ 0 ] , 'method' => $ action [ 1 ] ) ) ) ; } }
Replays the recorded method calls.
Replays the recorded method calls .