function cleanDBonPurge() { global $DB; $link = new NetworkPort_Vlan(); $link->cleanDBonItemDelete($this->getType(), $this->getID()); $link = new IPNetwork_Vlan(); $link->cleanDBonItemDelete($this->getType(), $this->getID()); return true; }
function cleanDBonPurge() { $instantiation = $this->getInstantiation(); if ($instantiation !== false) { $instantiation->cleanDBonItemDelete($this->getType(), $this->getID()); unset($instantiation); } $nn = new NetworkPort_NetworkPort(); $nn->cleanDBonItemDelete($this->getType(), $this->getID()); $nv = new NetworkPort_Vlan(); $nv->cleanDBonItemDelete($this->getType(), $this->getID()); $names = new NetworkName(); $names->cleanDBonItemDelete($this->getType(), $this->getID()); }