Пример #1
0
 /**
  * instancy a response object corresponding to the default response type
  * of the current resquest.
  * Deprecated. use $request->getResponse() instead.
  * @param boolean $originalResponse TRUE to get the original, non overloaded response
  * @deprecated since 1.3
  */
 public function initDefaultResponseOfRequest($originalResponse = false)
 {
     try {
         $this->request->getResponse('', $originalResponse);
     } catch (Exception $e) {
         if (!$originalResponse) {
             $this->initDefaultResponseOfRequest(true);
         } else {
             throw $e;
         }
     }
 }
Пример #2
0
 /**
  * get a response object.
  * @param string $name the name of the response type (ex: "html")
  * @param boolean $useOriginal true:don't use the response object redefined by the application
  * @return jResponse the response object
  */
 protected function getResponse($name = '', $useOriginal = false)
 {
     return $this->request->getResponse($name, $useOriginal);
 }