<<

NAME

C4::Utils::DataTables::TablesSettings - Koha DataTables Settings

API

Methods

get_table_settings

  my $settings = C4::Utils::DataTables::TablesSettings::get_table_settings(
    {
        module                 => $module,
        pag                    => $page,
        tablename              => $tablename,
    }
  );

Returns the settings for a given table.

The settings are default_display_length, default_sort_order, default_save_state and default_save_state_search.

update_table_settings

C4::Utils::DataTables::TablesSettings::update_table_settings( { module => $module, page => $page, tablename => $tablename, default_display_length => $default_display_length, default_sort_order => $default_sort_order, default_save_state => $default_save_state, default_save_state_search => $default_save_state_search, } );

Will update the default_display_length and default_sort_order for the given table.

<<