Handle and manage the reading of data from database.
This class only read data from a given database table with necessary ordering and filtering.
Located in /model/SqlRecordset.php (line 17)
miSqlRecordset constructor
Example:
Adds multiple filters
Adds join condition
Returns all fields of the recordset table(s) The result of the function is cached. Call only after all join conditions have been added.
Read all records from the database table The result is limited to the given filter clause and is returned in order specify by order clause
Read rows from a database table.
The result reply to the given filter clause and is returned in order specify by order clause
Example:
Read fixed number of rows from a given index in a database table.
The result reply to the given filter clause and is returned in order specify by order clause If both $fromIndex and $numRecords are false returns all records
Example:
Return the number of all rows in a database table that reply to the given filter clause
Example:
Returns the list of all selected fields An empty array is returned of no query has been executed
Returns the query to select all records for the recordset (without a LIMIT clause)
Return all the specified filter clauses as a string
Return all the specified HAVING filter clauses as a string
Return the limit as a sql code
Sets group by fields The param is directly added after the GROUP BY clause
Sets the names of the filters to be used in a HAVING clause instead of WHERE
Sets the field by which the result of the query will be ordered and the direction of ordering - ascending or descending.
Example:
Sets how many rows to be read from the databse
Example:
Sets the select fields Defaults to * (all columns)
Documentation generated on Thu, 08 May 2008 16:57:38 +0300 by phpDocumentor 1.4.1