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 311] [Versions 310 and 400] [Versions 310 and 401] [Versions 310 and 402] [Versions 310 and 403]

(no description)

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

Defines 4 classes

ADODB_mysqli:: (37 methods):
  __construct()
  SetTransactionMode()
  _connect()
  _pconnect()
  _nconnect()
  IfNull()
  GetOne()
  ServerInfo()
  BeginTrans()
  CommitTrans()
  RollbackTrans()
  RowLock()
  qstr()
  _insertid()
  _affectedrows()
  CreateSequence()
  GenID()
  MetaDatabases()
  MetaIndexes()
  SQLDate()
  Concat()
  OffsetDate()
  MetaProcedures()
  MetaTables()
  MetaForeignKeys()
  MetaColumns()
  SelectDB()
  SelectLimit()
  Prepare()
  _query()
  ErrorMsg()
  ErrorNo()
  _close()
  CharMax()
  TextMax()
  GetCharSet()
  SetCharSet()

Name:: (0 methods):

ADORecordSet_mysqli:: (11 methods):
  __construct()
  _initrs()
  FetchField()
  GetRowAssoc()
  Fields()
  _seek()
  NextRecordSet()
  MoveNext()
  _fetch()
  _close()
  MetaType()

ADORecordSet_array_mysqli:: (2 methods):
  __construct()
  MetaType()


Class: ADODB_mysqli  - X-Ref

__construct()   X-Ref
No description

SetTransactionMode( $transaction_mode )   X-Ref
No description

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

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

_nconnect($argHostname, $argUsername, $argPassword, $argDatabasename)   X-Ref
No description

IfNull( $field, $ifNull )   X-Ref
No description

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

ServerInfo()   X-Ref
No description

BeginTrans()   X-Ref
No description

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

RollbackTrans()   X-Ref
No description

RowLock($tables,$where='',$col='1 as adodbignore')   X-Ref
No description

qstr($s, $magic_quotes = false)   X-Ref
Quotes a string to be sent to the database
When there is no active connection,

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

_insertid()   X-Ref
No description

_affectedrows()   X-Ref
No description

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

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

MetaDatabases()   X-Ref
No description

MetaIndexes($table, $primary = FALSE, $owner = false)   X-Ref
No description

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

Concat()   X-Ref
No description

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

MetaProcedures($NamePattern = false, $catalog = null, $schemaPattern = null)   X-Ref
No description

MetaTables($ttype=false,$showSchema=false,$mask=false)   X-Ref
Retrieves a list of tables based on given criteria

param: string $ttype Table type = 'TABLE', 'VIEW' or false=both (default)
param: string $showSchema schema name, false = current schema (default)
param: string $mask filters the table by name
return: array list of tables

MetaForeignKeys( $table, $owner = FALSE, $upper = FALSE, $associative = FALSE )   X-Ref
No description

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

SelectDB($dbName)   X-Ref
No description

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

Prepare($sql)   X-Ref
No description

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

ErrorMsg()   X-Ref
No description

ErrorNo()   X-Ref
No description

_close()   X-Ref
No description

CharMax()   X-Ref
No description

TextMax()   X-Ref
No description

GetCharSet()   X-Ref
No description

SetCharSet($charset_name)   X-Ref
No description

Class: Name  - X-Ref

Class: ADORecordSet_mysqli  - X-Ref

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

_initrs()   X-Ref
No description

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

GetRowAssoc($upper = ADODB_ASSOC_CASE)   X-Ref
No description

Fields($colname)   X-Ref
No description

_seek($row)   X-Ref
No description

NextRecordSet()   X-Ref
No description

MoveNext()   X-Ref
No description

_fetch()   X-Ref
No description

_close()   X-Ref
No description

MetaType($t, $len = -1, $fieldobj = false)   X-Ref
No description

Class: ADORecordSet_array_mysqli  - X-Ref

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

MetaType($t, $len = -1, $fieldobj = false)   X-Ref
No description