silverorange Code


Site.SiteGadgetInstanceSettingValue
/Site/dataobjects/SiteGadgetInstanceSettingValue.php at line 14

Class SiteGadgetInstanceSettingValue

SwatObject
└─SwatDBDataObject
└─SiteGadgetInstanceSettingValue

public class SiteGadgetInstanceSettingValue
extends SwatDBDataObject

A setting value for a particular gadget instance

Copyright:
2008 silverorange
License:
http://www.gnu.org/copyleft/lesser.html LGPL License 2.1
See Also:
SiteGadgetInstance

Field Summary
integer

$id

Unique identifier.

string

$name

The name of the setting.

boolean

$value_boolean

The boolean value of the setting.

SwatDate

$value_date

The date value of the setting.

float

$value_float

The float value of the setting.

integer

$value_integer

The integer value of the setting.

string

$value_string

The string value of the setting.

string

$value_text

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)

Methods inherited from SwatDB.SwatDBDataObject
checkDB, delete, deleteInternal, duplicate, generatePropertyHashes, getId, getInternalValue, getLoaderMethod, getModifiedProperties, getProperties, getPublicProperties, getSerializablePrivateProperties, getSerializableSubDataObjects, getSubDataObject, getUsingInternalProperty, getUsingLoaderMethod, guessType, hasInternalValue, hasSubDataObject, init, initFromRow, isModified, load, loadInternal, registerDateProperty, registerInternalProperty, save, saveInternal, saveInternalProperties, saveNewBinding, saveSubDataObjects, serialize, setDatabase, setInternalValue, setSubDataObject, setTable, unserialize, unsetSubDataObject, wakeup

Field Detail

/Site/dataobjects/SiteGadgetInstanceSettingValue.php at line 27

id

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.


/Site/dataobjects/SiteGadgetInstanceSettingValue.php at line 34

name

public string $name = ''

The name of the setting


/Site/dataobjects/SiteGadgetInstanceSettingValue.php at line 41

value_boolean

public boolean $value_boolean

The boolean value of the setting


/Site/dataobjects/SiteGadgetInstanceSettingValue.php at line 48

value_date

public SwatDate $value_date

The date value of the setting


/Site/dataobjects/SiteGadgetInstanceSettingValue.php at line 55

value_float

public float $value_float

The float value of the setting


/Site/dataobjects/SiteGadgetInstanceSettingValue.php at line 62

value_integer

public integer $value_integer

The integer value of the setting


/Site/dataobjects/SiteGadgetInstanceSettingValue.php at line 69

value_string

public string $value_string

The string value of the setting


/Site/dataobjects/SiteGadgetInstanceSettingValue.php at line 76

value_text

public string $value_text

The text value of the setting


Method Detail

/Site/dataobjects/SiteGadgetInstanceSettingValue.php at line 86

getValue

public mixed getValue(string type)


/Site/dataobjects/SiteGadgetInstanceSettingValue.php at line 214

init

protected void init()

/Site/dataobjects/SiteGadgetInstanceSettingValue.php at line 174

load

public boolean load(integer id, SiteInstance instance)

Loads this setting value

Parameters:
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.
Returns:
true if this setting value and false if it was not.

/Site/dataobjects/SiteGadgetInstanceSettingValue.php at line 127

setValue

public void setValue(string type, mixed value)


silverorange Code