ILIAS
Release_5_0_x_branch Revision 61816
|
Public Member Functions | |
getElements () | |
getElement ($a_element_id) | |
setTable ($a_table) | |
Set table name. | |
setPrimary (array $a_value) | |
Set primary fields (in MDB2 format) | |
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. | |
getTable () | |
Get table name. | |
setElementId ($a_value) | |
Set element id (aka DB column[s] [prefix]) | |
getElementId () | |
Get element id. | |
getPrimary () | |
Get primary fields. | |
buildPrimaryWhere () | |
Convert primary keys array to sql string. | |
prepareUpdate (array &$a_fields) | |
Prepare ADT values for update. |
Protected Member Functions | |
isValidADT (ilADT $a_adt) | |
Check if given ADT is valid. | |
prepareElements () | |
Protected Member Functions inherited from ilADTDBBridge | |
setADT (ilADT $a_adt) | |
Set ADT. |
Protected Attributes | |
$elements | |
Protected Attributes inherited from ilADTDBBridge | |
$adt | |
$table | |
$id | |
$primary |
Definition at line 5 of file class.ilADTGroupDBBridge.php.
ilADTGroupDBBridge::afterDelete | ( | ) |
After delete hook to enable sub-tables.
Reimplemented from ilADTDBBridge.
Definition at line 116 of file class.ilADTGroupDBBridge.php.
References getElements().
ilADTGroupDBBridge::afterInsert | ( | ) |
After insert hook to enable sub-tables.
Reimplemented from ilADTDBBridge.
Definition at line 100 of file class.ilADTGroupDBBridge.php.
References getElements().
ilADTGroupDBBridge::afterUpdate | ( | ) |
After update hook to enable sub-tables.
Reimplemented from ilADTDBBridge.
Definition at line 108 of file class.ilADTGroupDBBridge.php.
References getElements().
ilADTGroupDBBridge::getElement | ( | $a_element_id | ) |
Definition at line 44 of file class.ilADTGroupDBBridge.php.
References getElements().
ilADTGroupDBBridge::getElements | ( | ) |
Definition at line 38 of file class.ilADTGroupDBBridge.php.
References $elements, and prepareElements().
Referenced by afterDelete(), afterInsert(), afterUpdate(), getElement(), prepareElements(), prepareInsert(), readRecord(), setPrimary(), and setTable().
|
protected |
Check if given ADT is valid.
:TODO: This could be avoided with type-specifc constructors :TODO: bridge base class?
ilADT | $a_adt |
Reimplemented from ilADTDBBridge.
Definition at line 9 of file class.ilADTGroupDBBridge.php.
|
protected |
Definition at line 17 of file class.ilADTGroupDBBridge.php.
References ilADTDBBridge\getADT(), getElements(), ilADTFactory\getInstance(), ilADTDBBridge\getPrimary(), and ilADTDBBridge\getTable().
Referenced by getElements().
ilADTGroupDBBridge::prepareInsert | ( | array & | $a_fields | ) |
Prepare ADT values for insert.
array | &$a_fields |
Reimplemented from ilADTDBBridge.
Definition at line 92 of file class.ilADTGroupDBBridge.php.
References getElements().
ilADTGroupDBBridge::readRecord | ( | array | $a_row | ) |
Import DB values to ADT.
array | $a_row |
Reimplemented from ilADTDBBridge.
Definition at line 84 of file class.ilADTGroupDBBridge.php.
References getElements().
ilADTGroupDBBridge::setPrimary | ( | array | $a_value | ) |
Set primary fields (in MDB2 format)
array | $a_value |
Reimplemented from ilADTDBBridge.
Definition at line 68 of file class.ilADTGroupDBBridge.php.
References ilADTDBBridge\getADT(), getElements(), and ilADTDBBridge\getPrimary().
Referenced by ilADTTest\initDBBridge().
ilADTGroupDBBridge::setTable | ( | $a_table | ) |
Set table name.
string | $a_table |
Reimplemented from ilADTDBBridge.
Definition at line 55 of file class.ilADTGroupDBBridge.php.
References ilADTDBBridge\getADT(), getElements(), and ilADTDBBridge\getTable().
Referenced by ilADTTest\initDBBridge().
|
protected |
Definition at line 7 of file class.ilADTGroupDBBridge.php.
Referenced by getElements().