Пример #1
0
 function __construct($server, $path = '/', $port = 80, $protocol = null)
 {
     $this->ResponseClass = 'ggJSONRPCResponse';
     $this->UserAgent = 'gg eZ JSONRPC client';
     $this->ContentType = 'application/json';
     parent::__construct($server, $path, $port, $protocol);
 }
Пример #2
0
 function __construct($server, $path = '/', $port = 80, $protocol = null)
 {
     $this->ResponseClass = 'ggXMLRPCResponse';
     $this->UserAgent = 'gg eZ XMLRPC client';
     $this->ContentType = 'text/xml';
     parent::__construct($server, $path, $port, $protocol);
 }
Пример #3
0
 function __construct($server, $path = '/', $port = 80, $protocol = null)
 {
     $this->ResponseClass = 'ggeZJSCoreResponse';
     $this->UserAgent = 'gg eZJSCore client';
     $this->ContentType = 'application/x-www-form-urlencoded';
     parent::__construct($server, $path, $port, $protocol);
 }
Пример #4
0
 /**
  * The difference between this constructor and the parent one is the addition
  * of the wsdl parameter
  */
 function __construct($server, $path = '/', $port = 80, $protocol = null, $wsdl = null)
 {
     /// @todo verify: the following 2 fields are unused?
     //$this->ContentType = 'text/xml'; /// @todo add UTF8 charset by default?
     $this->Wsdl = $wsdl;
     // test it here, since we later use an @ operator to catch soap warnings
     // related to wsdl
     if (!class_exists('SoapClient')) {
         throw new Exception("Class 'SoapClient' not found. Cannot instantiate ggPhpSOAPClient object");
     }
     parent::__construct($server, $path, $port, $protocol);
 }
Пример #5
0
 function __construct($server, $path = '/', $port = 80, $protocol = null)
 {
     $this->ResponseClass = 'ggHTTPResponse';
     $this->UserAgent = 'gg eZ HTTP client';
     parent::__construct($server, $path, $port, $protocol);
 }