'', 'main_module' => '', ); public function deleteByMainModule($modulename) { if (empty($modulename)) { return true; } return $this->query->where('main_module', $modulename)->delete(); } public function getPluginExists($main_module, $plugin_name) { return $this->query->where('main_module', $main_module)->where('name', $plugin_name)->exists(); } }