コード例 #1
0
 function delete()
 {
     global $db;
     // has to move contacts to another station if they are used elsewhere!
     sotf_Contact::moveContactsFromStation($this);
     parent::delete();
 }
コード例 #2
0
 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();
 }