Example #1
0
File: rom.php Project: neel/bong
 public function __construct()
 {
     $this->get = new Request(Request::GET);
     $this->post = new Request(Request::POST);
     $this->upload = new Request(Request::UPLOAD);
     $this->cookie = new Request(Request::COOKIE);
     $this->session = new Request(Request::SESSION);
     $method = $_SERVER["REQUEST_METHOD"];
     switch ($method) {
         case 'GET':
             $this->_method = Request::GET;
             break;
         case 'POST':
             $this->_method = Request::POST;
             break;
     }
     $this->_client = Client::instance();
     $this->_server = Server::instance();
 }