|
ILIAS
release_8 Revision v8.24
|
ADT DB bridge base class. More...
Inheritance diagram for ilADTActiveRecordBridge:
Collaboration diagram for ilADTActiveRecordBridge:Public Member Functions | |
| __construct (ilADT $a_adt) | |
| getADT () | |
| Get ADT. More... | |
| 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... | |
| getPrimary () | |
| Get primary fields. More... | |
| getActiveRecordFields () | |
| Convert ADT to active record fields. More... | |
| getFieldValue (string $a_field_name) | |
| Get field value. More... | |
| setFieldValue (string $a_field_name, $a_field_value) | |
| Set field value. More... | |
Protected Member Functions | |
| isValidADT (ilADT $a_adt) | |
| setADT (ilADT $a_adt) | |
| Set ADT. More... | |
Protected Attributes | |
| ilADT | $adt |
| string | $id |
| string | $table |
| array | $primary = [] |
ADT DB bridge base class.
Definition at line 12 of file class.ilADTActiveRecordBridge.php.
| ilADTActiveRecordBridge::__construct | ( | ilADT | $a_adt | ) |
Definition at line 19 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 43 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 71 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 ilADTGroupActiveRecordBridge, and ilADTTextActiveRecordBridge.
| ilADTActiveRecordBridge::getPrimary | ( | ) |
Get primary fields.
Definition at line 89 of file class.ilADTActiveRecordBridge.php.
References $primary.
| ilADTActiveRecordBridge::getTable | ( | ) |
Definition at line 53 of file class.ilADTActiveRecordBridge.php.
References $table.
|
abstractprotected |
Reimplemented in ilADTGroupActiveRecordBridge, and ilADTTextActiveRecordBridge.
Referenced by setADT().
Here is the caller graph for this function:
|
protected |
Set ADT.
| ilADT | $a_adt |
| InvalidArgumentException |
Definition at line 31 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 | ( | string | $a_value | ) |
Set element id (aka DB column[s] [prefix])
| string | $a_value |
Definition at line 62 of file class.ilADTActiveRecordBridge.php.
|
abstract |
Set field value.
| string | $a_field_name | |
| string | int | $a_field_value |
Reimplemented in ilADTGroupActiveRecordBridge, and ilADTTextActiveRecordBridge.
| ilADTActiveRecordBridge::setPrimary | ( | array | $a_value | ) |
Set primary fields (in MDB2 format)
| string[] | $a_value |
Definition at line 80 of file class.ilADTActiveRecordBridge.php.
| ilADTActiveRecordBridge::setTable | ( | string | $a_table | ) |
Definition at line 48 of file class.ilADTActiveRecordBridge.php.
|
protected |
Definition at line 14 of file class.ilADTActiveRecordBridge.php.
Referenced by getADT().
|
protected |
Definition at line 15 of file class.ilADTActiveRecordBridge.php.
Referenced by getElementId().
|
protected |
Definition at line 17 of file class.ilADTActiveRecordBridge.php.
Referenced by getPrimary().
|
protected |
Definition at line 16 of file class.ilADTActiveRecordBridge.php.
Referenced by getTable().