ILIAS  trunk Revision v11.0_alpha-1749-g1a06bdef097
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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 ()
 
 setTable (string $a_table)
 
 getTable ()
 
 setElementId (string $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...
 
 getAdditionalPrimaryFields ()
 
 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)
 
 afterUpdate ()
 After update hook to enable sub-tables. More...
 
 afterDelete ()
 After delete hook to enable sub-tables. More...
 
 supportsDefaultValueColumn ()
 true if table storage relies on the default 'value' column More...
 

Protected Member Functions

 isValidADT (ilADT $a_adt)
 
- Protected Member Functions inherited from ilADTDBBridge
 isValidADT (ilADT $a_adt)
 
 setADT (ilADT $a_adt)
 

Additional Inherited Members

- Protected Attributes inherited from ilADTDBBridge
ilADT $adt
 
string $table
 
string $id
 
array $primary = []
 
ilDBInterface $db
 

Detailed Description

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

Member Function Documentation

◆ isValidADT()

ilADTTextDBBridge::isValidADT ( ilADT  $a_adt)
protected

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

23  : bool
24  {
25  return ($a_adt instanceof ilADTText);
26  }

◆ prepareInsert()

ilADTTextDBBridge::prepareInsert ( array &  $a_fields)

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

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

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

◆ readRecord()

ilADTTextDBBridge::readRecord ( array  $a_row)

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

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

30  : void
31  {
32  $this->getADT()->setText($a_row[$this->getElementId()]);
33  }
getElementId()
Get element id.
+ Here is the call graph for this function:

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