Abstract Class mosDBAbstractRow

Description

mosDBAbstractRow Abstract Class.

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

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


	
			
Direct descendents
Class Description
Abstract class mosDBTable mosDBTable Abstract Class.
 class mosTableEntry 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.
Variable Summary
 string $_error
 string $_tbl
 string $_tbl_key
Method Summary
 mosDBAbstractRow mosDBAbstractRow ([string $table = ''], [ $keyname = 'id'], [ $db = ''], string $key)
 boolean check ()
 bool lacks (string $property)
 void move ( $direction, [ $where = ''])
 void updateOrder ([string $where = ''], [ $cfid = null], [ $order = null])
Variables
string $_error = '' (line 643)
  • var: Error message
string $_tbl = '' (line 639)
  • var: Name of the table in the db schema relating to child class
string $_tbl_key = '' (line 641)
  • var: Name of the primary key field in the table
Methods
Constructor mosDBAbstractRow (line 652)

Object constructor to set table and key field

Can be overloaded/supplemented by the child class

mosDBAbstractRow mosDBAbstractRow ([string $table = ''], [ $keyname = 'id'], [ $db = ''], string $key)
  • string $table: name of the table in the db schema relating to child class
  • string $key: name of the primary key field in the table
  • $keyname
  • $db
check (line 665)

generic check method

can be overloaded/supplemented by the child class

  • return: True if the object is ok
boolean check ()

Redefined in descendants as:
lacks (line 674)

Checks if this object lacks the property given by the parameter

bool lacks (string $property)
  • string $property: The name of the property
move (line 686)
void move ( $direction, [ $where = ''])
  • $direction
  • $where
updateOrder (line 708)

Compacts the ordering sequence of the selected records

void updateOrder ([string $where = ''], [ $cfid = null], [ $order = null])
  • string $where: Additional conditions on WHERE clause to limit ordering to a particular subset of records
  • $cfid
  • $order

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