예제 #1
0
파일: lib.php 프로젝트: benhuson/Gold-Cart
 /**
  * Fetches the message associated with a Response Code
  *
  * @param string $code
  * @return string
  */
 public function getMessage($code)
 {
     return ResponseCode::getMessage($code);
 }
예제 #2
0
 /**
  * Sends the HTTP response to the client.
  * Causes output!
  */
 public function send()
 {
     $this->sendHeaders();
     $this->sendCookies();
     if (ResponseCode::canHaveBody($this->statusCode)) {
         $this->sendBody();
     }
 }