Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.

Differences Between: [Versions 310 and 401] [Versions 311 and 401] [Versions 39 and 401] [Versions 400 and 401] [Versions 401 and 402] [Versions 401 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: 172 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