ILIAS  release_5-0 Revision 5.0.0-1144-gc4397b1f87
ilADTTextDBBridge Class Reference
+ Inheritance diagram for ilADTTextDBBridge:
+ Collaboration diagram for ilADTTextDBBridge:

Public Member Functions

 readRecord (array $a_row)
 
 prepareInsert (array &$a_fields)
 
- Public Member Functions inherited from ilADTDBBridge
 __construct (ilADT $a_adt)
 Constructor. More...
 
 getADT ()
 Get ADT. More...
 
 setTable ($a_table)
 Set table name. More...
 
 getTable ()
 Get table name. More...
 
 setElementId ($a_value)
 Set element id (aka DB column[s] [prefix]) More...
 
 getElementId ()
 Get element id. More...
 
 setPrimary (array $a_value)
 Set primary fields (in MDB2 format) More...
 
 getPrimary ()
 Get primary fields. More...
 
 buildPrimaryWhere ()
 Convert primary keys array to sql string. More...
 
 readRecord (array $a_row)
 Import DB values to ADT. More...
 
 prepareInsert (array &$a_fields)
 Prepare ADT values for insert. More...
 
 afterInsert ()
 After insert hook to enable sub-tables. More...
 
 prepareUpdate (array &$a_fields)
 Prepare ADT values for update. More...
 
 afterUpdate ()
 After update hook to enable sub-tables. More...
 
 afterDelete ()
 After delete hook to enable sub-tables. More...
 

Protected Member Functions

 isValidADT (ilADT $a_adt)
 
- Protected Member Functions inherited from ilADTDBBridge
 isValidADT (ilADT $a_adt)
 Check if given ADT is valid. More...
 
 setADT (ilADT $a_adt)
 Set ADT. More...
 

Additional Inherited Members

- Protected Attributes inherited from ilADTDBBridge
 $adt
 
 $table
 
 $id
 
 $primary
 

Detailed Description

Definition at line 5 of file class.ilADTTextDBBridge.php.

Member Function Documentation

◆ isValidADT()

ilADTTextDBBridge::isValidADT ( ilADT  $a_adt)
protected

Definition at line 7 of file class.ilADTTextDBBridge.php.

8  {
9  return ($a_adt instanceof ilADTText);
10  }

◆ prepareInsert()

ilADTTextDBBridge::prepareInsert ( array &  $a_fields)

Definition at line 19 of file class.ilADTTextDBBridge.php.

References ilADTDBBridge\getADT(), and ilADTDBBridge\getElementId().

20  {
21  $a_fields[$this->getElementId()] = array("text", $this->getADT()->getText());
22  }
getElementId()
Get element id.
+ Here is the call graph for this function:

◆ readRecord()

ilADTTextDBBridge::readRecord ( array  $a_row)

Definition at line 14 of file class.ilADTTextDBBridge.php.

References ilADTDBBridge\getADT(), and ilADTDBBridge\getElementId().

15  {
16  $this->getADT()->setText($a_row[$this->getElementId()]);
17  }
getElementId()
Get element id.
+ Here is the call graph for this function:

The documentation for this class was generated from the following file: