ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilADTBooleanDBBridge Class Reference

Class ilADTBooleanDBBridge. More...

+ Inheritance diagram for ilADTBooleanDBBridge:
+ Collaboration diagram for ilADTBooleanDBBridge:

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

Class ilADTBooleanDBBridge.

Definition at line 8 of file class.ilADTBooleanDBBridge.php.

Member Function Documentation

◆ isValidADT()

ilADTBooleanDBBridge::isValidADT ( ilADT  $a_adt)
protected

Definition at line 10 of file class.ilADTBooleanDBBridge.php.

10  : bool
11  {
12  return ($a_adt instanceof ilADTBoolean);
13  }

◆ prepareInsert()

ilADTBooleanDBBridge::prepareInsert ( array &  $a_fields)

Definition at line 22 of file class.ilADTBooleanDBBridge.php.

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

22  : void
23  {
24  $a_fields[$this->getElementId()] = array("integer", $this->getADT()->getStatus());
25  }
getElementId()
Get element id.
+ Here is the call graph for this function:

◆ readRecord()

ilADTBooleanDBBridge::readRecord ( array  $a_row)

Definition at line 17 of file class.ilADTBooleanDBBridge.php.

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

17  : void
18  {
19  $this->getADT()->setStatus($a_row[$this->getElementId()]);
20  }
getElementId()
Get element id.
+ Here is the call graph for this function:

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