PHP Class DBmysqlIterator, glpi

Inheritance: implements Iterator
Mostra file Open project: glpi-project/glpi Class Usage Examples

Public Methods

Method Description
__construct ( $dbconnexion, $table, $crit = "", $debug = false ) Constructor
__destruct ( )
current ( )
getSql ( ) Retrieve the SQL statement
key ( )
next ( )
numrows ( )
rewind ( )
valid ( )

Private Methods

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

Method Details

__construct() public method

Constructor
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)

__destruct() public method

public __destruct ( )

current() public method

public current ( )

getSql() public method

Retrieve the SQL statement
Since: 9.1
public getSql ( )

key() public method

public key ( )

next() public method

public next ( )

numrows() public method

public numrows ( )

rewind() public method

public rewind ( )

valid() public method

public valid ( )