Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.2.x will end 22 April 2024 (12 months).
  • Bug fixes for security issues in 4.2.x will end 7 October 2024 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.1.x is supported too.

Differences Between: [Versions 310 and 402] [Versions 311 and 402] [Versions 39 and 402] [Versions 400 and 402] [Versions 401 and 402]

Native postgresql recordset.

Copyright: 2008 Petr Skoda (http://skodak.org)
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 173 lines (5 kb)
Included or required: 1 time
Referenced: 0 times
Includes or requires: 1 file
 lib/dml/moodle_recordset.php

Defines 1 class

pgsql_native_moodle_recordset:: (9 methods):
  __construct()
  fetch_cursor_block()
  __destruct()
  fetch_next()
  current()
  key()
  next()
  valid()
  close()


Class: pgsql_native_moodle_recordset  - X-Ref

pgsql specific moodle recordset class

__construct($result, pgsql_native_moodle_database $db = null, $cursorname = '')   X-Ref
Build a new recordset to iterate over.

When using cursors, $result will be null initially.

param: resource|PgSql\Result|null $result A pg_query() result object to create a recordset from.
param: pgsql_native_moodle_database $db Database object (only required when using cursors)
param: string $cursorname Name of cursor or '' if none

fetch_cursor_block()   X-Ref
Fetches the next block of data when using cursors.


__destruct()   X-Ref
No description

fetch_next()   X-Ref
No description

current()   X-Ref
No description

key()   X-Ref
No description

next()   X-Ref
No description

valid()   X-Ref
No description

close()   X-Ref
No description