public function delete($id) { if (parent::delete($id)) { $urlmap = turlmap::i(); $urlmap->clearcache(); return true; } return false; }
public function delete($id) { if ($id == 1) { return; } $this->beforedelete($id); $this->getdb($this->grouptable)->delete('iduser = '******'comments')->update("status = 'deleted'", "author = {$id}"); return parent::delete($id); }
public function delete($id) { $item = $this->getitem($id); litepublisher::$urlmap->deleteitem($item['idurl']); $this->contents->delete($id); $list = $this->itemsposts->getposts($id); $this->itemsposts->deleteitem($id); parent::delete($id); if ($this->postpropname) { $this->itemsposts->updateposts($list, $this->postpropname); } $this->changed(); litepublisher::$urlmap->clearcache(); }
public function delete($id) { if (!$this->itemexists($id)) { return false; } $this->itemsposts->deleteitem($id); return parent::delete($id); }
public function delete($id) { if (!$this->itemexists($id)) { return false; } $list = $this->itemsposts->getposts($id); $this->itemsposts->deleteitem($id); $this->itemsposts->updateposts($list, 'files'); $item = $this->getitem($id); if ($item['idperm'] == 0) { @unlink(litepublisher::$paths->files . str_replace('/', DIRECTORY_SEPARATOR, $item['filename'])); } else { @unlink(litepublisher::$paths->files . 'private' . DIRECTORY_SEPARATOR . basename($item['filename'])); litepublisher::$urlmap->delete('/files/' . $item['filename']); } parent::delete($id); if ($item['preview'] > 0) { $this->delete($item['preview']); } $this->getdb('imghashes')->delete("id = {$id}"); $this->changed(); return true; }
public function delete($id) { $urlmap = turlmap::i(); $urlmap->deleteitem($this->items[$id]['idurl']); parent::delete($id); }
public function delete($id) { parent::delete($id); $manager = tcommentmanager::instance(); $manager->authordeleted($id); }
public function delete($id) { if ($id <= 1) { return false; } if (!$this->itemexists($id)) { return false; } $idurl = $this->getvalue($id, 'idurl'); if ($idurl > 0) { litepublisher::$urlmap->deleteitem($idurl); } return parent::delete($id); }