Module luadefaults

Subclass of LuaSettings dedicated to handling the legacy global constants.

Functions

LuaDefaults:open (path) Opens a settings file.
LuaDefaults:readSetting (key, default) Reads a setting, optionally initializing it to a default.
LuaDefaults:saveSetting (key, value) Saves a setting.
LuaDefaults:delSetting (key) Deletes a setting.
LuaDefaults:has (key) Checks if setting exists.
LuaDefaults:hasNot (key) Checks if setting does not exist.
LuaDefaults:hasBeenCustomized (key) Checks if setting has been customized.
LuaDefaults:hasNotBeenCustomized (key) Checks if setting has NOT been customized.
LuaDefaults:isTrue (key) Checks if setting is true (boolean).
LuaDefaults:isFalse (key) Checks if setting is false (boolean).
LuaDefaults:getDataTables () Low-level API for filemanagersetdefaults
LuaDefaults:flush () Writes settings to disk.


Functions

LuaDefaults:open (path)
Opens a settings file.

Parameters:

  • path
LuaDefaults:readSetting (key, default)
Reads a setting, optionally initializing it to a default.

Parameters:

  • key
  • default
LuaDefaults:saveSetting (key, value)
Saves a setting.

Parameters:

  • key
  • value
LuaDefaults:delSetting (key)
Deletes a setting.

Parameters:

  • key
LuaDefaults:has (key)
Checks if setting exists.

Parameters:

  • key
LuaDefaults:hasNot (key)
Checks if setting does not exist.

Parameters:

  • key
LuaDefaults:hasBeenCustomized (key)
Checks if setting has been customized.

Parameters:

  • key
LuaDefaults:hasNotBeenCustomized (key)
Checks if setting has NOT been customized.

Parameters:

  • key
LuaDefaults:isTrue (key)
Checks if setting is true (boolean).

Parameters:

  • key
LuaDefaults:isFalse (key)
Checks if setting is false (boolean).

Parameters:

  • key
LuaDefaults:getDataTables ()
Low-level API for filemanagersetdefaults
LuaDefaults:flush ()
Writes settings to disk.
generated by LDoc 1.5.0 Last updated 2024-11-21 07:57:34