pgsql specific moodle recordset class
More...
pgsql specific moodle recordset class
- Copyright
- 2008 Petr Skoda (http://skodak.org)
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ __construct()
Build a new recordset to iterate over.
When using cursors, $result will be null initially.
- Parameters
-
resource | null | $result | A pg_query() result object to create a recordset from. |
pgsql_native_moodle_database | $db | Database object (only required when using cursors) |
string | $cursorname | Name of cursor or '' if none |
◆ close()
pgsql_native_moodle_recordset::close |
( |
| ) |
|
Did we reach the end?
- Return values
-
boolean | Free resources and connections, recordset can not be used anymore. |
void | |
Reimplemented from moodle_recordset.
◆ fetch_cursor_block()
pgsql_native_moodle_recordset::fetch_cursor_block |
( |
| ) |
|
|
protected |
Fetches the next block of data when using cursors.
- Exceptions
-
◆ rewind()
moodle_recordset::rewind |
( |
| ) |
|
|
inherited |
Returns current record - fields as object properties, lowercase.
- Return values
-
object | Returns the key of current row |
int | current row Moves forward to next row |
void | Rewinds are not supported! |
void | |
The documentation for this class was generated from the following file: