public function delete($pk) { $link = parent::get($pk); if (empty($link)) { return false; } parent::delete($pk); M_Posts::Instance()->unlink_menu($pk); $obj = array('plid' => $link['plid']); $where = 'plid = ? '; $this->db->Update($this->table, $obj, $where, array($pk)); $this->listItems = array(); $this->treeArray = array(); return true; }