ILIAS  release_8 Revision v8.24
class.ilADTInternalLinkDBBridge.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
5/* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
6
13{
19 protected function isValidADT(ilADT $a_adt): bool
20 {
21 return $a_adt instanceof ilADTInternalLink;
22 }
23
28 public function readRecord(array $a_row): void
29 {
30 $this->getADT()->setTargetRefId((int) $a_row[$this->getElementId()]);
31 }
32
37 public function prepareInsert(array &$a_fields): void
38 {
39 $a_fields[$this->getElementId()] = ["integer", $this->getADT()->getTargetRefId()];
40 }
41}
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:12