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

Defines 4 classes

ADODB_mssqlnative:: (36 methods):
  __construct()
  ServerVersion()
  ServerInfo()
  IfNull()
  _insertid()
  _affectedrows()
  GenID()
  CreateSequence()
  CreateSequence2008()
  CreateSequence2012()
  GenID2008()
  GenID2012()
  SQLDate()
  BeginTrans()
  CommitTrans()
  RollbackTrans()
  SetTransactionMode()
  RowLock()
  SelectDB()
  ErrorMsg()
  ErrorNo()
  _connect()
  _pconnect()
  Prepare()
  Concat()
  UpdateBlob()
  _query()
  _close()
  UnixDate()
  UnixTimeStamp()
  MetaIndexes()
  MetaForeignKeys()
  MetaDatabases()
  MetaPrimaryKeys()
  MetaTables()
  MetaColumns()

Name:: (0 methods):

ADORecordset_mssqlnative:: (12 methods):
  __construct()
  _initrs()
  NextRecordSet()
  Fields()
  _FetchField()
  FetchField()
  _seek()
  MoveNext()
  _fetch()
  _close()
  UnixDate()
  UnixTimeStamp()

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

Defines 3 functions


Class: ADODB_mssqlnative  - X-Ref

__construct()   X-Ref
No description

ServerVersion()   X-Ref
Initializes the SQL Server version.
Dies if connected to a non-supported version (2000 and older)


ServerInfo()   X-Ref
No description

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

_insertid()   X-Ref
No description

_affectedrows()   X-Ref
No description

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

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

CreateSequence2008($seq='adodbseq',$start=1)   X-Ref
For Server 2005,2008, duplicate a sequence with an identity table


CreateSequence2012($seq='adodbseq',$start=1)   X-Ref
Proper Sequences Only available to Server 2012 and up


GenID2008($seq='adodbseq',$start=1)   X-Ref
For Server 2005,2008, duplicate a sequence with an identity table


GenID2012($seq='adodbseq',$start=1)   X-Ref
Only available to Server 2012 and up
Cannot do this the normal adodb way by trapping an error if the
sequence does not exist because sql server will auto create a
sequence with the starting number of -9223372036854775808


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

SelectDB($dbName)   X-Ref
No description

ErrorMsg()   X-Ref
No description

ErrorNo()   X-Ref
No description

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

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

Prepare($sql)   X-Ref
No description

Concat()   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

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

MetaColumns($table, $upper=true, $schema=false)   X-Ref
No description

Class: Name  - X-Ref

Class: ADORecordset_mssqlnative  - 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

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_mssqlnative  - 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: