Wp.SettingsItem

Fields

None

Methods

get_key ()

get_value ()

ref ()

unref ()

Details

class Wp.SettingsItem

Wp.SettingsItem holds the key and value of a setting

get_key()
Returns:

the settings key of the item

Return type:

str

Gets the key from a settings item.

get_value()
Returns:

the settings value of the item

Return type:

Wp.SpaJson

Gets the value from a settings item.

ref()
Returns:

self with an additional reference count on it

Return type:

Wp.SettingsItem

Increases the reference count of a settings item object.

unref()

Decreases the reference count on self and frees it when the ref count reaches zero.