Class DAO

Description

Data Access Object which inserts, updates and deletes thru every possible model

Data Access Object which inserts, updates and deletes thru every possible model

  • copyright: LGPL
  • version: Beta 2.0
  • since: 13th April, 2006
  • author: Hasin Hayder

Located in /helper/DAO.php (line 12)


	
			
Variable Summary
string $dbinfo
string $dbtype
object $model
Method Summary
data __construct ([object &$model = null], [mixed $dbinfo_class_name = "dbinfo"])
string aggregator (string $function, array $columns, table $table, [string $condition = null])
void delete (string $clause)
void execute (string $query)
void flush ()
string insert (void 0)
array selectBySQL (string $query)
string update (string $clause)
Variables
string $dbinfo (line 25)
  • access: private
  • since: PR 1.0
string $dbtype (line 31)
  • access: private
  • since: PR 1.0
object $model (line 19)
  • access: private
  • since: PR 1.0
Methods
Constructor __construct (line 43)

PHP5 Constructor

PHP5 Constructor function constructor load the model class and set it internally for reflection

  • return: access object
  • access: public
  • since: PR 1.0
data __construct ([object &$model = null], [mixed $dbinfo_class_name = "dbinfo"])
  • object $model
aggregator (line 255)

this function call any aggregate function and return teh result

this function call any aggregate function and return teh result

  • access: public
  • since: preview release 6.00
string aggregator (string $function, array $columns, table $table, [string $condition = null])
  • string $function: function name
  • array $columns: column names
  • table $table: name
  • string $condition: where clause
delete (line 185)

function delete()

function delete() just delete the record based on clause

  • access: public
  • since: PR 1.0
void delete (string $clause)
  • string $clause
execute (line 240)

just executes a query

just executes a query

  • access: public
  • since: Beta2
void execute (string $query)
  • string $query
flush (line 164)

just makes every variable of the model to empty

just makes every variable of the model to empty

  • access: private
  • since: PR 1.0
void flush ()
insert (line 68)

function insert()

function insert() this reflects the available properties in the class and iterates thru them then creates the insert query and then execute it via DataBaseConnector

  • access: public
  • since: PR 1.0
string insert (void 0)
  • void 0
selectBySQL (line 208)

function selectBySQL()

function selectBySQL() this function executes a query and return teh whole rowset in a array for best performance use LIMIT keyword

  • access: public
  • since: PR 1.0
array selectBySQL (string $query)
  • string $query
update (line 119)

function update()

function update() this reflects the available properties in the class and iterates thru them then creates the update query, only non-empty values and then execute it via DataBaseConnector

  • access: public
  • since: PR 1.0
string update (string $clause)
  • string $clause

Documentation generated on Sat, 15 Apr 2006 22:10:27 +0600 by phpDocumentor 1.3.0RC3