ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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 }
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