ILIAS
Release_5_0_x_branch Revision 61816
|
Public Member Functions | |
readRecord (array $a_row) | |
Import DB values to ADT. | |
prepareInsert (array &$a_fields) | |
Prepare ADT values for insert. | |
afterInsert () | |
After insert hook to enable sub-tables. | |
afterUpdate () | |
After update hook to enable sub-tables. | |
afterDelete () | |
After delete hook to enable sub-tables. | |
Public Member Functions inherited from ilADTDBBridge | |
__construct (ilADT $a_adt) | |
Constructor. | |
getADT () | |
Get ADT. | |
setTable ($a_table) | |
Set table name. | |
getTable () | |
Get table name. | |
setElementId ($a_value) | |
Set element id (aka DB column[s] [prefix]) | |
getElementId () | |
Get element id. | |
setPrimary (array $a_value) | |
Set primary fields (in MDB2 format) | |
getPrimary () | |
Get primary fields. | |
buildPrimaryWhere () | |
Convert primary keys array to sql string. | |
prepareUpdate (array &$a_fields) | |
Prepare ADT values for update. |
Protected Member Functions | |
getSubTableName () | |
Build sub-table name. | |
readMultiRecord ($a_set) | |
Import record-rows from sub-table. | |
prepareMultiInsert () | |
Build insert-fields for each "value". | |
Protected Member Functions inherited from ilADTDBBridge | |
isValidADT (ilADT $a_adt) | |
Check if given ADT is valid. | |
setADT (ilADT $a_adt) | |
Set ADT. |
Additional Inherited Members | |
Protected Attributes inherited from ilADTDBBridge | |
$adt | |
$table | |
$id | |
$primary |
Definition at line 5 of file class.ilADTMultiDBBridge.php.
ilADTMultiDBBridge::afterDelete | ( | ) |
After delete hook to enable sub-tables.
Reimplemented from ilADTDBBridge.
Definition at line 72 of file class.ilADTMultiDBBridge.php.
References $ilDB, ilADTDBBridge\buildPrimaryWhere(), and getSubTableName().
ilADTMultiDBBridge::afterInsert | ( | ) |
After insert hook to enable sub-tables.
Reimplemented from ilADTDBBridge.
Definition at line 43 of file class.ilADTMultiDBBridge.php.
References afterUpdate().
ilADTMultiDBBridge::afterUpdate | ( | ) |
After update hook to enable sub-tables.
Reimplemented from ilADTDBBridge.
Definition at line 48 of file class.ilADTMultiDBBridge.php.
References $ilDB, ilADTDBBridge\buildPrimaryWhere(), ilADTDBBridge\getPrimary(), getSubTableName(), and prepareMultiInsert().
Referenced by afterInsert().
|
protected |
Build sub-table name.
Definition at line 14 of file class.ilADTMultiDBBridge.php.
References ilADTDBBridge\getElementId(), and ilADTDBBridge\getTable().
Referenced by afterDelete(), and afterUpdate().
ilADTMultiDBBridge::prepareInsert | ( | array & | $a_fields | ) |
Prepare ADT values for insert.
array | &$a_fields |
Reimplemented from ilADTDBBridge.
Reimplemented in ilADTMultiEnumDBBridge.
Definition at line 38 of file class.ilADTMultiDBBridge.php.
|
abstractprotected |
Build insert-fields for each "value".
Reimplemented in ilADTMultiEnumDBBridge, and ilADTMultiTextDBBridge.
Referenced by afterUpdate().
|
abstractprotected |
Import record-rows from sub-table.
object | $a_set |
Reimplemented in ilADTMultiEnumDBBridge, and ilADTMultiTextDBBridge.
Referenced by readRecord().
ilADTMultiDBBridge::readRecord | ( | array | $a_row | ) |
Import DB values to ADT.
array | $a_row |
Reimplemented from ilADTDBBridge.
Reimplemented in ilADTMultiEnumDBBridge.
Definition at line 19 of file class.ilADTMultiDBBridge.php.
References $ilDB, and readMultiRecord().