3 require_once
"Services/ADT/classes/Bridges/class.ilADTDBBridge.php";
19 if(
sizeof($this->elements))
24 $this->elements =
array();
31 $this->elements[$name] = $factory->getDBBridgeForInstance($element);
32 $this->elements[$name]->setElementId($name);
33 $this->elements[$name]->setTable($this->
getTable());
34 $this->elements[$name]->setPrimary($this->
getPrimary());
46 if(array_key_exists($a_element_id, $this->
getElements()))
48 return $this->elements[$a_element_id];
57 parent::setTable($a_table);
59 if(
sizeof($this->elements))
63 $this->elements[$name]->setTable($this->
getTable());
70 parent::setPrimary($a_value);
72 if(
sizeof($this->elements))
76 $this->elements[$name]->setPrimary($this->
getPrimary());
88 $element->readRecord($a_row);
96 $element->prepareInsert($a_fields);
104 $element->afterInsert();
112 $element->afterUpdate();
120 $element->afterDelete();
getElement($a_element_id)
setPrimary(array $a_value)
getTable()
Get table name.
getPrimary()
Get primary fields.
static getInstance()
Get singleton.
ADT DB bridge base class.
Create styles array
The data for the language used.
prepareInsert(array &$a_fields)