Ejemplo n.º 1
0
 public function __construct($user = null, $pass = null, $host = null)
 {
     parent::__construct($host, true);
     if (!$this->login($user, $pass)) {
         die($this->errorControl->getErrors());
     }
     $this->setTimeout(10);
     $this->logfile = fopen("migrate.log", 'a');
 }
Ejemplo n.º 2
0
 public function __construct($user = null, $pass = null, $host = 'http://xsp.host/webservice/services/ProvisioningService', $session = null)
 {
     parent::__construct($host, false);
     if ($session) {
         $this->setSession($session);
         $this->ociBuilder = Factory::getOCIBuilder($this->getSessionId());
         $this->send(OCISchemaLogin::VerifySessionIsValidRequest());
         if (!$this->getResponse()) {
             die($this->errorControl->getLastError());
         }
     } else {
         if (!$this->login($user, $pass)) {
             die($this->errorControl->getLastError());
         }
     }
 }