Application settings (like about:config in firefox)
# 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 (ctx: ubMethodParams) 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:
ctx
: ubMethodParamsmParams
: objectOptional values for attributes of new record
# delete (ctx: ubMethodParams) instance
Delete record by ID
Arguments:
ctx
: ubMethodParamsmParams
: objectDelete method parameters
# insert (ctx: ubMethodParams) instance
New record insertion
Arguments:
ctx
: ubMethodParamsmParams
: objectInsert method parameters
# select (ctx: ubMethodParams) instance
ORM query for read records
Arguments:
ctx
: ubMethodParamsmParams
: UBQLORM query in UBQL format
# update (ctx: ubMethodParams) instance
Update existed record
Arguments:
ctx
: ubMethodParams
# addOrUpdateKey (keyData: ubs_settings_ns) instance
Create a new Key or set value for existing key
Arguments:
keyData
: ubs_settings_ns
# getSettingValue (settingKey: string, defaultValueopt: string) → string | boolean | number | null instance deprecated
Use ubs_setting.loadKey instead
Alias for a loadKey
# loadKey (settingKey: string, defaultValueopt: string) → null | number | string | boolean instance
Load a single configuration value
# loadKeys (settingKeys: Array.<string>) → object instance deprecated
Consider to use `ubs_settings.loadKey` - it's cached in globalCache
Load a configuration object for number of keys