Ejemplo n.º 1
0
 /**
  * Construct an Instruments API handler
  *
  * @param string $method The HTTP request method
  * @param string $CandID The CandID to get the instruments for
  * @param string $Visit  The visit label for $CandID to retrieve
  *                       instruments for
  */
 public function __construct($method, $CandID, $Visit)
 {
     if (empty($this->AllowedMethods)) {
         $this->AllowedMethods = ['GET'];
     }
     $requestDelegationCascade = $this->AutoHandleRequestDelegation;
     // Parent will validate CandID and Visit Label and abort if necessary
     parent::__construct($method, $CandID, $Visit);
     if ($requestDelegationCascade) {
         $this->handleRequest();
     }
 }