SwatObject
└─SwatDBDataObject
└─SiteGadgetInstanceSettingValue
public class SiteGadgetInstanceSettingValue
extends SwatDBDataObject
| Field Summary | |
|---|---|
| integer | Unique identifier. |
| string | The name of the setting. |
| boolean | The boolean value of the setting. |
| SwatDate | The date value of the setting. |
| float | The float value of the setting. |
| integer | The integer value of the setting. |
| string | The string value of the setting. |
| string | The text value of the setting. |
| Fields inherited from SwatDB.SwatDBDataObject | |
|---|---|
| class_map, db, id_field, read_only, table | |
| Method Summary | |
|---|---|
| mixed | getValue(string type) |
| protected void | init() |
| boolean | load(integer id, SiteInstance instance) Loads this setting value. |
| void | setValue(string type, mixed value) |
public integer $id
Unique identifier
The primary key of the GadgetInstanceSettingValue table is actually (gadget_instance, name). This field is added so the dataobject will play nicely with SwatDB and SiteEditPage.
public string $name = ''
The name of the setting
public boolean $value_boolean
The boolean value of the setting
public SwatDate $value_date
The date value of the setting
public float $value_float
The float value of the setting
public integer $value_integer
The integer value of the setting
public string $value_string
The string value of the setting
public string $value_text
The text value of the setting
public mixed getValue(string type)
protected void init()
public boolean load(integer id, SiteInstance instance)
Loads this setting value
id - the database id of this setting value.instance - optional. The instance to load the setting value in. If the application does not use instances, this should be null. If unspecified, the instance is not checked.public void setValue(string type, mixed value)
A setting value for a particular gadget instance