public function __construct() { parent::__construct(); // magic_quotes_gpc対策 if (get_magic_quotes_gpc() == 1) { $get = Charcoal_System::stripSlashes($_GET); $post = Charcoal_System::stripSlashes($_POST); } else { $get = $_GET; $post = $_POST; } // detext HTTP method $method = isset($_SERVER['REQUEST_METHOD']) ? $_SERVER['REQUEST_METHOD'] : 'GET'; switch ($method) { case 'POST': $this->method = Charcoal_EnumHttpMethod::HTTP_POST; break; case 'GET': $this->method = Charcoal_EnumHttpMethod::HTTP_GET; break; case 'PUT': $this->method = Charcoal_EnumHttpMethod::HTTP_PUT; break; case 'DELETE': $this->method = Charcoal_EnumHttpMethod::HTTP_DELETE; break; } $this->values = array_merge($get, $post); }