Method | Description | |
---|---|---|
__construct ( $dbconnexion, $table, $crit = "", $debug = false ) | Constructor | |
__destruct ( ) | ||
current ( ) | ||
getSql ( ) | Retrieve the SQL statement | |
key ( ) | ||
next ( ) | ||
numrows ( ) | ||
rewind ( ) | ||
valid ( ) |
Method | Description | |
---|---|---|
analyseCrit ( array $crit, string $bool = "AND" ) : string | Generate the SQL statement for a array of criteria | |
quoteName ( string $name ) : string | Quote field name |
public __construct ( $dbconnexion, $table, $crit = "", $debug = false ) | ||
$dbconnexion | Database Connnexion (must be a CommonDBTM object) | |
$table | string or array table name (optional when $crit have FROM entry) | |
$crit | string or array of filed/values, ex array("id"=>1), if empty => all rows (default '') | |
$debug | for log the request (default false) |