Habari\EventLog::register_type PHP Method

register_type() public static method

Adds a logging type to the lookup table
public static register_type ( string $type = 'default', string $module = null )
$type string The type of the error
$module string The module of the error
    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.
        }
    }