|
ILIAS
release_8 Revision v8.24
|
Class ActiveRecord. More...
Inheritance diagram for ActiveRecord:
Collaboration diagram for ActiveRecord:Public Member Functions | |
| getArConnector () | |
| getArFieldList () | |
| getConnectorContainerName () | |
| @description 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 | 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 () |
| @depracated 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 | |
| installDatabase () | |
Static Protected Member Functions | |
| static | getCalledClass () |
| @description Returns an instance of the instatiated calling active record (needs to be done in static methods) @TODO : 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 |
| ActiveRecord::__construct | ( | $primary_key = 0 | ) |
| mixed | $primary_key |
Reimplemented in ilOrgUnitAuthority, and ilOrgUnitPermission.
Definition at line 95 of file class.ActiveRecord.php.
References ILIAS\LTI\ToolProvider\$key, arFieldCache\get(), and read().
Here is the call graph for this function:| ActiveRecord::__call | ( | $name, | |
| $arguments | |||
| ) |
| $name | |
| $arguments |
Definition at line 672 of file class.ActiveRecord.php.
References $name.
|
static |
Definition at line 684 of file class.ActiveRecord.php.
References $c.
|
static |
Definition at line 403 of file class.ActiveRecord.php.
|
static |
Definition at line 580 of file class.ActiveRecord.php.
| ActiveRecord::afterObjectLoad | ( | ) |
Reimplemented in ilDclFieldProperty, ilOrgUnitPosition, ilOrgUnitPermission, and CachedActiveRecord.
Definition at line 350 of file class.ActiveRecord.php.
| ActiveRecord::asStdClass | ( | ) |
Definition at line 111 of file class.ActiveRecord.php.
References getArFieldList().
Referenced by arConnectorSession\create(), and arConnectorCache\storeActiveRecordInCache().
Here is the call graph for this function:
Here is the caller graph for this function:| ActiveRecord::buildFromArray | ( | array | $array | ) |
Reimplemented in ilAccessibilityDocument, and ilTermsOfServiceDocument.
Definition at line 122 of file class.ActiveRecord.php.
References arObjectCache\get(), arObjectCache\isCached(), and arObjectCache\store().
Here is the call graph for this function:
|
static |
Definition at line 639 of file class.ActiveRecord.php.
| ActiveRecord::copy | ( | int | $new_id = 0 | ) |
| arException |
Reimplemented in CachedActiveRecord.
Definition at line 339 of file class.ActiveRecord.php.
References arException\COPY_DESTINATION_ID_EXISTS.
|
static |
Definition at line 587 of file class.ActiveRecord.php.
Referenced by ilAccessibilityDocument\detachCriterion(), ilTermsOfServiceDocument\detachCriterion(), ilADTActiveRecordWrapper\initFieldList(), ilOrgUnitPosition\storeAuthorities(), and ilTermsOfServiceDocument\update().
Here is the caller graph for this function:| ActiveRecord::create | ( | ) |
Reimplemented in ilDclFieldProperty, ilOrgUnitPosition, ilOrgUnitOperation, ilOrgUnitOperationContext, ilOrgUnitPermission, ilOrgUnitUserAssignment, ilAccessibilityDocumentCriterionAssignment, CachedActiveRecord, ilADNNotification, ilMMItemStorage, ilTermsOfServiceDocumentCriterionAssignment, and ilTermsOfServiceDocument.
Definition at line 325 of file class.ActiveRecord.php.
References arFieldCache\getPrimaryFieldName(), and arObjectCache\store().
Referenced by ilDclTableView\cloneStructure(), ilDclTableViewFieldSetting\cloneStructure(), and ilOrgUnitPathStorage\store().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 560 of file class.ActiveRecord.php.
|
static |
Definition at line 602 of file class.ActiveRecord.php.
| ActiveRecord::delete | ( | ) |
Reimplemented in ilDclTableView, ilOrgUnitPosition, ilOrgUnitPermission, ilOrgUnitUserAssignment, CachedActiveRecord, and ilTermsOfServiceDocument.
Definition at line 381 of file class.ActiveRecord.php.
References arObjectCache\purge().
Here is the call graph for this function:
|
staticfinal |
| $field_name |
Definition at line 238 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 445 of file class.ActiveRecord.php.
References arException\RECORD_NOT_FOUND.
Referenced by ilSecurePathDefinitionProcessor\beginTag(), ilBiblLibraryFactory\findById(), ilBiblFieldFilterFactory\findById(), ilBiblTranslationFactory\findById(), ilOrgUnitOperationQueries\findById(), and ilADNNotificationGUI\getNotificationFromRequest().
Here is the caller graph for this function:
|
static |
| $primary_key | @description Returns an existing Object with given primary-key or a new Instance with given primary-key set but not yet created |
Reimplemented in ilDclTableView.
Definition at line 460 of file class.ActiveRecord.php.
|
static |
Definition at line 609 of file class.ActiveRecord.php.
Referenced by ilDclTableView\createOrGetStandardView(), ilDclTableViewFieldSetting\getInstance(), and ilDclTableViewFieldSetting\getTableViewFieldSetting().
Here is the caller graph for this function:| ActiveRecord::fixDateField | ( | $field_name, | |
| $value | |||
| ) |
| $field_name | |
| $value |
Definition at line 145 of file class.ActiveRecord.php.
|
staticfinal |
@depracated never use in ILIAS Core, Plugins only
Definition at line 300 of file class.ActiveRecord.php.
Referenced by ilMMTopItemGUI\restore().
Here is the caller graph for this function:
|
staticprotected |
Definition at line 693 of file class.ActiveRecord.php.
References $c.
|
static |
Reimplemented in ilOrgUnitPosition.
Definition at line 595 of file class.ActiveRecord.php.
Referenced by ilGlobalCacheMetricsCollectedObjective\collectFrom(), and ilBiblLibraryFactory\getAll().
Here is the caller graph for this function:| ActiveRecord::getArConnector | ( | ) |
Definition at line 30 of file class.ActiveRecord.php.
References arConnectorMap\get().
Referenced by arWhere\asSQLStatement().
Here is the call graph for this function:
Here is the caller graph for this function:| ActiveRecord::getArFieldList | ( | ) |
Definition at line 35 of file class.ActiveRecord.php.
References arFieldCache\get().
Referenced by arWhere\asSQLStatement(), asStdClass(), CachedActiveRecord\buildHash(), CachedActiveRecord\getCacheIdentifier(), arConnectorDB\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 656 of file class.ActiveRecord.php.
References ILIAS\LTI\ToolProvider\$key.
Referenced by ilMMItemInformation\__construct(), ilMMAbstractBaseTypeHandlerAction\__construct(), ilOrgUnitPositionTableGUI\buildData(), ilOrgUnitUserAssignmentGUI\getConfirmationGUI(), ilOrgUnitPathStorage\getTextRepresentationOfOrgUnits(), ilOrgUnitUserAssignmentGUI\index(), ilADNNotificationTableGUI\initData(), ilOrgUnitPositionFormGUI\initFormElements(), ILIAS\OrgUnit\Webservices\SOAP\PositionIds\run(), and ilPermissionGUI\savePositionsPermissions().
Here is the caller graph for this function:
|
final |
Definition at line 173 of file class.ActiveRecord.php.
References $data.
Referenced by arConnectorDB\create(), and arConnectorDB\update().
Here is the caller graph for this function:
|
staticprotected |
@description Returns an instance of the instatiated calling active record (needs to be done in static methods) @TODO : This should be cached somehow
Definition at line 196 of file class.ActiveRecord.php.
References arCalledClassCache\get().
Referenced by getConnectorContainerName().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 616 of file class.ActiveRecord.php.
Referenced by ilDclTableViewEditGUI\executeCommand(), and ilBiblFieldFactory\getCollectionForFilter().
Here is the caller graph for this function:| ActiveRecord::getConnectorContainerName | ( | ) |
@description Return the Name of your Connector Table
Reimplemented in ilBiblLibrary, ilBiblAttribute, ilBiblData, ilBiblEntry, ilBiblField, ilBiblFieldFilter, ilBiblOverviewModel, ilBiblTranslation, ilOrgUnitPathStorage, ilADNDismiss, ilADNNotification, and ilADTActiveRecordWrapper.
Definition at line 55 of file class.ActiveRecord.php.
References $connector_container_name, and getCalledClass().
Referenced by ActiveRecordList\__construct(), arWhere\asSQLStatement(), arJoin\asStatementText(), arConnectorDB\checkFieldExists(), arConnectorDB\checkTableExists(), arConnectorDB\create(), arBuilder\generateDBUpdateForInstallation(), CachedActiveRecord\getCacheIdentifier(), arConnectorDB\installDatabase(), arConnectorDB\nextID(), arConnectorDB\read(), arConnectorCache\read(), arConnectorDB\removeField(), arConnectorDB\renameField(), arConnectorDB\resetDatabase(), arConnectorCache\storeActiveRecordInCache(), arConnectorDB\truncateDatabase(), arConnectorDB\update(), arConnectorDB\updateDatabase(), and arConnectorDB\updateIndices().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 632 of file class.ActiveRecord.php.
| ActiveRecord::getPrimaryFieldValue | ( | ) |
Reimplemented in ilADTActiveRecordWrapper.
Definition at line 75 of file class.ActiveRecord.php.
References arFieldCache\getPrimaryFieldName().
Referenced by arConnectorSession\create(), CachedActiveRecord\getCacheIdentifier(), arObjectCache\purge(), arConnectorDB\read(), arConnectorCache\read(), arConnectorSession\read(), arObjectCache\store(), arConnectorCache\storeActiveRecordInCache(), 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 517 of file class.ActiveRecord.php.
Referenced by ilMStListCoursesTableGUI\fillRow(), and ilMStShowUserCoursesTableGUI\fillRow().
Here is the caller graph for this function:
|
static |
| $on_this | |
| $on_external |
Definition at line 493 of file class.ActiveRecord.php.
| ActiveRecord::installConnector | ( | ) |
Definition at line 216 of file class.ActiveRecord.php.
|
finalprotected |
Definition at line 253 of file class.ActiveRecord.php.
|
staticfinal |
Definition at line 208 of file class.ActiveRecord.php.
Referenced by arConnectorDB\resetDatabase().
Here is the caller graph for this function:
|
static |
Definition at line 622 of file class.ActiveRecord.php.
|
static |
| $tablename | |
| $on_this | |
| $on_external |
Definition at line 536 of file class.ActiveRecord.php.
|
static |
| $start | |
| $end |
Definition at line 572 of file class.ActiveRecord.php.
|
static |
| $orderBy |
Definition at line 552 of file class.ActiveRecord.php.
Referenced by ilDclTableView\createOrGetStandardView(), ilAccessibilityDocumentTableDataProvider\getList(), ilTermsOfServiceDocumentTableDataProvider\getList(), ilOrgUnitPathStorage\getTextRepresentationOfOrgUnits(), ilDclSelectionOption\getValues(), ilInitialisation\initAccessibilityControlConcept(), and ilInitialisation\initTermsOfService().
Here is the caller graph for this function:
|
static |
Definition at line 395 of file class.ActiveRecord.php.
References ILIAS\Repository\get().
Here is the call graph for this function:
|
static |
Definition at line 646 of file class.ActiveRecord.php.
| ActiveRecord::read | ( | ) |
| arException |
Reimplemented in ilAccessibilityDocument, CachedActiveRecord, and ilTermsOfServiceDocument.
Definition at line 357 of file class.ActiveRecord.php.
References arException\RECORD_NOT_FOUND.
Referenced by __construct().
Here is the caller graph for this function:
|
staticfinal |
Definition at line 246 of file class.ActiveRecord.php.
|
staticfinal |
| $old_name | |
| $new_name |
Definition at line 225 of file class.ActiveRecord.php.
|
staticfinal |
Definition at line 285 of file class.ActiveRecord.php.
|
static |
Reimplemented in ilBiblLibrary, ilBiblAttribute, ilBiblData, ilBiblEntry, ilBiblField, ilBiblFieldFilter, ilBiblOverviewModel, ilBiblTranslation, ilDclFieldProperty, ilDclSelectionOption, ilDclTableFieldSetting, ilDclTableView, ilDclTableViewDateDefaultValue, ilDclTableViewFieldSetting, ilDclTableViewNumberDefaultValue, ilDclTableViewTextDefaultValue, ilExAssWikiTeamAR, ilItemGroupAR, ilOrgUnitAuthority, ilOrgUnitPosition, ilOrgUnitOperation, ilOrgUnitOperationContext, ilOrgUnitPermission, ilOrgUnitUserAssignment, ilAccessibilityDocumentCriterionAssignment, ilAccessibilityDocument, ilADNDismiss, ilADNNotification, ilADTActiveRecordWrapper, ilMemcacheServer, ilTermsOfServiceDocumentCriterionAssignment, ilTermsOfServiceDocument, ilWACSecurePath, ILIAS\BackgroundTasks\Implementation\Persistence\BucketContainer, ILIAS\BackgroundTasks\Implementation\Persistence\TaskContainer, ILIAS\BackgroundTasks\Implementation\Persistence\ValueContainer, and ILIAS\BackgroundTasks\Implementation\Persistence\ValueToTaskContainer.
Definition at line 44 of file class.ActiveRecord.php.
References arException\UNKNONWN_EXCEPTION.
| ActiveRecord::save | ( | ) |
Definition at line 320 of file class.ActiveRecord.php.
| ActiveRecord::setConnectorContainerName | ( | string | $connector_container_name | ) |
Definition at line 67 of file class.ActiveRecord.php.
References $connector_container_name.
| ActiveRecord::setPrimaryFieldValue | ( | $value | ) |
| $value |
Definition at line 85 of file class.ActiveRecord.php.
References arFieldCache\getPrimaryFieldName().
Here is the call graph for this function:| ActiveRecord::sleep | ( | $field_name | ) |
| $field_name |
Reimplemented in ilDclTableView, ilDclTableViewFieldSetting, ilOrgUnitPermission, and ilADTActiveRecordWrapper.
Definition at line 158 of file class.ActiveRecord.php.
| ActiveRecord::store | ( | ) |
Reimplemented in ilOrgUnitPathStorage.
Definition at line 308 of file class.ActiveRecord.php.
References arFieldCache\getPrimaryFieldName().
Here is the call graph for this function:| ActiveRecord::storeObjectToCache | ( | ) |
Definition at line 106 of file class.ActiveRecord.php.
References arObjectCache\store().
Here is the call graph for this function:
|
staticfinal |
Definition at line 230 of file class.ActiveRecord.php.
|
staticfinal |
Definition at line 293 of file class.ActiveRecord.php.
| ActiveRecord::update | ( | ) |
Reimplemented in ilDclFieldProperty, ilOrgUnitPosition, ilOrgUnitPermission, ilAccessibilityDocumentCriterionAssignment, CachedActiveRecord, ilTermsOfServiceDocumentCriterionAssignment, and ilTermsOfServiceDocument.
Definition at line 375 of file class.ActiveRecord.php.
References arObjectCache\store().
Referenced by ilAccessibilityDocumentGUI\detachCriterionAssignment(), and ilOrgUnitPathStorage\store().
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.
| ActiveRecord::wakeUp | ( | $field_name, | |
| $field_value | |||
| ) |
| $field_name | |
| $field_value |
Reimplemented in ilDclTableView, ilDclTableViewFieldSetting, ilOrgUnitPermission, ilADNNotification, and ilADTActiveRecordWrapper.
Definition at line 168 of file class.ActiveRecord.php.
|
static |
| $where | ||
| null | $operator |
Definition at line 480 of file class.ActiveRecord.php.
Referenced by ilOrgUnitPosition\afterObjectLoad(), ilDclTableView\createFieldSetting(), ilObjOrgUnit\delete(), ilMMAbstractItemFacade\deleteAssociatedTranslations(), ilBiblEntryFactory\deleteEntryById(), ilBiblFieldFilterFactory\filterItemsForTable(), OrgUnit\Positions\UserAssignment\ilOrgUnitUserAssignmentRepository\findAllUserAssingmentsByUserIds(), ilBiblFieldFilterFactory\findByFieldId(), ilBiblEntryFactory\findByIdAndTypeString(), ilOrgUnitOperationContextQueries\findByName(), ilOrgUnitOperationQueries\findByOperationString(), ilOrgUnitUserAssignment\findOrCreateAssignment(), OrgUnit\Positions\UserAssignment\ilOrgUnitUserAssignmentRepository\findOrCreateAssignment(), ilBiblFieldFactory\findOrCreateFieldOfAttribute(), ilBiblEntryFactory\getAllAttributesByEntryId(), ilDclSelectionOption\getAllForField(), ilBiblFieldFilterFactory\getAllForObjectId(), ilDclTableView\getAllForTableId(), ilBiblEntryFactory\getARInstance(), ilBiblFieldFactory\getARInstance(), ilObjOrgUnitTree\getAssignements(), ilOrgUnitUserAssignmentQueries\getAssignmentOrFail(), OrgUnit\Positions\UserAssignment\ilOrgUnitUserAssignmentRepository\getAssignmentOrFail(), ilOrgUnitUserAssignmentQueries\getAssignmentsOfUserId(), OrgUnit\Positions\UserAssignment\ilOrgUnitUserAssignmentRepository\getAssignmentsOfUserId(), ilOrgUnitUserAssignmentQueries\getAssignmentsOfUserIdAndPosition(), ilBiblAttributeFactory\getAttributesForEntry(), ILIAS\BackgroundTasks\Implementation\Persistence\BasicPersistence\getBucketIdsByState(), ILIAS\BackgroundTasks\Implementation\Persistence\BasicPersistence\getBucketIdsOfUser(), ILIAS\BackgroundTasks\Implementation\Persistence\BasicPersistence\getBucketMetaOfUser(), ilBiblFieldFilterFactory\getByObjectIdAndField(), ilBiblTranslationFactory\getCollectionOfTranslationsForField(), ilOrgUnitPosition\getCorePosition(), ilDclTableView\getCountForTableId(), ilOrgUnitPosition\getDependentAuthorities(), ilAccessibilityDocumentGUI\getDocumentsByServerRequest(), ilTermsOfServiceDocumentGUI\getDocumentsByServerRequest(), ilDclCache\getFieldProperties(), ilDclTableView\getFieldSetting(), ilDclTableView\getFieldSettings(), ilDclTableView\getFilterableFieldSettings(), ilBiblDataFactory\getIlBiblDataById(), ilDclTableFieldSetting\getInstance(), ilOrgUnitOperationQueries\getOperationsForContextId(), ilOrgUnitOperationQueries\getOperationsForContextName(), ilOrgUnitUserAssignmentQueries\getOrgUnitIdsOfUsersPosition(), ilDclTableHelper\getStandardViewsByVisibleTables(), ilOrgUnitPermissionQueries\getTemplateSetForContextName(), ilMMItemRepository\getTopItems(), ilOrgUnitUserAssignmentQueries\getUserAssignmentsOfPosition(), OrgUnit\Positions\UserAssignment\ilOrgUnitUserAssignmentRepository\getUserAssignmentsOfPosition(), ilOrgUnitUserAssignmentQueries\getUserIdsOfOrgUnit(), OrgUnit\Positions\UserAssignment\ilOrgUnitUserAssignmentRepository\getUserIdsOfOrgUnit(), ilOrgUnitUserAssignmentQueries\getUserIdsOfOrgUnits(), OrgUnit\Positions\UserAssignment\ilOrgUnitUserAssignmentRepository\getUserIdsOfOrgUnits(), ilOrgUnitUserAssignmentQueries\getUserIdsOfOrgUnitsInPosition(), OrgUnit\Positions\UserAssignment\ilOrgUnitUserAssignmentRepository\getUserIdsOfOrgUnitsInPosition(), ilOrgUnitUserAssignmentQueries\getUserIdsOfOrgUnitsOfUsersPosition(), OrgUnit\Positions\UserAssignment\ilOrgUnitUserAssignmentRepository\getUserIdsOfOrgUnitsOfUsersPosition(), ilOrgUnitUserAssignmentQueries\getUserIdsOfPosition(), OrgUnit\Positions\UserAssignment\ilOrgUnitUserAssignmentRepository\getUserIdsOfPosition(), ilDclBaseFieldModel\getViewSettings(), ilDclTableView\getVisibleFields(), ilADNDismiss\hasDimissed(), ilOrgUnitPermissionQueries\hasLocalSet(), ilBiblEntryFactory\loadParsedAttributesByEntryId(), ilMMItemTranslationTableGUI\parseData(), ilDclCache\preloadFieldProperties(), ilOrgUnitOperationContextQueries\registerNewContext(), ilADNNotification\resetForAllUsers(), ILIAS\OrgUnit\Webservices\SOAP\RemoveUserIdFromPositionInOrgUnit\run(), ilObjTermsOfServiceGUI\showMissingDocuments(), ilOrgUnitSimpleUserImport\simpleUserImportElement(), and ilOrgUnitPosition\storeAuthorities().
Here is the caller graph for this function:
|
protected |
Definition at line 26 of file class.ActiveRecord.php.
|
protected |
Definition at line 27 of file class.ActiveRecord.php.
Referenced by getConnectorContainerName(), and setConnectorContainerName().
|
protected |
Definition at line 28 of file class.ActiveRecord.php.