ILIAS
Release_5_0_x_branch Revision 61816
|
ADT Active Record service wrapper class. More...
Public Member Functions | |
__construct (ilADTGroupActiveRecordBridge $a_properties) | |
Constructor. | |
getConnectorContainerName () | |
getPrimaryFieldValue () | |
sleep ($field_name) | |
wakeUp ($field_name, $field_value) | |
Public Member Functions inherited from ActiveRecord | |
getArConnector () | |
getArFieldList () | |
setConnectorContainerName ($connector_container_name) | |
setPrimaryFieldValue ($value) | |
__construct ($primary_key=0, arConnector $connector=NULL) | |
storeObjectToCache () | |
__getConvertedDateFieldsAsArray ($format=NULL) | |
__asCsv ($separator= ';', $header=false) | |
__asArray () | |
__asStdClass () | |
__asSerializedObject () | |
buildFromArray (array $array) | |
getArrayForDb () | |
getArrayForConnector () | |
installConnector () | |
store () | |
save () | |
create () | |
copy ($new_id=0) | |
afterObjectLoad () | |
read () | |
update () | |
delete () | |
__call ($name, $arguments) |
Static Public Member Functions | |
static | returnDbTableName () |
Static Public Member Functions inherited from ActiveRecord | |
static | installDB () |
static | renameDBField ($old_name, $new_name) |
static | tableExists () |
static | fieldExists ($field_name) |
static | removeDBField ($field_name) |
static | updateDB () |
static | resetDB () |
static | truncateDB () |
static | flushDB () |
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. | |
static | findOrGetInstance ($primary_key, array $add_constructor_args=array()) |
static | where ($where, $operator=NULL) |
static | innerjoinAR (ActiveRecord $ar, $on_this, $on_external, $fields=array( '*'), $operator= '=', $both_external=false) |
static | innerjoin ($tablename, $on_this, $on_external, $fields=array( '*'), $operator= '=', $both_external=false) |
static | leftjoin ($tablename, $on_this, $on_external, $fields=array( '*'), $operator= '=', $both_external=false) |
static | orderBy ($orderBy, $orderDirection= 'ASC') |
static | dateFormat ($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 ($set_raw=true) |
static | getArray ($key=NULL, $values=NULL) |
static | _toCamelCase ($str, $capitalise_first_char=false) |
Protected Member Functions | |
getActiveRecordFieldTypeFromMDB2 ($a_mdb2_type) | |
initFieldList () | |
Get field list instance for ADT group. | |
Protected Member Functions inherited from ActiveRecord | |
serializeToCSV ($field) | |
This method is called for every field of your instance if you use __asCsv. | |
installDatabase () |
Protected Attributes | |
$properties | |
$fields | |
$field_element_map | |
Protected Attributes inherited from ActiveRecord | |
$ar_safe_read = true | |
$connector_container_name = '' |
Additional Inherited Members | |
Data Fields inherited from ActiveRecord | |
const | ACTIVE_RECORD_VERSION = '2.0.7' |
Static Protected Member Functions inherited from ActiveRecord | |
static | getCalledClass () |
static | fromCamelCase ($str) |
ADT Active Record service wrapper class.
:TODO: EXPERIMENTAL!
This class expects a valid primary for all actions!
Definition at line 17 of file class.ilADTActiveRecordWrapper.php.
ilADTActiveRecordWrapper::__construct | ( | ilADTGroupActiveRecordBridge | $a_properties | ) |
Constructor.
ilADTGroupActiveRecordBridge | $a_properties |
Definition at line 29 of file class.ilADTActiveRecordWrapper.php.
References initFieldList().
|
protected |
Definition at line 43 of file class.ilADTActiveRecordWrapper.php.
References arField\FIELD_TYPE_DATE, arField\FIELD_TYPE_FLOAT, arField\FIELD_TYPE_INTEGER, FIELD_TYPE_TEXT, and arField\FIELD_TYPE_TIMESTAMP.
Referenced by initFieldList().
ilADTActiveRecordWrapper::getConnectorContainerName | ( | ) |
Reimplemented from ActiveRecord.
Definition at line 122 of file class.ilADTActiveRecordWrapper.php.
ilADTActiveRecordWrapper::getPrimaryFieldValue | ( | ) |
Reimplemented from ActiveRecord.
Definition at line 132 of file class.ilADTActiveRecordWrapper.php.
|
protected |
Get field list instance for ADT group.
Definition at line 79 of file class.ilADTActiveRecordWrapper.php.
References $fields, fields, and getActiveRecordFieldTypeFromMDB2().
Referenced by __construct().
|
static |
Reimplemented from ActiveRecord.
Definition at line 127 of file class.ilADTActiveRecordWrapper.php.
ilADTActiveRecordWrapper::sleep | ( | $field_name | ) |
$field_name |
Reimplemented from ActiveRecord.
Definition at line 143 of file class.ilADTActiveRecordWrapper.php.
ilADTActiveRecordWrapper::wakeUp | ( | $field_name, | |
$field_value | |||
) |
$field_name | |
$field_value |
Reimplemented from ActiveRecord.
Definition at line 155 of file class.ilADTActiveRecordWrapper.php.
|
protected |
Definition at line 21 of file class.ilADTActiveRecordWrapper.php.
|
protected |
Definition at line 20 of file class.ilADTActiveRecordWrapper.php.
Referenced by initFieldList().
|
protected |
Definition at line 19 of file class.ilADTActiveRecordWrapper.php.