* @copyright 2001-2006 VIKO team and contributors * @license http://www.gnu.org/licenses/gpl.html GPL 2.0 */ /** * This class is a subclass of TableAbstraction */ require_once 'TableAbstraction.php'; /** * Dummy child class to enable testing of TableAbstraction class. * * This class may be used as an example or template when creating * real subclasses of TableAbstraction. */ class TableAbstractionDummy extends TableAbstraction { /** * Sample of retrieving an attribute value */ function getField() { return $this->getAttribute("_field"); } /** * Sample of setting an attribute value */ function setField( $field ) { $this->_field = $field; } /** * Sample of reading from database record */ function readFromDatabaseRecord( $record ) { $this->_field = $record['field']; } /** * Sample of combining attributes into a database record */ function writeToDatabaseRecord() { return array( "field" => $this->_field ); } /** * Dummy table name */ function getTableName() { return "DummyTable"; } /** * Dummy ID field name */ function getIDFieldName() { return "dummy_id"; } } ?>