ILIAS  release_8 Revision v8.24
class.ilADTBooleanDBBridge.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
9{
10 protected function isValidADT(ilADT $a_adt): bool
11 {
12 return ($a_adt instanceof ilADTBoolean);
13 }
14
15 // CRUD
16
17 public function readRecord(array $a_row): void
18 {
19 $this->getADT()->setStatus($a_row[$this->getElementId()]);
20 }
21
22 public function prepareInsert(array &$a_fields): void
23 {
24 $a_fields[$this->getElementId()] = array("integer", $this->getADT()->getStatus());
25 }
26}
Class ilADTBooleanDBBridge.
prepareInsert(array &$a_fields)
Prepare ADT values for insert.
readRecord(array $a_row)
Import DB values to ADT.
ADT DB bridge base class.
getElementId()
Get element id.
ADT base class.
Definition: class.ilADT.php:12