Application settings (like about:config in firefox)

Mixes In:

# new ubs_settings_ns ()

Members

# attrs : ubsSettingsAttrs static

Attributes defined in metadata. Property does not exist in real life and added for IDE

# entity : UBEntity instance

Reference to entity metadata

Methods

# addNew (ctxubMethodParams) instance

Create record with filled default values and return it to caller. Newly created record is not inserted to database. For inserting record to the database insert method should be called

Arguments:

# delete (ctxubMethodParams) instance

Delete record by ID

Arguments:

# insert (ctxubMethodParams) instance

New record insertion

Arguments:

# select (ctxubMethodParams) instance

ORM query for read records

Arguments:

# update (ctxubMethodParams) instance

Update existed record

Arguments:
  • ctx: ubMethodParams
    • mParamsobject

      Update method parameters

    • fieldListarray.<string>

      Optional attributes names. Values of this attributes will be returned in result. Additional DB query is required to return values, so if caller do not need it better to not pass a fieldList to update

# addOrUpdateKey (keyDataubs_settings_ns) instance

Create a new Key or set value for existing key

Arguments:

# getSettingValue (settingKeystring, defaultValueoptstring) → string | boolean | number | null instance deprecated

Use ubs_setting.loadKey instead

Alias for a loadKey

Arguments:

# loadKey (settingKeystring, defaultValueoptstring) → null | number | string | boolean instance

Load a single configuration value

Arguments:

# loadKeys (settingKeysArray.<string>) → object instance deprecated

Consider to use `ubs_settings.loadKey` - it's cached in globalCache

Load a configuration object for number of keys

Arguments: