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: 1194 lines (35 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 4 classes

ADODB_mssql:: (36 methods):
  __construct()
  ServerInfo()
  IfNull()
  _insertid()
  qstr()
  _affectedrows()
  CreateSequence()
  GenID()
  SelectLimit()
  SQLDate()
  BeginTrans()
  CommitTrans()
  RollbackTrans()
  SetTransactionMode()
  RowLock()
  MetaColumns()
  MetaIndexes()
  MetaForeignKeys()
  MetaDatabases()
  MetaPrimaryKeys()
  MetaTables()
  SelectDB()
  ErrorMsg()
  ErrorNo()
  _connect()
  _pconnect()
  _nconnect()
  Prepare()
  PrepareSP()
  Concat()
  Parameter()
  UpdateBlob()
  _query()
  _close()
  UnixDate()
  UnixTimeStamp()

Name:: (0 methods):

ADORecordset_mssql:: (11 methods):
  __construct()
  _initrs()
  NextRecordSet()
  Fields()
  FetchField()
  _seek()
  MoveNext()
  _fetch()
  _close()
  UnixDate()
  UnixTimeStamp()

ADORecordSet_array_mssql:: (3 methods):
  __construct()
  UnixDate()
  UnixTimeStamp()

Defines 3 functions


Class: ADODB_mssql  - X-Ref

__construct()   X-Ref
No description

ServerInfo()   X-Ref
No description

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

_insertid()   X-Ref
No description

qstr($s,$magic_quotes=false)   X-Ref
Correctly quotes a string so that all strings are escaped. We prefix and append
to the string single-quotes.
An example is  $db->qstr("Don't bother",magic_quotes_runtime());

param: s         the string to quote
param: [magic_quotes]    if $s is GET/POST var, set to get_magic_quotes_gpc().
return: quoted string to be sent back to database

_affectedrows()   X-Ref
No description

CreateSequence($seq='adodbseq',$start=1)   X-Ref
No description

GenID($seq='adodbseq',$start=1)   X-Ref
No description

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

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

BeginTrans()   X-Ref
No description

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

RollbackTrans()   X-Ref
No description

SetTransactionMode( $transaction_mode )   X-Ref
No description

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

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

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

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

MetaDatabases()   X-Ref
No description

MetaPrimaryKeys($table, $owner=false)   X-Ref
No description

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

SelectDB($dbName)   X-Ref
No description

ErrorMsg()   X-Ref
No description

ErrorNo()   X-Ref
No description

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

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

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

Prepare($sql)   X-Ref
No description

PrepareSP($sql,$param=true)   X-Ref
No description

Concat()   X-Ref
No description

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

UpdateBlob($table,$column,$val,$where,$blobtype='BLOB')   X-Ref
No description

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

_close()   X-Ref
No description

UnixDate($v)   X-Ref
No description

UnixTimeStamp($v)   X-Ref
No description

Class: Name  - X-Ref

Class: ADORecordset_mssql  - X-Ref

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

_initrs()   X-Ref
No description

NextRecordSet()   X-Ref
No description

Fields($colname)   X-Ref
No description

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

_seek($row)   X-Ref
No description

MoveNext()   X-Ref
No description

_fetch($ignore_fields=false)   X-Ref
No description

_close()   X-Ref
No description

UnixDate($v)   X-Ref
No description

UnixTimeStamp($v)   X-Ref
No description

Class: ADORecordSet_array_mssql  - X-Ref

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

UnixDate($v)   X-Ref
No description

UnixTimeStamp($v)   X-Ref
No description

Functions that are not part of a class: