3 declare(strict_types=1);
18 if (count($this->elements)) {
22 $this->elements = array();
28 $this->elements[
$name] =
$factory->getDBBridgeForInstance($element);
29 $this->elements[
$name]->setElementId((
string)
$name);
46 if (array_key_exists($a_element_id, $this->
getElements())) {
47 return $this->elements[$a_element_id];
53 public function setTable(
string $a_table): void
55 parent::setTable($a_table);
56 if (count($this->elements)) {
65 parent::setPrimary($a_value);
67 if (count($this->elements)) {
79 $element->readRecord($a_row);
86 $element->prepareInsert($a_fields);
93 $element->afterInsert();
100 $element->afterUpdate();
111 $element = $this->
getElement((
string) $field_id);
115 $element->setPrimary(
119 $field_name => [$field_type, $field_id]
123 $element->setElementId((
string) $field_id);
124 $element->afterUpdate();
130 $element->afterDelete();
afterUpdateElement(string $field_type, string $field_name, int $field_id)
setPrimary(array $a_value)
getPrimary()
Get primary fields.
setTable(string $a_table)
ADT DB bridge base class.
getElement(string $a_element_id)
prepareInsert(array &$a_fields)