ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
class.ilADTIntegerDBBridge.php
Go to the documentation of this file.
1 <?php
2 
3 require_once "Services/ADT/classes/Bridges/class.ilADTDBBridge.php";
4 
6 {
7  protected function isValidADT(ilADT $a_adt)
8  {
9  return ($a_adt instanceof ilADTInteger);
10  }
11 
12 
13  // CRUD
14 
15  public function readRecord(array $a_row)
16  {
17  $this->getADT()->setNumber($a_row[$this->getElementId()]);
18  }
19 
20  public function prepareInsert(array &$a_fields)
21  {
22  $a_fields[$this->getElementId()] = array("integer", $this->getADT()->getNumber());
23  }
24 }
getElementId()
Get element id.
ADT base class.
Definition: class.ilADT.php:11
ADT DB bridge base class.
Create styles array
The data for the language used.