コード例 #1
0
ファイル: locallib.php プロジェクト: rosenclever/moodle
 /**
  * Contructor
  */
 public function __construct($authmethod, $restformat = 'xml')
 {
     parent::__construct($authmethod);
     $this->wsname = 'rest';
     $this->restformat = $restformat != 'xml' && $restformat != 'json' ? 'xml' : $restformat;
     //sanity check, we accept only xml or json
 }
コード例 #2
0
ファイル: locallib.php プロジェクト: IFPBMoodle/moodle
 /**
  * Contructor.
  *
  * @param string $authmethod authentication method of the web service (WEBSERVICE_AUTHMETHOD_PERMANENT_TOKEN, ...)
  */
 public function __construct($authmethod)
 {
     parent::__construct($authmethod);
     // Must not cache wsdl - the list of functions is created on the fly.
     ini_set('soap.wsdl_cache_enabled', '0');
     $this->wsname = 'soap';
     $this->wsdlmode = false;
 }
コード例 #3
0
ファイル: locallib.php プロジェクト: EmmanuelYupit/educursos
 /**
  * Contructor
  *
  * @param string $authmethod authentication method of the web service (WEBSERVICE_AUTHMETHOD_PERMANENT_TOKEN, ...)
  * @param string $restformat Format of the return values: 'xml' or 'json'
  */
 public function __construct($authmethod)
 {
     parent::__construct($authmethod);
     $this->wsname = 'rest';
 }
コード例 #4
0
ファイル: lib_test.php プロジェクト: rushi963/moodle
 /**
  * webservice_dummy constructor.
  *
  * @param int $authmethod The authentication method.
  */
 public function __construct($authmethod)
 {
     parent::__construct($authmethod);
     // Arbitrarily naming this as REST in order not to have to register another WS protocol and set capabilities.
     $this->wsname = 'rest';
 }
コード例 #5
0
    /**
     * Contructor
     *
     * @param string $authmethod authentication method of the web service (WEBSERVICE_AUTHMETHOD_PERMANENT_TOKEN, ...)
     * @param string $response_code Header response code to return with response
     * @param boolean $response_encode Encode response as json string
     */
    public function __construct($authmethod) {
	    parent::__construct($authmethod);
	    $this->wsname = 'rest';
        $this->response_code = '200';
        $this->response_encode = true;
    }