/**
  * PluginOcsinventoryngOcsDbClient constructor.
  * @param $id
  * @param $dbhost
  * @param $dbuser
  * @param $dbpassword
  * @param $dbdefault
  */
 public function __construct($id, $dbhost, $dbuser, $dbpassword, $dbdefault)
 {
     parent::__construct($id);
     $this->db = new PluginOcsinventoryngDBocs($dbhost, $dbuser, $dbpassword, $dbdefault);
 }
 public function __construct($id, $url, $user, $pass)
 {
     parent::__construct($id);
     $options = array('location' => "{$url}/ocsinterface", 'uri' => "{$url}/Apache/Ocsinventory/Interface", 'login' => $user, 'password' => $pass, 'trace' => true, 'soap_version' => SOAP_1_1, 'exceptions' => 0);
     $this->soapClient = new SoapClient(null, $options);
 }