Site.SiteInstance
/Site/dataobjects/SiteInstance.php at line 14
Class SiteInstance
SwatObject
└─SwatDBDataObject
└─SiteInstance
public class SiteInstance
extends SwatDBDataObject
- Copyright:
- 2005-2007 silverorange
- License:
- http://www.gnu.org/copyleft/lesser.html LGPL License 2.1
- See Also:
- SiteMultipleInstanceModule
| Field Summary |
| integer |
$id Unique identifier. |
| string |
$shortname The shortname of this instance. |
| 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/SiteInstance.php at line 23
id
public integer $id
/Site/dataobjects/SiteInstance.php at line 30
shortname
public string $shortname
The shortname of this instance
Method Detail
/Site/dataobjects/SiteInstance.php at line 67
init
protected void init()
/Site/dataobjects/SiteInstance.php at line 83
loadConfigSettings
protected SiteInstanceConfigSettingWrapper loadConfigSettings()
Loads the config settings for this instance
- Returns:
- a recordset of config settings
/Site/dataobjects/SiteInstance.php at line 43
loadFromShortname
public boolean loadFromShortname(string shortname)
Loads a instance by its shortname
- Parameters:
shortname - the shortname of the instance to load.
- Returns:
- true if the instance was loaded successfully and false if it was not.
A dataobject class for site instances