Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.

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

(no description)

File Size: 276 lines (7 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 3 classes

ADODB_oci8po:: (6 methods):
  Param()
  Prepare()
  Execute()
  SelectLimit()
  _query()
  extractBinds()

Name:: (0 methods):

ADORecordset_oci8po:: (5 methods):
  Fields()
  _FetchField()
  MoveNext()
  GetArrayLimit()
  _fetch()


Class: ADODB_oci8po  - X-Ref

Param($name,$type='C')   X-Ref
No description

Prepare($sql,$cursor=false)   X-Ref
No description

Execute($sql,$inputarr=false)   X-Ref
No description

SelectLimit($sql, $nrows=-1, $offset=-1, $inputarr=false, $secs2cache=0)   X-Ref
The optimizations performed by ADODB_oci8::SelectLimit() are not
compatible with the oci8po driver, so we rely on the slower method
from the base class.
We can't properly handle prepared statements either due to preprocessing
of query parameters, so we treat them as regular SQL statements.


_query($sql,$inputarr=false)   X-Ref
No description

extractBinds($sql,$inputarr)   X-Ref
Replaces compatibility bind markers with oracle ones and returns a
valid sql statement

This replaces a regexp based section of code that has been subject
to numerous tweaks, as more extreme test cases have appeared. This
is now done this like this to help maintainability and avoid the
need to rely on regexp experienced maintainers

param: string        $sql        The sql statement
param: string[]    $inputarr    The bind array
return: string    The modified statement

Class: Name  - X-Ref

Class: ADORecordset_oci8po  - X-Ref

Fields($colname)   X-Ref
No description

_FetchField($fieldOffset = -1)   X-Ref
No description

MoveNext()   X-Ref
No description

GetArrayLimit($nrows,$offset=-1)   X-Ref
No description

_fetch()   X-Ref
No description