示例#1
0
 public function __construct($api)
 {
     parent::__construct($api);
     // Set newHello request methods
     $this->addAllowedMethod("newHello", Api_Request::METHOD_PUT);
     $this->addAllowedMethod("newHello", Api_Request::METHOD_GET);
 }
示例#2
0
 /**
  * Construct
  *
  * @author Wim Mostmans
  *
  * @param Api $api
  */
 public function __construct($api)
 {
     parent::__construct($api);
     // Set request methods
     $this->addAllowedMethod("execute", Api_Request::METHOD_POST);
     $this->addAllowedMethod("with", Api_Request::METHOD_GET);
     $this->addAllowedMethod("arrayLanguages", Api_Request::METHOD_GET);
     $this->addAllowedMethod("objectLanguages", Api_Request::METHOD_GET);
 }