53 throw new Exception(
'ADTDBBridge Type mismatch.');
76 $this->table = (
string)$a_table;
96 $this->
id = (
string)$a_value;
116 $this->primary = $a_value;
141 foreach($this->primary as $field => $def)
143 $sql[] = $field.
"=".$ilDB->quote($def[1], $def[0]);
146 return implode(
" AND ", $sql);
setADT(ilADT $a_adt)
Set ADT.
setPrimary(array $a_value)
Set primary fields (in MDB2 format)
buildPrimaryWhere()
Convert primary keys array to sql string.
getTable()
Get table name.
Add rich text string
The name of the decorator.
getPrimary()
Get primary fields.
getElementId()
Get element id.
__construct(ilADT $a_adt)
Constructor.
ADT DB bridge base class.
afterInsert()
After insert hook to enable sub-tables.
readRecord(array $a_row)
Import DB values to ADT.
afterDelete()
After delete hook to enable sub-tables.
Create styles array
The data for the language used.
prepareInsert(array &$a_fields)
Prepare ADT values for insert.
setElementId($a_value)
Set element id (aka DB column[s] [prefix])
isValidADT(ilADT $a_adt)
Check if given ADT is valid.
setTable($a_table)
Set table name.
afterUpdate()
After update hook to enable sub-tables.
prepareUpdate(array &$a_fields)
Prepare ADT values for update.