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()); }
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()) . ""); }
public function delete(Os &$os) { $this->db->query("delete from Os where id=" . $os->getId()); }