Class mosTableEntry

Description

Abstract class for classes where the objects of the class can be relatively easily stored in a single database table. Can usually be adapted to more complex cases.

Requires child classes to implement: tableName(), notSQL(). tableName() must return the name of the database table, using #__ in the usual Mambo way notSQL() must return an array of strings, where each string is the name of a variable that is NOT in the database table, or is not written explicitly, e.g. the auto-increment key. If this is the ONLY non-SQL field, then the child class need not implement it, as that it is already in the abstract class. Child classes may implement timeStampField, in which case it must return the name of a field that will have a timestamp placed in it whenever the DB is written.

  • author: Martin Brampton counterpoint@mambo-foundation.org

Located in /includes/database.php (line 1005)

mosDBAbstractRow
   |
   --mosTableEntry
Direct descendents
Class Description
 class mosContainer Abstract class for classes where the objects of the class can be relatively easily stored in a single database table. Can usually be adapted to more complex cases.
Method Summary
 void addPostData ()
 void delete ()
 void forceBools ()
 void insertSQL ()
 void notSQL ()
 void prepareValues ()
 void readDataBase ( $sql)
 void setValues ( &$anObject)
 void timeStampField ()
 void updateObjectDB ()
 void updateSQL ()
Variables
Methods
addPostData (line 1008)
void addPostData ()
delete (line 1031)
void delete ()
forceBools (line 1019)
void forceBools ()
insertSQL (line 1063)
void insertSQL ()
notSQL (line 1058)
void notSQL ()

Redefined in descendants as:
prepareValues (line 1089)
void prepareValues ()
readDataBase (line 1097)
void readDataBase ( $sql)
  • $sql
setValues (line 1082)
void setValues ( &$anObject)
  • &$anObject
timeStampField (line 1039)
void timeStampField ()
updateObjectDB (line 1024)
void updateObjectDB ()
updateSQL (line 1044)
void updateSQL ()

Inherited Methods

Inherited From mosDBAbstractRow

 mosDBAbstractRow::mosDBAbstractRow()
 mosDBAbstractRow::check()
 mosDBAbstractRow::lacks()
 mosDBAbstractRow::move()
 mosDBAbstractRow::updateOrder()

Documentation generated on Mon, 05 May 2008 16:19:11 +0400 by phpDocumentor 1.4.0