List of all members.
Detailed Description
parent class of all tables
Constructor & Destructor Documentation
WobTable::__construct |
( |
array $ |
data, |
|
|
$ |
isfromdb, |
|
|
$ |
table | |
|
) |
| | [protected] |
Member Function Documentation
WobTable::__get |
( |
$ |
name |
) |
|
returns the property/column
WobTable::__isset |
( |
$ |
name |
) |
|
checks whether a column exists
WobTable::__set |
( |
$ |
name, |
|
|
$ |
value | |
|
) |
| | |
WobTable::__unset |
( |
$ |
name |
) |
|
unsets column-properties to NULL
WobTable::createAudit |
( |
|
) |
[protected] |
overridden by woc, if this an auditable table; used in insert and update
WobTable::deleteFromDb |
( |
|
) |
|
deletes this instance from the database; returns true if it actually executed
WobTable::hasColumn |
( |
$ |
c |
) |
|
returns whether the table contains a specific column
WobTable::hasProperty |
( |
$ |
c |
) |
[abstract] |
overridden by woc, returns true if the property exists
insert the object under a new primary key value into the DB (implicitly calls newKey); returns true on success
WobTable::insertOrUpdate |
( |
|
) |
|
updates existing object in the database or inserts it if it does not exist in the DB yet
WobTable::isAuditable |
( |
|
) |
|
returns whether this is an auditable table
returns whether any property has changed since the last DB sync
WobTable::isColumnChanged |
( |
$ |
c |
) |
|
returns whether a specific column has changed since the last DB sync
generate a new primary key value for insert and marks the object as not yet in the DB; the default sets the primary key to NULL if it is a sequence; call the original first if you overwrite it
WobTable::resetAudit |
( |
|
) |
[protected] |
overridden in auditable implementations: resets the audit state
WobTable::revert |
( |
$ |
name |
) |
|
reverts changes to the property
reverts all changes to properties
WobTable::setFromArray |
( |
array $ |
data |
) |
|
returns the name of the table
updates the object in the database; returns true on success; fails if it did not come from the DB - use insertOrUpdate in this case; succeeds without asking the database if nothing has changed
returns the where clause to find this instance (via primary key columns)
Member Data Documentation
WobTable::$cdata [protected] |
WobTable::$data [protected] |
The documentation for this class was generated from the following file: