ILIAS  release_8 Revision v8.24
class.ilADTIntegerDBBridge.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 ilADTInteger);
10 }
11
12 // CRUD
13
14 public function readRecord(array $a_row): void
15 {
16 $this->getADT()->setNumber($a_row[$this->getElementId()]);
17 }
18
19 public function prepareInsert(array &$a_fields): void
20 {
21 $a_fields[$this->getElementId()] = array("integer", $this->getADT()->getNumber());
22 }
23}
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