Esempio n. 1
0
 public function removeOsFromOsGroups(Os &$os)
 {
     if ($os == null || $os->getId() == -1) {
         Utils::log(LOG_DEBUG, "Exception", __FILE__, __LINE__);
         throw new Exception("Os object is not valid or Os.id is not set");
     }
     Utils::log(LOG_DEBUG, "Removing the os from all os groups [os=" . $os->getName() . "]", __FILE__, __LINE__);
     $this->getPakiti()->getDao("OsGroup")->removeOsFromOsGroups($os->getId());
 }
Esempio n. 2
0
 public function removeOsFromSubSourceDef(ISubSourceDef &$subSourceDef, Os $os)
 {
     $this->_db->query("delete from VdsSourceDefOs wherer vdsSubSourceId=" . $this->_db->escape($subSourceDef->getId()) . " and osId=" . $this->_db->escape($os->getId()) . "");
 }
Esempio n. 3
0
 public function delete(Os &$os)
 {
     $this->db->query("delete from Os where id=" . $os->getId());
 }