/** * 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 }
/** * 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; }
/** * 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'; }
/** * 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'; }
/** * 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; }