/** * [deleteMenuForMenuID description] * @param [type] $menu_id [description] * @return [type] [description] */ public function deleteMenuForMenuID($menu_id) { $menu = self::instance(); $chapter = BookChapter::instance(); $chapter->where("menu_id='{$menu_id}'")->delete(); return $menu->where("id='{$menu_id}'")->delete(); }
/** * Instance construct */ function __construct() { parent::__construct(); $this->bookCategory = BookCategory::instance(); $this->bookChapter = BookChapter::instance(); }