ILIAS
release_8 Revision v8.22
|
ADT Active Record service wrapper class This class expects a valid primary for all actions! More...
Public Member Functions | |
__construct (ilADTGroupActiveRecordBridge $a_properties) | |
Constructor. More... | |
getConnectorContainerName () | |
getPrimaryFieldValue () | |
sleep ($field_name) | |
wakeUp ($field_name, $field_value) | |
![]() | |
getArConnector () | |
getArFieldList () | |
getConnectorContainerName () | |
Return the Name of your Connector Table More... | |
setConnectorContainerName (string $connector_container_name) | |
getPrimaryFieldValue () | |
setPrimaryFieldValue ($value) | |
__construct ($primary_key=0) | |
storeObjectToCache () | |
asStdClass () | |
buildFromArray (array $array) | |
fixDateField ($field_name, $value) | |
sleep ($field_name) | |
wakeUp ($field_name, $field_value) | |
getArrayForConnector () | |
installConnector () | |
store () | |
save () | |
create () | |
copy (int $new_id=0) | |
afterObjectLoad () | |
read () | |
update () | |
delete () | |
__call ($name, $arguments) | |
Static Public Member Functions | |
static | returnDbTableName () |
![]() | |
static | returnDbTableName () |
static | installDB () |
static | renameDBField (string $old_name, string $new_name) |
static | tableExists () |
static | fieldExists (string $field_name) |
static | removeDBField (string $field_name) |
static | updateDB () |
static | resetDB () |
static | truncateDB () |
static | flushDB () |
never use in ILIAS Core, Plugins only More... | |
static | preloadObjects () |
static | additionalParams (array $additional_params) |
static | findOrFail ($primary_key, array $add_constructor_args=array()) |
Tries to find the object and throws an Exception if object is not found, instead of returning null. More... | |
static | findOrGetInstance ($primary_key, array $add_constructor_args=array()) |
static | where ($where, $operator=null) |
static | innerjoinAR (ActiveRecord $ar, $on_this, $on_external, array $fields=array(' *'), string $operator='=', $both_external=false) |
static | innerjoin ( $tablename, $on_this, $on_external, array $fields=array(' *'), string $operator='=', bool $both_external=false) |
static | leftjoin ( $tablename, $on_this, $on_external, array $fields=array(' *'), string $operator='=', bool $both_external=false) |
static | orderBy ($orderBy, string $orderDirection='ASC') |
static | dateFormat (string $date_format='d.m.Y - H:i:s') |
static | limit ($start, $end) |
static | affectedRows () |
static | count () |
static | get () |
static | debug () |
static | first () |
static | getCollection () |
static | last () |
static | getFirstFromLastQuery () |
static | connector (arConnector $connector) |
static | raw (bool $set_raw=true) |
static | getArray (?string $key=null, $values=null) |
static | _toCamelCase (string $str, bool $capitalise_first_char=false) |
Protected Member Functions | |
getActiveRecordFieldTypeFromMDB2 (string $a_mdb2_type) | |
initFieldList () | |
![]() | |
installDatabase () | |
Protected Attributes | |
ilADTGroupActiveRecordBridge | $properties |
arFieldList | $fields |
arConnectorDB | $arConnector |
array | $field_element_map = [] |
![]() | |
bool | $ar_safe_read = true |
string | $connector_container_name = '' |
bool | $is_new = true |
Additional Inherited Members | |
![]() | |
static | getCalledClass () |
Returns an instance of the instatiated calling active record (needs to be done in static methods) : This should be cached somehow More... | |
static | fromCamelCase (string $str) |
ADT Active Record service wrapper class This class expects a valid primary for all actions!
Definition at line 12 of file class.ilADTActiveRecordWrapper.php.
ilADTActiveRecordWrapper::__construct | ( | ilADTGroupActiveRecordBridge | $a_properties | ) |
Constructor.
ilADTGroupActiveRecordBridge | $a_properties |
Definition at line 23 of file class.ilADTActiveRecordWrapper.php.
References initFieldList().
|
protected |
Definition at line 30 of file class.ilADTActiveRecordWrapper.php.
References arField\FIELD_TYPE_DATE, arField\FIELD_TYPE_FLOAT, arField\FIELD_TYPE_INTEGER, arField\FIELD_TYPE_TEXT, and arField\FIELD_TYPE_TIMESTAMP.
Referenced by initFieldList().
ilADTActiveRecordWrapper::getConnectorContainerName | ( | ) |
Definition at line 81 of file class.ilADTActiveRecordWrapper.php.
ilADTActiveRecordWrapper::getPrimaryFieldValue | ( | ) |
Definition at line 91 of file class.ilADTActiveRecordWrapper.php.
|
protected |
Definition at line 52 of file class.ilADTActiveRecordWrapper.php.
References ActiveRecord\count(), fields, and getActiveRecordFieldTypeFromMDB2().
Referenced by __construct().
|
static |
Definition at line 86 of file class.ilADTActiveRecordWrapper.php.
ilADTActiveRecordWrapper::sleep | ( | $field_name | ) |
Definition at line 101 of file class.ilADTActiveRecordWrapper.php.
ilADTActiveRecordWrapper::wakeUp | ( | $field_name, | |
$field_value | |||
) |
Definition at line 114 of file class.ilADTActiveRecordWrapper.php.
|
protected |
Definition at line 16 of file class.ilADTActiveRecordWrapper.php.
|
protected |
Definition at line 17 of file class.ilADTActiveRecordWrapper.php.
|
protected |
Definition at line 15 of file class.ilADTActiveRecordWrapper.php.
|
protected |
Definition at line 14 of file class.ilADTActiveRecordWrapper.php.