boolean createDBObject(
integer
$obj_no
)
|
|
Create data base object(PEAR)
Parameters:
|
integer |
$obj_no: |
Suffix für globale Variable |
boolean db_addField(
string
$table, array
&$fielddata
)
|
|
Interface function: insert field
Parameters:
|
string |
$table: |
|
|
array |
&$fielddata: |
|
API Tags:
boolean db_addIndex(
string
$table, array
&$index
)
|
|
Interface function: insert index
Parameters:
|
string |
$table: |
|
|
array |
&$index: |
|
API Tags:
boolean db_changeField(
string
$table, array
&$fielddata
)
|
|
Interface function: change field
Parameters:
|
string |
$table: |
|
|
array |
&$fielddata: |
|
API Tags:
boolean db_changeIndex(
string
$table, array
&$index
)
|
|
Interface function: change index
Parameters:
|
string |
$table: |
|
|
array |
&$index: |
|
API Tags:
boolean db_connect(
[integer
$obj_no = 0]
)
|
|
Connect to data base object
Parameters:
|
integer |
$obj_no: |
Suffix(Zähler) für globale Variable |
boolean db_createTable(
string
&$tabledata, string
$tableprefix
)
|
|
Interface function: create given table
Parameters:
|
string |
&$tabledata: |
|
|
string |
$tableprefix: |
|
API Tags:
mixed db_deleteRecord(
string
$table, string
$idfield, string
$value
)
|
|
Interface function: delete database record
Parameters:
|
string |
$table: |
table |
|
string |
$idfield: |
Index column |
|
string |
$value: |
index |
API Tags:
| Return: | false or number of affected_rows or database result object |
mixed db_deleteRecords(
string
$table, [string
$filter = '1=1']
)
|
|
Interface function: delete records
Parameters:
|
string |
$table: |
table |
|
string |
$filter: |
conditions |
API Tags:
| Return: | false or number of affected_rows or database result object |
boolean db_dropField(
string
$table, string
$field
)
|
|
Interface function: delete field
Parameters:
|
string |
$table: |
|
|
string |
$field: |
|
API Tags:
boolean db_dropIndex(
string
$table, string
$name
)
|
|
Interface function: delete index
Parameters:
|
string |
$table: |
|
|
string |
$name: |
|
API Tags:
mixed db_emptyTable(
string
$table
)
|
|
Interface function: delete ALL data in this table
Parameters:
API Tags:
| Return: | deleted record count or false |
mixed db_getSQLSource(
$function
$function
)
|
|
DBMS spezific SQL source
db_getSQLSource(function, param1, escaping, param2, escaping, ...)
Parameters:
|
$function |
$function: |
sql function |
API Tags:
| Return: | sql string or false |
| Access: | public |
mixed db_insertRecord(
string
$table, mixed
$idfield, [array
$values = NULL]
)
|
|
Interface function: create new record, return ID, set default values
Parameters:
|
string |
$table: |
table |
|
mixed |
$idfield: |
field with ID (or NULL) |
|
array |
$values: |
default values |
API Tags:
| Return: | false or Id of new record |
booolean db_insertRecords(
string
$table, array
$values
)
|
|
Interface function: insert records
Parameters:
|
string |
$table: |
table |
|
array |
$values: |
default values |
mixed db_query(
string
$sql, [mixed
$max = NULL], [mixed
$offset = NULL]
)
|
|
Interface function: submit database query
Parameters:
API Tags:
| Return: | false or number of affected_rows or database result object |
mixed db_queryFmt(
string
$sql, array
$vals, [integer
$max = NULL], [integer
$offset = NULL]
)
|
|
Interface function: escape params and submit query
Parameters:
|
string |
$sql: |
SQL-String |
|
array |
$vals: |
values |
|
integer |
$max: |
maximum number returned data sets |
|
integer |
$offset: |
Offset |
API Tags:
| Return: | false or number of affected_rows or database result object |
array db_queryTableNames(
)
|
|
Interface function: delete all table names
API Tags:
array db_queryTableStructure(
string
$tablename, [string
$tableprefix = '']
)
|
|
Interface function: table structur returned as array
Parameters:
|
string |
$tablename: |
tablename |
|
string |
$tableprefix: |
Prefix |
API Tags:
mixed db_updateRecord(
string
$table, array
$values, string
$idfield, string
$value
)
|
|
Interface function: change data record
Parameters:
|
string |
$table: |
table |
|
array |
$values: |
default value |
|
string |
$idfield: |
index column |
|
string |
$value: |
index |
API Tags:
| Return: | false or number of affected_rows or database result object |
mixed db_updateRecords(
string
$table, array
$values, [string
$filter = '1=1']
)
|
|
Interface function: change data records
Parameters:
|
string |
$table: |
table |
|
array |
$values: |
default values |
|
string |
$filter: |
conditions |
API Tags:
| Return: | false or number of affected_rows or database result object |
string escapeStr(
string
$str
)
|
|
Store string in sql for use
Parameters:
|
string |
$str: |
String, der esxaped werden soll. |