Esempio n. 1
0
File: XsVm.php Progetto: ivrh/xs
 public function __construct($uuid)
 {
     if (empty($this->xsApi)) {
         parent::__construct();
     }
     if (empty($this->xsApi)) {
         throw new Exception('Unable to connect to XenServer host. Exiting.');
     }
     $this->setVmUuid($uuid);
 }
Esempio n. 2
0
 public function __construct($uuid)
 {
     $this->setUuid($uuid);
     parent::__construct();
     $this->data = $this->getSnapshot();
 }