silverorange Code


Site.SiteInstanceWrapper
/Site/dataobjects/SiteInstanceWrapper.php at line 13

Class SiteInstanceWrapper

SwatObject
└─SwatDBRecordsetWrapper
└─SiteInstanceWrapper

public class SiteInstanceWrapper
extends SwatDBRecordsetWrapper

A recordset wrapper class for SiteInstance objects

Copyright:
2008 silverorange
License:
http://www.gnu.org/copyleft/lesser.html LGPL License 2.1
Todo:
Add lazy instantiation of records.

Fields inherited from SwatDB.SwatDBRecordsetWrapper
db, index_field, row_wrapper_class
Method Summary
protected void

init()

Initializes this recordset wrapper.

Methods inherited from SwatDB.SwatDBRecordsetWrapper
add, attachSubDataObjects, checkDB, count, current, delete, duplicate, getArray, getByIndex, getCount, getFirst, getIndexes, getInternalValues, init, instantiateRowWrapperObject, isModified, key, load, loadAllSubDataObjects, loadAllSubRecordsets, next, offsetExists, offsetGet, offsetSet, offsetUnset, reindex, remove, removeAll, removeByIndex, rewind, save, serialize, setDatabase, unserialize, valid

Method Detail

/Site/dataobjects/SiteInstanceWrapper.php at line 17

init

protected void init()

Initializes this recordset wrapper

Subclasses are encoraged to specify a SwatDBDataObject subclass as this recordset's row wrapper class. See SwatDBRecordsetWrapper::$row_wrapper_class.

Subclasses are also encoraged to specify an index field here. This enables lookup of records in this recordset by the index field value. See SwatDBRecordsetWrapper::$index_field.

Other initialization may be performed here. This method is the first thing called in the constructor.


silverorange Code