|
ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
ADT DB bridge base class. More...
Inheritance diagram for ilADTActiveRecordBridge:
Collaboration diagram for ilADTActiveRecordBridge: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 setADT().
Here is the call graph for this function:
|
abstract |
Convert ADT to active record fields.
Reimplemented in ilADTGroupActiveRecordBridge, and ilADTTextActiveRecordBridge.
| ilADTActiveRecordBridge::getADT | ( | ) |
Get ADT.
Definition at line 67 of file class.ilADTActiveRecordBridge.php.
References $adt.
Referenced by ilADTTextActiveRecordBridge\getActiveRecordFields(), ilADTTextActiveRecordBridge\getFieldValue(), ilADTGroupActiveRecordBridge\prepareElements(), and ilADTTextActiveRecordBridge\setFieldValue().
Here is the caller graph for this function:| ilADTActiveRecordBridge::getElementId | ( | ) |
Get element id.
Definition at line 107 of file class.ilADTActiveRecordBridge.php.
References $id.
Referenced by ilADTTextActiveRecordBridge\getActiveRecordFields().
Here is the caller graph for this function:
|
abstract |
Get field value.
| string | $a_field_name |
Reimplemented in ilADTTextActiveRecordBridge.
| ilADTActiveRecordBridge::getPrimary | ( | ) |
Get primary fields.
Definition at line 127 of file class.ilADTActiveRecordBridge.php.
References $primary.
| ilADTActiveRecordBridge::getTable | ( | ) |
Get table name.
Definition at line 87 of file class.ilADTActiveRecordBridge.php.
|
abstractprotected |
Check if given ADT is valid.
:TODO: This could be avoided with type-specifc constructors :TODO: bridge base class?
| ilADT | $a_adt |
Reimplemented in ilADTGroupActiveRecordBridge, and ilADTTextActiveRecordBridge.
Referenced by setADT().
Here is the caller graph for this function:
|
protected |
Set ADT.
| Exception |
| ilADT | $a_adt |
Definition at line 52 of file class.ilADTActiveRecordBridge.php.
References isValidADT().
Referenced by __construct().
Here is the call graph for this function:
Here is the caller graph for this function:| ilADTActiveRecordBridge::setElementId | ( | $a_value | ) |
Set element id (aka DB column[s] [prefix])
| string | $a_value |
Definition at line 97 of file class.ilADTActiveRecordBridge.php.
|
abstract |
Set field value.
| string | $a_field_name | |
| mixed | $a_field_value |
Reimplemented in ilADTTextActiveRecordBridge.
| ilADTActiveRecordBridge::setPrimary | ( | array | $a_value | ) |
Set primary fields (in MDB2 format)
| array | $a_value |
Definition at line 117 of file class.ilADTActiveRecordBridge.php.
| ilADTActiveRecordBridge::setTable | ( | $a_table | ) |
Set table name.
| string | $a_table |
Definition at line 77 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.