ILIAS  trunk Revision v11.0_alpha-2645-g16283d3b3f8
class.ilADTFloatDBBridge.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 {
23  protected function isValidADT(ilADT $a_adt): bool
24  {
25  return ($a_adt instanceof ilADTFloat);
26  }
27 
28  public function readRecord(array $a_row): void
29  {
30  $this->getADT()->setNumber($a_row[$this->getElementId()]);
31  }
32 
33  public function prepareInsert(array &$a_fields): void
34  {
35  $a_fields[$this->getElementId()] = array("float", $this->getADT()->getNumber());
36  }
37 }
prepareInsert(array &$a_fields)
getElementId()
Get element id.
ADT base class.
Definition: class.ilADT.php:25
ADT DB bridge base class.