ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
class.ilADTExternalLinkDBBridge.php
Go to the documentation of this file.
1 <?php
2 
3 /* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
4 
12 {
18  protected function isValidADT(ilADT $a_adt)
19  {
20  return $a_adt instanceof ilADTExternalLink;
21  }
22 
27  public function readRecord(array $a_row)
28  {
29  $this->getADT()->setUrl($a_row[$this->getElementId() . '_value']);
30  $this->getADT()->setTitle($a_row[$this->getElementId() . '_title']);
31  }
32 
37  public function prepareInsert(array &$a_fields)
38  {
39  $a_fields[$this->getElementId() . '_value'] = ["text",$this->getADT()->getUrl()];
40  $a_fields[$this->getElementId() . '_title'] = ['text',$this->getADT()->getTitle()];
41  }
42 }
prepareInsert(array &$a_fields)
prepare insert
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.
Abstract external link db bridge.
isValidADT(ilADT $a_adt)
check valid type