ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilADTBooleanDBBridge.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
25{
26 protected function isValidADT(ilADT $a_adt): bool
27 {
28 return ($a_adt instanceof ilADTBoolean);
29 }
30
31 // CRUD
32
33 public function readRecord(array $a_row): void
34 {
35 $this->getADT()->setStatus($a_row[$this->getElementId()]);
36 }
37
38 public function prepareInsert(array &$a_fields): void
39 {
40 $a_fields[$this->getElementId()] = array("integer", $this->getADT()->getStatus());
41 }
42}
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:26