Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 3.9.x will end* 10 May 2021 (12 months).
  • Bug fixes for security issues in 3.9.x will end* 8 May 2023 (36 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 39 and 311] [Versions 39 and 400] [Versions 39 and 401] [Versions 39 and 402] [Versions 39 and 403]

(no description)

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

Defines 5 classes

ADODB_pdo:: (31 methods):
  __construct()
  _UpdatePDO()
  Time()
  _connect()
  Concat()
  _pconnect()
  SelectLimit()
  ServerInfo()
  MetaTables()
  MetaColumns()
  InParameter()
  OffsetDate()
  SelectDB()
  SQLDate()
  ErrorMsg()
  ErrorNo()
  SetAutoCommit()
  SetTransactionMode()
  BeginTrans()
  CommitTrans()
  RollbackTrans()
  Prepare()
  PrepareStmt()
  CreateSequence()
  DropSequence()
  GenID()
  _query()
  _close()
  _affectedrows()
  _insertid()
  qstr()

ADODB_pdo_base:: (5 methods):
  _init()
  ServerInfo()
  SelectLimit()
  MetaTables()
  MetaColumns()

ADOPDOStatement:: (7 methods):
  __construct()
  Execute()
  InParameter()
  Affected_Rows()
  ErrorMsg()
  NumCols()
  ErrorNo()

Name:: (0 methods):

ADORecordSet_pdo:: (8 methods):
  __construct()
  Init()
  _initrs()
  FetchField()
  _seek()
  _fetch()
  _close()
  Fields()

Defines 8 functions


Class: ADODB_pdo  - X-Ref

__construct()   X-Ref
No description

_UpdatePDO()   X-Ref
No description

Time()   X-Ref
No description

_connect($argDSN, $argUsername, $argPassword, $argDatabasename, $persist=false)   X-Ref
No description

Concat()   X-Ref
No description

_pconnect($argDSN, $argUsername, $argPassword, $argDatabasename)   X-Ref
No description

SelectLimit($sql,$nrows=-1,$offset=-1,$inputarr=false,$secs2cache=0)   X-Ref
No description

ServerInfo()   X-Ref
No description

MetaTables($ttype=false,$showSchema=false,$mask=false)   X-Ref
No description

MetaColumns($table,$normalize=true)   X-Ref
No description

InParameter(&$stmt,&$var,$name,$maxLen=4000,$type=false)   X-Ref
No description

OffsetDate($dayFraction,$date=false)   X-Ref
No description

SelectDB($dbName)   X-Ref
No description

SQLDate($fmt, $col=false)   X-Ref
No description

ErrorMsg()   X-Ref
No description

ErrorNo()   X-Ref
No description

SetAutoCommit($auto_commit)   X-Ref

param: bool $auto_commit
return: void

SetTransactionMode($transaction_mode)   X-Ref
No description

BeginTrans()   X-Ref
No description

CommitTrans($ok=true)   X-Ref
No description

RollbackTrans()   X-Ref
No description

Prepare($sql)   X-Ref
No description

PrepareStmt($sql)   X-Ref
No description

CreateSequence($seqname='adodbseq',$startID=1)   X-Ref
No description

DropSequence($seqname='adodbseq')   X-Ref
No description

GenID($seqname='adodbseq',$startID=1)   X-Ref
No description

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

_close()   X-Ref
No description

_affectedrows()   X-Ref
No description

_insertid()   X-Ref
No description

qstr($s, $magic_quotes = false)   X-Ref
Quotes a string to be sent to the database.
If we have an active connection, delegates quoting to the underlying
PDO object. Otherwise, replace "'" by the value of $replaceQuote (same
behavior as mysqli driver)

param: string  $s            The string to quote
param: boolean $magic_quotes If false, use PDO::quote().
return: string Quoted string

Class: ADODB_pdo_base  - X-Ref

_init($parentDriver)   X-Ref
No description

ServerInfo()   X-Ref
No description

SelectLimit($sql,$nrows=-1,$offset=-1,$inputarr=false,$secs2cache=0)   X-Ref
No description

MetaTables($ttype=false,$showSchema=false,$mask=false)   X-Ref
No description

MetaColumns($table,$normalize=true)   X-Ref
No description

Class: ADOPDOStatement  - X-Ref

__construct($stmt,$connection)   X-Ref
No description

Execute($inputArr=false)   X-Ref
No description

InParameter(&$var,$name,$maxLen=4000,$type=false)   X-Ref
No description

Affected_Rows()   X-Ref
No description

ErrorMsg()   X-Ref
No description

NumCols()   X-Ref
No description

ErrorNo()   X-Ref
No description

Class: Name  - X-Ref

Class: ADORecordSet_pdo  - X-Ref

__construct($id,$mode=false)   X-Ref
No description

Init()   X-Ref
No description

_initrs()   X-Ref
No description

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

_seek($row)   X-Ref
No description

_fetch()   X-Ref
No description

_close()   X-Ref
No description

Fields($colname)   X-Ref
No description

Functions that are not part of a class:

adodb_pdo_type($t)   X-Ref
No description