ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilADTInternalLinkDBBridge.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
27{
33 protected function isValidADT(ilADT $a_adt): bool
34 {
35 return $a_adt instanceof ilADTInternalLink;
36 }
37
42 public function readRecord(array $a_row): void
43 {
44 $this->getADT()->setTargetRefId((int) $a_row[$this->getElementId()]);
45 }
46
51 public function prepareInsert(array &$a_fields): void
52 {
53 $a_fields[$this->getElementId()] = ["integer", $this->getADT()->getTargetRefId()];
54 }
55}
ADT DB bridge base class.
getElementId()
Get element id.
Abstract internal link db bridge.
isValidADT(ilADT $a_adt)
check valid type
prepareInsert(array &$a_fields)
prepare insert
ADT base class.
Definition: class.ilADT.php:26