Object representing a database row (and extensible to represent joined rows)
Typical usage:
Located in /inc/formslib/dbrow.php (line 42)
DBO | --DBRow
Class | Description |
---|---|
BookingEntry | Booking entry object for creating/editing booking |
Consumable | Consumables object |
ConsumableUse | Use of Consumables object |
ClassCost | User/Instrument class matrix |
Group | Group editing object |
Instrument | Instrument object (extends dbo), with extra customisations for other links |
InstrumentClass | Instrument class name |
Project | Project object (extends dbo), with extra customisations for other links |
SpecialCost | Special costs for project/instrument usage editing |
User | User object (extends dbo), with extra customisations for other links |
UserClass | User class name |
Inherited from DBO
DBO::$changed
DBO::$DEBUG
DBO::$deletable
DBO::$dumpheader
DBO::$editable
DBO::$errorMessage
DBO::$fatal_sql
DBO::$fields
DBO::$id
DBO::$idfield
DBO::$idfieldreal
DBO::$ignoreId
DBO::$isValid
DBO::$namebase
DBO::$oob_errorMessage
DBO::$oob_status
DBO::$suppressValidation
DBO::$table
Create a new database row object
Add a new field to the row
Add an element into the fields[] array. The element must conform to the Fields class (or at least its interface!) as that will be assumed elsewhere in this object. Inheritable attributes are also set here.
Add multiple new fields to the row
Adds multiple elements into the fields[] array.
check the validity of the data
Delete this object's row from the database.
Display the row as a form in a table
Perform the SQL lookup to fill the object with the current data
Fill this object (i.e. its fields) from the SQL query
Set the value of the primary key (id) for this object
Synchronise this object's fields with the database
If the object is new, then INSERT the data, if the object is pre-existing then UPDATE the data. Fancier fields that are only pretending to do be simple fields (such as JOINed data) should perform their updates during the _sqlvals() call
Quick and dirty dump of fields (values only, not a full print_r
Update the object with the user-submitted data
update the value of each of the objects fields according to the user input data, and validate the data if appropriate
Generate name='value' data for the SQL statement
An alternative way of synchronising this object's fields with the database.
Using this approach, we:
PHP5 clone method
PHP5 clone statement will perform only a shallow copy of the object. Any subobjects must also be cloned
Inherited From DBO
DBO::DBO()
DBO::display()
DBO::log()
DBO::setEditable()
DBO::setNamebase()
DBO::text_dump()
DBO::__clone()
Documentation generated on Tue, 06 Mar 2007 10:01:22 +0000 by phpDocumentor 1.3.0