コード例 #1
0
ファイル: Helloworld.php プロジェクト: amitjoy/other-java
 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
ファイル: Helloworld.php プロジェクト: amitjoy/other-java
 /**
  * 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);
 }