function delete() { global $db; // has to move contacts to another station if they are used elsewhere! sotf_Contact::moveContactsFromStation($this); parent::delete(); }
function delete() { if (!$this->isLocal()) { raiseError("Can delete only local stations"); } // delete files from the repository debug("deleting: ", $this->getDir()); sotf_Utils::erase($this->getDir()); // delete from sql db return parent::delete(); }