示例#1
0
 /**
  * Gets the request method
  *
  * @return string Request Method
  */
 private static function get_method()
 {
     if (!self::$method) {
         self::$method = $_SERVER['REQUEST_METHOD'];
     }
     return strtolower(self::$method);
 }