示例#1
0
文件: XsVm.php 项目: 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);
 }
示例#2
0
文件: XsSnapshot.php 项目: ivrh/xs
 public function __construct($uuid)
 {
     $this->setUuid($uuid);
     parent::__construct();
     $this->data = $this->getSnapshot();
 }