3require_once
"Services/ADT/classes/Bridges/class.ilADTMultiDBBridge.php";
22 $this->db =
$DIC->database();
38 $this->fake_single = (bool) $a_status;
72 'delete from ' . $this->
getTable() .
' ' .
83 $num_row = $this->db->insert($this->
getTable(), $fields);
An exception for terminatinating execution or to throw for unit testing.
ADT DB bridge base class.
getElementId()
Get element id.
getPrimary()
Get primary fields.
buildPrimaryWhere()
Convert primary keys array to sql string.
getTable()
Get table name.
supportsDefaultValueColumn()
true if table storage relies on the default 'value' column
prepareInsert(array &$a_fields)
Prepare ADT values for insert.
__construct(ilADT $a_adt)
Constructor.
isValidADT(ilADT $a_adt)
Check if given ADT is valid.
afterInsert()
After insert hook to enable sub-tables.
readRecord(array $a_row)
Import DB values to ADT.
afterUpdate()
After update hook to enable sub-tables.
static getLogger($a_component_id)
Get component logger.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc