ILIAS  release_7 Revision v7.30-3-g800a261c036
class.ilADTInternalLinkDBBridge.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
4
12{
18 protected function isValidADT(ilADT $a_adt)
19 {
20 return $a_adt instanceof ilADTInternalLink;
21 }
22
27 public function readRecord(array $a_row)
28 {
29 $this->getADT()->setTargetRefId($a_row[$this->getElementId()]);
30 }
31
36 public function prepareInsert(array &$a_fields)
37 {
38 $a_fields[$this->getElementId()] = ["integer",$this->getADT()->getTargetRefId()];
39 }
40}
An exception for terminatinating execution or to throw for unit testing.
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