Example #1
0
 /**
  * Gets/Sets the HTTP status header to match the passed code. Recommended that the passed parameter be the corresponding HTTP_STATUS_* constant.
  *
  * @param integer
  * @return void
  **/
 public static function Status($code = null)
 {
     self::$current_status = $code;
     if ($code) {
         $current_status = $code;
         header('HTTP/1.1 ' . self::$messages[$code]);
     }
     return self::$current_status;
 }