/** * @param $id * @return bool */ public function deleteBoard($id) { $threads = new Threads(); $r = $threads->deleteThreadsByBoardId($id); if ($r) { return $this->delete($this->getAdapter()->quoteInto("id=?", $id)) > 0; } return false; }