public function allowActions($controller, $action){
		$cid = $controller->id;

		// If NULL remove all excluded actions
		if(is_null($action)){
			$this->excluded_actions[$cid] = array();
			return $this;
		}

		$action = is_array($action) ? $action : array($action);

		if(!isset($this->excluded_actions[$cid])){
			$this->excluded_actions[$cid] = array();
		}

		$this->excluded_actions[$cid] = array_diff($this->excluded_actions[$cid], $action);

		return $this;
	}
public function allowActions($controller, $action){
		$cid = $controller->id;

		// If NULL remove all excluded actions
		if(is_null($action)){
			$this->excluded_actions[$cid] = array();
			return $this;
		}

		$action = is_array($action) ? $action : array($action);

		if(!isset($this->excluded_actions[$cid])){
			$this->excluded_actions[$cid] = array();
		}

		$this->excluded_actions[$cid] = array_diff($this->excluded_actions[$cid], $action);

		return $this;
	}
public function allowActions ( $ controller , $ action ) { $ cid = $ controller -> id ; // If NULL remove all excluded actions if ( is_null ( $ action ) ) { $ this -> excluded_actions [ $ cid ] = array ( ) ; return $ this ; } $ action = is_array ( $ action ) ? $ action : array ( $ action ) ; if ( ! isset ( $ this -> excluded_actions [ $ cid ] ) ) { $ this -> excluded_actions [ $ cid ] = array ( ) ; } $ this -> excluded_actions [ $ cid ] = array_diff ( $ this -> excluded_actions [ $ cid ] , $ action ) ; return $ this ; }
Allowing actions to be cached if before they was excluded from caching actions

@param Controller $controller
@param string $action
@return $this
Allowing actions to be cached if before they was excluded from caching actions