ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
ADT DB bridge base class. More...
Public Member Functions | |
__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... | |
getActiveRecordFields () | |
Convert ADT to active record fields. More... | |
getFieldValue ($a_field_name) | |
Get field value. More... | |
setFieldValue ($a_field_name, $a_field_value) | |
Set field value. More... | |
Protected Member Functions | |
isValidADT (ilADT $a_adt) | |
Check if given ADT is valid. More... | |
setADT (ilADT $a_adt) | |
Set ADT. More... | |
Protected Attributes | |
$adt | |
$id | |
$tabe | |
$primary = [] | |
ADT DB bridge base class.
Definition at line 13 of file class.ilADTActiveRecordBridge.php.
ilADTActiveRecordBridge::__construct | ( | ilADT | $a_adt | ) |
Constructor.
ilADT | $a_adt |
Definition at line 26 of file class.ilADTActiveRecordBridge.php.
References isValidADT(), and setADT().
|
abstract |
Convert ADT to active record fields.
Referenced by getPrimary().
ilADTActiveRecordBridge::getADT | ( | ) |
Get ADT.
Definition at line 66 of file class.ilADTActiveRecordBridge.php.
References $adt.
Referenced by ilADTTextActiveRecordBridge\getActiveRecordFields(), ilADTTextActiveRecordBridge\getFieldValue(), ilADTGroupActiveRecordBridge\prepareElements(), and ilADTTextActiveRecordBridge\setFieldValue().
ilADTActiveRecordBridge::getElementId | ( | ) |
Get element id.
Definition at line 106 of file class.ilADTActiveRecordBridge.php.
References $id.
Referenced by ilADTTextActiveRecordBridge\getActiveRecordFields().
|
abstract |
Get field value.
string | $a_field_name |
Referenced by getPrimary().
ilADTActiveRecordBridge::getPrimary | ( | ) |
Get primary fields.
Definition at line 126 of file class.ilADTActiveRecordBridge.php.
References $primary, getActiveRecordFields(), getFieldValue(), and setFieldValue().
ilADTActiveRecordBridge::getTable | ( | ) |
Get table name.
Definition at line 86 of file class.ilADTActiveRecordBridge.php.
References $table.
|
abstractprotected |
Check if given ADT is valid.
:TODO: This could be avoided with type-specifc constructors :TODO: bridge base class?
ilADT | $a_adt |
Referenced by __construct(), and setADT().
|
protected |
Set ADT.
Exception |
ilADT | $a_adt |
Definition at line 52 of file class.ilADTActiveRecordBridge.php.
References isValidADT().
Referenced by __construct().
ilADTActiveRecordBridge::setElementId | ( | $a_value | ) |
Set element id (aka DB column[s] [prefix])
string | $a_value |
Definition at line 96 of file class.ilADTActiveRecordBridge.php.
|
abstract |
Set field value.
string | $a_field_name | |
mixed | $a_field_value |
Referenced by getPrimary().
ilADTActiveRecordBridge::setPrimary | ( | array | $a_value | ) |
Set primary fields (in MDB2 format)
array | $a_value |
Definition at line 116 of file class.ilADTActiveRecordBridge.php.
ilADTActiveRecordBridge::setTable | ( | $a_table | ) |
Set table name.
string | $a_table |
Definition at line 76 of file class.ilADTActiveRecordBridge.php.
|
protected |
Definition at line 15 of file class.ilADTActiveRecordBridge.php.
Referenced by getADT().
|
protected |
Definition at line 16 of file class.ilADTActiveRecordBridge.php.
Referenced by getElementId().
|
protected |
Definition at line 18 of file class.ilADTActiveRecordBridge.php.
Referenced by getPrimary().
|
protected |
Definition at line 17 of file class.ilADTActiveRecordBridge.php.