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.

Functions that are not part of a class:

adodb_strip_order_by($sql)   X-Ref
No description

adodb_probetypes(&$array,&$types,$probe=8)   X-Ref
No description

adodb_transpose(&$arr, &$newarr, &$hdr, &$fobjs)   X-Ref
No description

_array_change_key_case($an_array)   X-Ref
No description

_adodb_replace(&$zthis, $table, $fieldArray, $keyCol, $autoQuote, $has_autoinc)   X-Ref
No description

_adodb_getmenu(&$zthis, $name,$defstr='',$blank1stItem=true,$multiple=false,$size=0, $selectAttr='',$compareFields0=true)   X-Ref
No description

_adodb_getmenu_gp(&$zthis, $name,$defstr='',$blank1stItem=true,$multiple=false,$size=0, $selectAttr='',$compareFields0=true)   X-Ref
No description

_adodb_getmenu_select($name, $defstr = '', $blank1stItem = true,$multiple = false, $size = 0, $selectAttr = '')   X-Ref
Generate the opening SELECT tag for getmenu functions.

ADOdb internal function, used by _adodb_getmenu() and _adodb_getmenu_gp().

param: string $name
param: string $defstr
param: bool   $blank1stItem
param: bool   $multiple
param: int    $size
param: string $selectAttr
return: string HTML

_adodb_getmenu_option($defstr, $compare, $value, $display)   X-Ref
Print the OPTION tags for getmenu functions.

ADOdb internal function, used by _adodb_getmenu() and _adodb_getmenu_gp().

param: string $defstr  Default values
param: string $compare Value to compare against defaults
param: string $value   Ready-to-print `value="xxx"` (or empty) string
param: string $display Display value
return: string HTML

_adodb_getcount(&$zthis, $sql,$inputarr=false,$secs2cache=0)   X-Ref
No description

_adodb_pageexecute_all_rows(&$zthis, $sql, $nrows, $page,$inputarr=false, $secs2cache=0)   X-Ref
No description

_adodb_pageexecute_no_last_page(&$zthis, $sql, $nrows, $page, $inputarr=false, $secs2cache=0)   X-Ref
No description

_adodb_getupdatesql(&$zthis,&$rs, $arrFields,$forceUpdate=false,$magicq=false,$force=2)   X-Ref
No description

adodb_key_exists($key, &$arr,$force=2)   X-Ref
No description

_adodb_getinsertsql(&$zthis,&$rs,$arrFields,$magicq=false,$force=2)   X-Ref
There is a special case of this function for the oci8 driver.
The proper way to handle an insert w/ a blob in oracle requires
a returning clause with bind variables and a descriptor blob.


_adodb_column_sql_oci8(&$zthis,$action, $type, $fname, $fnameq, $arrFields, $magicq)   X-Ref
This private method is used to help construct
the update/sql which is generated by GetInsertSQL and GetUpdateSQL.
It handles the string construction of 1 column -> sql string based on
the column type.  We want to do 'safe' handling of BLOBs

param: string the type of sql we are trying to create
param: string column data type from the db::MetaType() method
param: string the column name
param: array the column value
return: string

_adodb_column_sql(&$zthis, $action, $type, $fname, $fnameq, $arrFields, $magicq, $recurse=true)   X-Ref
No description

_adodb_debug_execute(&$zthis, $sql, $inputarr)   X-Ref
No description

_adodb_backtrace($printOrArr=true,$levels=9999,$skippy=0,$ishtml=null)   X-Ref
No description