ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilADTInternalLinkDBBridge.php
Go to the documentation of this file.
1 <?php
2 
3 declare(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 }
getElementId()
Get element id.
ADT base class.
Definition: class.ilADT.php:11
ADT DB bridge base class.
isValidADT(ilADT $a_adt)
check valid type
Abstract internal link db bridge.
prepareInsert(array &$a_fields)
prepare insert