ILIAS
Release_5_0_x_branch Revision 61816
|
ADT DB bridge base class. More...
Public Member Functions | |
__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. | |
getActiveRecordFields () | |
Convert ADT to active record fields. | |
getFieldValue ($a_field_name) | |
Get field value. | |
setFieldValue ($a_field_name, $a_field_value) | |
Set field value. |
Protected Member Functions | |
isValidADT (ilADT $a_adt) | |
Check if given ADT is valid. | |
setADT (ilADT $a_adt) | |
Set ADT. |
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().
|
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().
ilADTActiveRecordBridge::getElementId | ( | ) |
Get element id.
Definition at line 107 of file class.ilADTActiveRecordBridge.php.
References $id.
Referenced by ilADTTextActiveRecordBridge\getActiveRecordFields().
|
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().
|
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 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.