芝麻web文件管理V1.00
编辑当前文件:/home/prismawe/www/system/classes/kohana/request/client.php
$value) { if (method_exists($this, $key)) { $this->$key($value); } } } /** * Processes the request, executing the controller action that handles this * request, determined by the [Route]. * * 1. Before the controller action is called, the [Controller::before] method * will be called. * 2. Next the controller action will be called. * 3. After the controller action is called, the [Controller::after] method * will be called. * * By default, the output from the controller is captured and returned, and * no headers are sent. * * $request->execute(); * * @param Request $request * @return Response * @throws Kohana_Exception * @uses [Kohana::$profiling] * @uses [Profiler] */ public function execute(Request $request) { if ($this->_cache instanceof HTTP_Cache) return $this->_cache->execute($this, $request); return $this->execute_request($request); } /** * Processes the request passed to it and returns the response from * the URI resource identified. * * This method must be implemented by all clients. * * @param Request request to execute by client * @return Response * @since 3.2.0 */ abstract public function execute_request(Request $request); /** * Getter and setter for the internal caching engine, * used to cache responses if available and valid. * * @param [HTTP_Cache] cache engine to use for caching * @return [HTTP_Cache] * @return [Request_Client] */ public function cache(HTTP_Cache $cache = NULL) { if ($cache === NULL) return $this->_cache; $this->_cache = $cache; return $this; } }