public static function register_type($type = 'default', $module = null) { try { DB::query('INSERT INTO {log_types} (module, type) VALUES (?,?)', array(self::get_module($module), $type)); } catch (\Exception $e) { // Don't really care if there's a duplicate. } }