Public Member Functions | |
| setFetchMode ($mode, $className=null) | |
| fetch ($mode=null, $className=null) | |
| numRows () | |
| isEmpty () | |
Data Fields | |
| const | FETCH_ASSOC = MYSQL_ASSOC |
| const | FETCH_NUM = MYSQL_NUM |
| const | FETCH_BOTH = MYSQL_BOTH |
| const | FETCH_OBJECT = 'FETCH_OBJECT' |
| const | FETCH_VALUE = 'FETCH_VALUE' |
| const | FETCH_COLUMN = 'FETCH_COLUMN' |
| const | FETCH_CLASS = 'FETCH_CLASS' |
Database_ResultSet generic interface
Definition at line 407 of file database.lib.php.
| fetch | ( | $ | mode = null, |
|
| $ | className = null | |||
| ) |
Get the next row in the Result Set
| string | $mode fetch mode (optional, use internal fetch mode : FETCH_ASSOC by default or set by setFetchMode()) | |
| string | class name used for the FETCH_CLASS mode, this class need to implement all the method in the Database_Object interface |
Implemented in Mysql_ResultSet.
| isEmpty | ( | ) |
| numRows | ( | ) |
| setFetchMode | ( | $ | mode, | |
| $ | className = null | |||
| ) |
Set fetch mode. If not set, the default mode is FETCH_ASSOC
| string | $mode fetch mode | |
| string | class name used for the FETCH_CLASS mode, this class need to implement all the method in the Database_Object interface |
Implemented in Mysql_ResultSet.
| const FETCH_ASSOC = MYSQL_ASSOC |
Associative array fetch mode constant, default mode if no one specified
Definition at line 412 of file database.lib.php.
| const FETCH_BOTH = MYSQL_BOTH |
Associative and numeric array fetch mode constant
Definition at line 422 of file database.lib.php.
| const FETCH_CLASS = 'FETCH_CLASS' |
Fetch the next rows as a new instance of the class name specified as the second argument of Database_ResultSet::setFetchMode
This class must implement the magic static __set_state method
Definition at line 446 of file database.lib.php.
| const FETCH_COLUMN = 'FETCH_COLUMN' |
Fetch the value of the first column of each row of the result set
Definition at line 437 of file database.lib.php.
| const FETCH_NUM = MYSQL_NUM |
Numeric index array fetch mode constant
Definition at line 417 of file database.lib.php.
| const FETCH_OBJECT = 'FETCH_OBJECT' |
Object fetch mode constant
Definition at line 427 of file database.lib.php.
| const FETCH_VALUE = 'FETCH_VALUE' |
Fetch the value of the first column of the first row of the result set
Definition at line 432 of file database.lib.php.
1.6.3