public static function setConfig($mod, $name, $value) { $db = new DBManager(); $table = 'core_conf'; if (!Comman::isConfig($mod, $name)) { return Comman::createConfig($mod, $name, $value); } return $db->updateSingleColumn($table, 'value', $value, "module='{$mod}' AND name='{$name}'"); }