ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilADTExternalLinkDBBridge.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 ilADTExternalLink;
36 }
37
42 public function readRecord(array $a_row): void
43 {
44 $this->getADT()->setUrl($a_row[$this->getElementId() . '_value']);
45 $this->getADT()->setTitle($a_row[$this->getElementId() . '_title']);
46 }
47
52 public function prepareInsert(array &$a_fields): void
53 {
54 $a_fields[$this->getElementId() . '_value'] = ["text", $this->getADT()->getUrl()];
55 $a_fields[$this->getElementId() . '_title'] = ['text', $this->getADT()->getTitle()];
56 }
57
61 public function supportsDefaultValueColumn(): bool
62 {
63 return false;
64 }
65}
ADT DB bridge base class.
getElementId()
Get element id.
Abstract external link db bridge.
isValidADT(ilADT $a_adt)
check valid type
prepareInsert(array &$a_fields)
prepare insert
ADT base class.
Definition: class.ilADT.php:26