ILIAS  release_8 Revision v8.24
class.ilADTFloatDBBridge.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
6{
7 protected function isValidADT(ilADT $a_adt): bool
8 {
9 return ($a_adt instanceof ilADTFloat);
10 }
11
12 public function readRecord(array $a_row): void
13 {
14 $this->getADT()->setNumber($a_row[$this->getElementId()]);
15 }
16
17 public function prepareInsert(array &$a_fields): void
18 {
19 $a_fields[$this->getElementId()] = array("float", $this->getADT()->getNumber());
20 }
21}
ADT DB bridge base class.
getElementId()
Get element id.
readRecord(array $a_row)
Import DB values to ADT.
prepareInsert(array &$a_fields)
Prepare ADT values for insert.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
ADT base class.
Definition: class.ilADT.php:12