Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.10.x will end 8 November 2021 (12 months).
  • Bug fixes for security issues in 3.10.x will end 9 May 2022 (18 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.

Differences Between: [Versions 310 and 400] [Versions 310 and 401] [Versions 310 and 402] [Versions 310 and 403]

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: 171 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|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