|
ILIAS
release_9 Revision v9.13-25-g2c18ec4c24f
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Inheritance diagram for ActiveRecord:
Collaboration diagram for ActiveRecord:Public Member Functions | |
| getArConnector () | |
| getArFieldList () | |
| getConnectorContainerName () | |
| Return the Name of your Connector Table More... | |
| setConnectorContainerName (string $connector_container_name) | |
| getPrimaryFieldValue () | |
| setPrimaryFieldValue ($value) | |
| __construct (mixed $primary_key=0) | |
| storeObjectToCache () | |
| asStdClass () | |
| asArray () | |
| 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 | 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=[]) |
| 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=[]) |
| static | where ($where, $operator=null) |
| static | innerjoinAR (ActiveRecord $activeRecord, $on_this, $on_external, array $fields=[' *'], string $operator='=', bool $both_external=false) |
| static | innerjoin ( $tablename, $on_this, $on_external, array $fields=[' *'], string $operator='=', bool $both_external=false) |
| static | leftjoin ( $tablename, $on_this, $on_external, array $fields=[' *'], string $operator='=', bool $both_external=false) |
| static | orderBy (string $orderBy, string $orderDirection='ASC') |
| static | dateFormat (string $date_format='d.m.Y - H:i:s') |
| static | limit (int $start, int $end) |
| static | affectedRows () |
| static | count () |
| static | get () |
| static | debug () |
| static | first () |
| static | getCollection () |
| static | last () |
| static | getFirstFromLastQuery () |
| static | connector (arConnector $arConnector) |
| 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 | |
| installDatabase () | |
Static Protected Member Functions | |
| 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) |
Protected Attributes | |
| bool | $ar_safe_read = true |
| string | $connector_container_name = '' |
| bool | $is_new = true |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Class ActiveRecord
Definition at line 28 of file class.ActiveRecord.php.
| ActiveRecord::__construct | ( | mixed | $primary_key = 0 | ) |
Definition at line 97 of file class.ActiveRecord.php.
References arFieldCache\get(), and read().
Here is the call graph for this function:| ActiveRecord::__call | ( | $name, | |
| $arguments | |||
| ) |
| $name | |
| $arguments |
Definition at line 701 of file class.ActiveRecord.php.
References count().
Here is the call graph for this function:
|
static |
|
static |
Definition at line 431 of file class.ActiveRecord.php.
References arObjectCache\get(), and arObjectCache\isCached().
Here is the call graph for this function:
|
static |
Definition at line 608 of file class.ActiveRecord.php.
| ActiveRecord::afterObjectLoad | ( | ) |
Definition at line 377 of file class.ActiveRecord.php.
| ActiveRecord::asArray | ( | ) |
Definition at line 134 of file class.ActiveRecord.php.
References getArFieldList().
Referenced by arConnectorCache\storeActiveRecordInCache().
Here is the call graph for this function:
Here is the caller graph for this function:| ActiveRecord::asStdClass | ( | ) |
Definition at line 120 of file class.ActiveRecord.php.
References getArFieldList().
Referenced by arConnectorSession\create().
Here is the call graph for this function:
Here is the caller graph for this function:| ActiveRecord::buildFromArray | ( | array | $array | ) |
Definition at line 145 of file class.ActiveRecord.php.
References arObjectCache\get(), getArFieldList(), arObjectCache\isCached(), arObjectCache\store(), and wakeUp().
Here is the call graph for this function:
|
static |
Definition at line 667 of file class.ActiveRecord.php.
| ActiveRecord::copy | ( | int | $new_id = 0 | ) |
| arException |
Definition at line 366 of file class.ActiveRecord.php.
References arException\COPY_DESTINATION_ID_EXISTS, and getArFieldList().
Here is the call graph for this function:
|
static |
Definition at line 615 of file class.ActiveRecord.php.
Referenced by __call(), ilAccessibilityDocument\buildFromArray(), ilAccessibilityDocument\detachCriterion(), and ilOrgUnitPathStorage\getTextRepresentationOfOrgUnits().
Here is the caller graph for this function:| ActiveRecord::create | ( | ) |
Definition at line 352 of file class.ActiveRecord.php.
References getArConnector(), getArFieldList(), arFieldCache\getPrimaryFieldName(), and arObjectCache\store().
Referenced by ilAccessibilityDocument\buildFromArray(), ilDclTableView\cloneStructure(), ilDclTableViewFieldSetting\cloneStructure(), ilOrgUnitPathStorage\store(), and store().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 588 of file class.ActiveRecord.php.
|
static |
Definition at line 630 of file class.ActiveRecord.php.
| ActiveRecord::delete | ( | ) |
Definition at line 409 of file class.ActiveRecord.php.
References getArConnector(), and arObjectCache\purge().
Referenced by ILIAS\BackgroundTasks\Implementation\Persistence\BasicPersistence\getValueContainerId().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticfinal |
| $field_name |
Definition at line 264 of file class.ActiveRecord.php.
|
static |
Tries to find the object and throws an Exception if object is not found, instead of returning null.
| $primary_key |
| arException |
Definition at line 473 of file class.ActiveRecord.php.
References arException\RECORD_NOT_FOUND.
Referenced by ilSecurePathDefinitionProcessor\beginTag(), ilBiblLibraryFactory\findById(), ilBiblTranslationFactory\findById(), ilADNNotificationGUI\getNotificationFromRequest(), and ilBiblFieldFactory\getType().
Here is the caller graph for this function:
|
static |
| $primary_key | Returns an existing Object with given primary-key or a new Instance with given primary-key set but not yet created |
Definition at line 488 of file class.ActiveRecord.php.
|
static |
Definition at line 637 of file class.ActiveRecord.php.
Referenced by ilDclTableView\createOrGetStandardView(), ilDclTableFieldSetting\getInstance(), ilDclTableViewFieldSetting\getInstance(), and ilDclTableViewFieldSetting\getTableViewFieldSetting().
Here is the caller graph for this function:| ActiveRecord::fixDateField | ( | $field_name, | |
| $value | |||
| ) |
| $field_name | |
| $value |
Definition at line 168 of file class.ActiveRecord.php.
References getArConnector(), and getArFieldList().
Here is the call graph for this function:
|
staticfinal |
never use in ILIAS Core, Plugins only
Definition at line 327 of file class.ActiveRecord.php.
Referenced by ilMMTopItemGUI\restore().
Here is the caller graph for this function:
|
staticprotected |
|
static |
Definition at line 623 of file class.ActiveRecord.php.
Referenced by ilBiblLibraryFactory\getAll(), and ILIAS\AdministrativeNotification\GlobalScreen\ADNProvider\getNotifications().
Here is the caller graph for this function:| ActiveRecord::getArConnector | ( | ) |
Definition at line 34 of file class.ActiveRecord.php.
References arConnectorMap\get().
Referenced by arWhere\asSQLStatement(), create(), delete(), fixDateField(), installDatabase(), read(), and update().
Here is the call graph for this function:
Here is the caller graph for this function:| ActiveRecord::getArFieldList | ( | ) |
Definition at line 39 of file class.ActiveRecord.php.
References arFieldCache\get().
Referenced by asArray(), arWhere\asSQLStatement(), asStdClass(), buildFromArray(), CachedActiveRecord\buildHash(), copy(), create(), fixDateField(), getArrayForConnector(), CachedActiveRecord\getCacheIdentifier(), arConnectorDB\installDatabase(), installDatabase(), arConnectorDB\updateDatabase(), and arConnectorDB\updateIndices().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
| null | $values |
Definition at line 685 of file class.ActiveRecord.php.
References ILIAS\LTI\ToolProvider\$key.
Referenced by ilMMAbstractBaseTypeHandlerAction\__construct(), ilMMItemInformation\__construct(), ilOrgUnitPathStorage\getTextRepresentationOfOrgUnits(), and ilADNNotificationTableGUI\initData().
Here is the caller graph for this function:
|
final |
Definition at line 199 of file class.ActiveRecord.php.
References $data, getArFieldList(), and sleep().
Referenced by arConnectorDB\create(), read(), and arConnectorDB\update().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprotected |
Returns an instance of the instatiated calling active record (needs to be done in static methods) : This should be cached somehow
Definition at line 222 of file class.ActiveRecord.php.
References arCalledClassCache\get().
Here is the call graph for this function:
|
static |
Definition at line 644 of file class.ActiveRecord.php.
Referenced by ilDclTableViewBaseDefaultValue\findAll(), and ilBiblFieldFactory\getCollectionForFilter().
Here is the caller graph for this function:| ActiveRecord::getConnectorContainerName | ( | ) |
Return the Name of your Connector Table
Definition at line 60 of file class.ActiveRecord.php.
References $connector_container_name.
Referenced by ActiveRecordList\__construct(), arWhere\asSQLStatement(), arJoin\asStatementText(), arConnectorCache\buildCacheKey(), arConnectorDB\checkFieldExists(), arConnectorDB\checkTableExists(), arConnectorDB\create(), arBuilder\generateDBUpdateForInstallation(), CachedActiveRecord\getCacheIdentifier(), ActiveRecordList\innerjoinAR(), innerjoinAR(), arConnectorDB\installDatabase(), arConnectorDB\nextID(), arConnectorDB\read(), arConnectorDB\removeField(), arConnectorDB\renameField(), arConnectorDB\resetDatabase(), arConnectorDB\truncateDatabase(), arConnectorDB\update(), arConnectorDB\updateDatabase(), and arConnectorDB\updateIndices().
Here is the caller graph for this function:
|
static |
Definition at line 660 of file class.ActiveRecord.php.
| ActiveRecord::getPrimaryFieldValue | ( | ) |
Definition at line 80 of file class.ActiveRecord.php.
References arFieldCache\getPrimaryFieldName().
Referenced by arConnectorCache\buildCacheKey(), arConnectorSession\create(), CachedActiveRecord\getCacheIdentifier(), arObjectCache\purge(), arConnectorSession\read(), arConnectorDB\read(), read(), arObjectCache\store(), store(), and arConnectorDB\update().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
| $tablename | |
| $on_this | |
| $on_external |
Definition at line 545 of file class.ActiveRecord.php.
|
static |
| $on_this | |
| $on_external |
Definition at line 521 of file class.ActiveRecord.php.
References getConnectorContainerName().
Here is the call graph for this function:| ActiveRecord::installConnector | ( | ) |
Definition at line 242 of file class.ActiveRecord.php.
References installDatabase().
Here is the call graph for this function:
|
finalprotected |
Definition at line 280 of file class.ActiveRecord.php.
References getArConnector(), and getArFieldList().
Referenced by installConnector().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticfinal |
Please generate the manual installation script by using: $arBuilder = new arBuilder(new ilYourARBasedClass()); $arBuilder->generateDBUpdateForInstallation();
Definition at line 234 of file class.ActiveRecord.php.
Referenced by arConnectorDB\resetDatabase().
Here is the caller graph for this function:
|
static |
Definition at line 650 of file class.ActiveRecord.php.
|
static |
| $tablename | |
| $on_this | |
| $on_external |
Definition at line 564 of file class.ActiveRecord.php.
|
static |
| $start | |
| $end |
Definition at line 600 of file class.ActiveRecord.php.
|
static |
| $orderBy |
Definition at line 580 of file class.ActiveRecord.php.
Referenced by ilDclTableView\createOrGetStandardView(), ilAccessibilityDocumentTableDataProvider\getList(), ilOrgUnitPathStorage\getTextRepresentationOfOrgUnits(), ilDclSelectionOption\getValues(), ilInitialisation\initAccessibilityControlConcept(), and ilAccessibilityDocumentFormGUI\saveObject().
Here is the caller graph for this function:
|
static |
Definition at line 423 of file class.ActiveRecord.php.
References ILIAS\Repository\get().
Here is the call graph for this function:
|
static |
Definition at line 674 of file class.ActiveRecord.php.
| ActiveRecord::read | ( | ) |
| arException |
Definition at line 384 of file class.ActiveRecord.php.
References getArConnector(), getArrayForConnector(), getPrimaryFieldValue(), arException\RECORD_NOT_FOUND, arObjectCache\store(), and wakeUp().
Referenced by __construct().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticfinal |
Definition at line 272 of file class.ActiveRecord.php.
|
staticfinal |
| $old_name | |
| $new_name |
Definition at line 251 of file class.ActiveRecord.php.
|
staticfinal |
Definition at line 311 of file class.ActiveRecord.php.
|
static |
Definition at line 49 of file class.ActiveRecord.php.
References arException\UNKNONWN_EXCEPTION.
| ActiveRecord::save | ( | ) |
Definition at line 347 of file class.ActiveRecord.php.
References store().
Referenced by ilExAssTypeWikiTeam\cloneSpecificProperties(), and ILIAS\BackgroundTasks\Implementation\Persistence\BasicPersistence\saveTask().
Here is the call graph for this function:
Here is the caller graph for this function:| ActiveRecord::setConnectorContainerName | ( | string | $connector_container_name | ) |
Definition at line 72 of file class.ActiveRecord.php.
References $connector_container_name.
| ActiveRecord::setPrimaryFieldValue | ( | $value | ) |
| $value |
Definition at line 90 of file class.ActiveRecord.php.
References arFieldCache\getPrimaryFieldName().
Here is the call graph for this function:| ActiveRecord::sleep | ( | $field_name | ) |
| $field_name |
Definition at line 181 of file class.ActiveRecord.php.
Referenced by getArrayForConnector(), and ilADNNotification\wakeUp().
Here is the caller graph for this function:| ActiveRecord::store | ( | ) |
Definition at line 335 of file class.ActiveRecord.php.
References create(), arFieldCache\getPrimaryFieldName(), getPrimaryFieldValue(), and update().
Referenced by save().
Here is the call graph for this function:
Here is the caller graph for this function:| ActiveRecord::storeObjectToCache | ( | ) |
Definition at line 115 of file class.ActiveRecord.php.
References arObjectCache\store().
Here is the call graph for this function:
|
staticfinal |
Definition at line 256 of file class.ActiveRecord.php.
|
staticfinal |
Definition at line 319 of file class.ActiveRecord.php.
| ActiveRecord::update | ( | ) |
Definition at line 403 of file class.ActiveRecord.php.
References getArConnector(), and arObjectCache\store().
Referenced by ilAccessibilityDocument\buildFromArray(), ilOrgUnitPathStorage\store(), and store().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticfinal |
Definition at line 297 of file class.ActiveRecord.php.
| ActiveRecord::wakeUp | ( | $field_name, | |
| $field_value | |||
| ) |
| $field_name | |
| $field_value |
Definition at line 191 of file class.ActiveRecord.php.
Referenced by buildFromArray(), and read().
Here is the caller graph for this function:
|
static |
| $where | ||
| null | $operator |
Definition at line 508 of file class.ActiveRecord.php.
Referenced by ILIAS\MainMenu\Provider\CustomMainBarProvider\__construct(), ilDclTableView\createFieldSetting(), ilMMAbstractItemFacade\deleteAssociatedTranslations(), ilBiblEntryFactory\deleteEntryById(), ilAccessibilityDocument\detachCriterion(), ilObjBibliographic\doCreate(), ilBiblFieldFilterFactory\filterItemsForTable(), ilBiblFieldFilterFactory\findByFieldId(), ilBiblFieldFilterFactory\findById(), ilBiblEntryFactory\findByIdAndTypeString(), ilBiblFieldFactory\findOrCreateFieldOfAttribute(), ilBiblEntryFactory\getAllAttributesByEntryId(), ilBiblFieldFilterFactory\getAllForObjectId(), ilBiblEntryFactory\getARInstance(), ilBiblFieldFactory\getARInstance(), ilBiblAttributeFactory\getAttributesForEntry(), ILIAS\BackgroundTasks\Implementation\Persistence\BasicPersistence\getBucketIdsByState(), ILIAS\BackgroundTasks\Implementation\Persistence\BasicPersistence\getBucketIdsOfUser(), ILIAS\BackgroundTasks\Implementation\Persistence\BasicPersistence\getBucketMetaOfUser(), ilBiblFieldFilterFactory\getByObjectIdAndField(), ilBiblTranslationFactory\getCollectionOfTranslationsForField(), ilAccessibilityDocumentGUI\getDocumentsByServerRequest(), ilDclCache\getFieldProperties(), ilDclTableView\getFieldSetting(), ilDclTableView\getFieldSettings(), ilDclTableView\getFilterableFieldSettings(), ilBiblDataFactory\getIlBiblDataById(), ilDclTableHelper\getStandardViewsByVisibleTables(), ilMMItemRepository\getTopItems(), ILIAS\BackgroundTasks\Implementation\Persistence\BasicPersistence\getValueContainerId(), ilDclBaseFieldModel\getViewSettings(), ilDclTableView\getVisibleFields(), ilBiblEntryFactory\loadParsedAttributesByEntryId(), ilMMItemTranslationTableGUI\parseData(), ilDclCache\preloadFieldProperties(), ilADNNotification\resetForAllUsers(), ILIAS\BackgroundTasks\Implementation\Persistence\BasicPersistence\saveTask(), and ilOrgUnitPathStorage\store().
Here is the caller graph for this function:
|
protected |
Definition at line 30 of file class.ActiveRecord.php.
|
protected |
Definition at line 31 of file class.ActiveRecord.php.
Referenced by getConnectorContainerName(), and setConnectorContainerName().
|
protected |
Definition at line 32 of file class.ActiveRecord.php.