Пример #1
0
 /**
  * Constructs a Projects handler
  *
  * @param string $method The HTTP request method
  */
 public function __construct($method)
 {
     parent::__construct($method);
 }
Пример #2
0
 /**
  * Create a Candidates request handler
  *
  * @param string $method The HTTP request method of the request
  * @param array  $data   The data that was POSTed to the request
  */
 public function __construct($method, $data = null)
 {
     $this->AllowedMethods = ['GET', 'POST'];
     $this->RequestData = $data;
     parent::__construct($method);
 }
Пример #3
0
 public function __construct($request, $origin)
 {
     parent::__construct($request);
     //$args is is an array of arguments after the endpoint
     $this->db = DB::getDBConnection();
 }