__construct() public méthode

Setup API
public __construct ( string $serviceName, string $namespace, string $address, integer $port = null, string $protocol = self::PROTOCOL_HTTP, integer $version = 1, boolean $verifySSL = false )
$serviceName string
$namespace string
$address string
$port integer
$protocol string
$version integer
$verifySSL boolean
Exemple #1
0
 /**
  * Info API setup
  *
  * @param string $address
  * @param int $port
  * @param string $protocol
  * @param int $version
  * @param boolean $verifySSL
  */
 public function __construct($address, $port = null, $protocol = null, $version = 1, $verifySSL = false)
 {
     parent::__construct(self::API_SERVICE_NAME, self::API_NAMESPACE, $address, $port, $protocol, $version, $verifySSL);
 }
Exemple #2
0
 /**
  * Cosntructor
  * 
  * @param string $serviceName
  * @param string $namespace
  * @param string $address
  * @param int $port
  * @param string $protocol
  * @param int $version
  */
 public function __construct($serviceName, $namespace, $address, $port = null, $protocol = null, $version = 1, $verifySSL = false)
 {
     parent::__construct($serviceName, $namespace, $address, $port, $protocol, $version, $verifySSL);
     $this->_sessionName = $serviceName;
     $this->_authApi = new Synology_Api($address, $port, $protocol, $version);
 }