TYPO3 CMS  TYPO3_7-6
adodb-lib.inc.php File Reference

Go to the source code of this file.

Functions

 adodb_strip_order_by ($sql)
 
if(false) adodb_probetypes (&$array, &$types, $probe=8)
 
 adodb_transpose (&$arr, &$newarr, &$hdr, &$fobjs)
 
 _array_change_key_case ($an_array)
 
 _adodb_replace (&$zthis, $table, $fieldArray, $keyCol, $autoQuote, $has_autoinc)
 
 _adodb_getmenu (&$zthis, $name, $defstr='', $blank1stItem=true, $multiple=false, $size=0, $selectAttr='', $compareFields0=true)
 
 _adodb_getmenu_gp (&$zthis, $name, $defstr='', $blank1stItem=true, $multiple=false, $size=0, $selectAttr='', $compareFields0=true)
 
 _adodb_getcount (&$zthis, $sql, $inputarr=false, $secs2cache=0)
 
 _adodb_pageexecute_all_rows (&$zthis, $sql, $nrows, $page, $inputarr=false, $secs2cache=0)
 
 _adodb_pageexecute_no_last_page (&$zthis, $sql, $nrows, $page, $inputarr=false, $secs2cache=0)
 
 _adodb_getupdatesql (&$zthis, &$rs, $arrFields, $forceUpdate=false, $magicq=false, $force=2)
 
 adodb_key_exists ($key, &$arr, $force=2)
 
 _adodb_getinsertsql (&$zthis, &$rs, $arrFields, $magicq=false, $force=2)
 
 _adodb_column_sql_oci8 (&$zthis, $action, $type, $fname, $fnameq, $arrFields, $magicq)
 
 _adodb_column_sql (&$zthis, $action, $type, $fname, $fnameq, $arrFields, $magicq, $recurse=true)
 
 _adodb_debug_execute (&$zthis, $sql, $inputarr)
 
 _adodb_backtrace ($printOrArr=true, $levels=9999, $skippy=0, $ishtml=null)
 

Variables

global $ADODB_INCLUDED_LIB = 1
 

Function Documentation

◆ _adodb_backtrace()

_adodb_backtrace (   $printOrArr = true,
  $levels = 9999,
  $skippy = 0,
  $ishtml = null 
)

Definition at line 1156 of file adodb-lib.inc.php.

Referenced by _adodb_debug_execute().

◆ _adodb_column_sql()

_adodb_column_sql ( $zthis,
  $action,
  $type,
  $fname,
  $fnameq,
  $arrFields,
  $magicq,
  $recurse = true 
)

◆ _adodb_column_sql_oci8()

_adodb_column_sql_oci8 ( $zthis,
  $action,
  $type,
  $fname,
  $fnameq,
  $arrFields,
  $magicq 
)

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

Parameters
stringthe type of sql we are trying to create 'I' or 'U'.
stringcolumn data type from the db::MetaType() method
stringthe column name
arraythe column value
Returns
string

Definition at line 968 of file adodb-lib.inc.php.

References $sql, and _adodb_column_sql().

Referenced by _adodb_column_sql().

◆ _adodb_debug_execute()

_adodb_debug_execute ( $zthis,
  $sql,
  $inputarr 
)

Definition at line 1090 of file adodb-lib.inc.php.

References $sql, and _adodb_backtrace().

◆ _adodb_getcount()

_adodb_getcount ( $zthis,
  $sql,
  $inputarr = false,
  $secs2cache = 0 
)

Definition at line 400 of file adodb-lib.inc.php.

References $sql, and adodb_strip_order_by().

Referenced by _adodb_pageexecute_all_rows().

◆ _adodb_getinsertsql()

_adodb_getinsertsql ( $zthis,
$rs,
  $arrFields,
  $magicq = false,
  $force = 2 
)

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.

Definition at line 807 of file adodb-lib.inc.php.

References $rs, _adodb_column_sql(), _array_change_key_case(), and adodb_key_exists().

◆ _adodb_getmenu()

_adodb_getmenu ( $zthis,
  $name,
  $defstr = '',
  $blank1stItem = true,
  $multiple = false,
  $size = 0,
  $selectAttr = '',
  $compareFields0 = true 
)

Definition at line 216 of file adodb-lib.inc.php.

◆ _adodb_getmenu_gp()

_adodb_getmenu_gp ( $zthis,
  $name,
  $defstr = '',
  $blank1stItem = true,
  $multiple = false,
  $size = 0,
  $selectAttr = '',
  $compareFields0 = true 
)

Definition at line 302 of file adodb-lib.inc.php.

◆ _adodb_getupdatesql()

_adodb_getupdatesql ( $zthis,
$rs,
  $arrFields,
  $forceUpdate = false,
  $magicq = false,
  $force = 2 
)

◆ _adodb_pageexecute_all_rows()

_adodb_pageexecute_all_rows ( $zthis,
  $sql,
  $nrows,
  $page,
  $inputarr = false,
  $secs2cache = 0 
)

Definition at line 498 of file adodb-lib.inc.php.

References $sql, and _adodb_getcount().

◆ _adodb_pageexecute_no_last_page()

_adodb_pageexecute_no_last_page ( $zthis,
  $sql,
  $nrows,
  $page,
  $inputarr = false,
  $secs2cache = 0 
)

Definition at line 552 of file adodb-lib.inc.php.

References $sql.

◆ _adodb_replace()

_adodb_replace ( $zthis,
  $table,
  $fieldArray,
  $keyCol,
  $autoQuote,
  $has_autoinc 
)

is_numeric($v) /*and strncmp($v,"'",1) !== 0 – sql injection risk

Definition at line 136 of file adodb-lib.inc.php.

References $rs.

◆ _array_change_key_case()

_array_change_key_case (   $an_array)

◆ adodb_key_exists()

adodb_key_exists (   $key,
$arr,
  $force = 2 
)

Definition at line 787 of file adodb-lib.inc.php.

Referenced by _adodb_getinsertsql(), and _adodb_getupdatesql().

◆ adodb_probetypes()

if (false) adodb_probetypes ( $array,
$types,
  $probe = 8 
)

Definition at line 51 of file adodb-lib.inc.php.

◆ adodb_strip_order_by()

adodb_strip_order_by (   $sql)

Definition at line 20 of file adodb-lib.inc.php.

References $sql.

Referenced by _adodb_getcount().

◆ adodb_transpose()

adodb_transpose ( $arr,
$newarr,
$hdr,
$fobjs 
)

Definition at line 94 of file adodb-lib.inc.php.

Variable Documentation

◆ $ADODB_INCLUDED_LIB

$ADODB_INCLUDED_LIB = 1

Definition at line 5 of file adodb-lib.inc.php.