|
ILIAS
release_8 Revision v8.24
|
Interface ilDBInterface. More...
Inheritance diagram for ilDBInterface:
Collaboration diagram for ilDBInterface:Public Member Functions | |
| doesCollationSupportMB4Strings () | |
| sanitizeMB4StringIfNotSupported (string $query) | |
| initFromIniFile (?ilIniFile $ini=null) | |
| connect (bool $return_false_on_error=false) | |
| nextId (string $table_name) | |
| createTable (string $table_name, array $fields, bool $drop_table=false, bool $ignore_erros=false) | |
| addPrimaryKey (string $table_name, array $primary_keys) | |
| createSequence (string $table_name, int $start=1) | |
| getSequenceName (string $table_name) | |
| tableExists (string $table_name) | |
| tableColumnExists (string $table_name, string $column_name) | |
| addTableColumn (string $table_name, string $column_name, array $attributes) | |
| dropTable (string $table_name, bool $error_if_not_existing=true) | |
| renameTable (string $old_name, string $new_name) | |
| query (string $query) | |
| Run a (read-only) Query on the database. More... | |
| fetchAll (ilDBStatement $statement, int $fetch_mode=ilDBConstants::FETCHMODE_ASSOC) | |
| dropSequence (string $table_name) | |
| dropTableColumn (string $table_name, string $column_name) | |
| renameTableColumn (string $table_name, string $column_old_name, string $column_new_name) | |
| insert (string $table_name, array $values) | |
| fetchObject (ilDBStatement $query_result) | |
| update (string $table_name, array $values, array $where) | |
| @description $where MUST contain existing columns only. More... | |
| manipulate (string $query) | |
| Run a (write) Query on the database. More... | |
| fetchAssoc (ilDBStatement $statement) | |
| numRows (ilDBStatement $statement) | |
| quote ($value, string $type) | |
| addIndex (string $table_name, array $fields, string $index_name='', bool $fulltext=false) | |
| indexExistsByFields (string $table_name, array $fields) | |
| getDSN () | |
| Get DSN. More... | |
| getDBType () | |
| Get DSN. More... | |
| lockTables (array $tables) | |
| Abstraction of lock table. More... | |
| unlockTables () | |
| Unlock tables locked by previous lock table calls. More... | |
| in (string $field, array $values, bool $negate=false, string $type="") | |
| queryF (string $query, array $types, array $values) | |
| manipulateF (string $query, array $types, array $values) | |
| useSlave (bool $bool) | |
| setLimit (int $limit, int $offset=0) | |
| like (string $column, string $type, string $value="?", bool $case_insensitive=true) | |
| Generate a like subquery. More... | |
| now () | |
| replace (string $table, array $primary_keys, array $other_columns) | |
| Replace into method. More... | |
| equals (string $columns, $value, string $type, bool $emptyOrNull=false) | |
| setDBUser (string $user) | |
| setDBPort (int $port) | |
| setDBPassword (string $password) | |
| setDBHost (string $host) | |
| upper (string $expression) | |
| lower (string $expression) | |
| substr (string $expression) | |
| prepare (string $a_query, array $a_types=null, array $a_result_types=null) | |
| Prepare a query (SELECT) statement to be used with execute. More... | |
| prepareManip (string $a_query, ?array $a_types=null) | |
| enableResultBuffering (bool $a_status) | |
| execute (ilDBStatement $stmt, array $data=[]) | |
| sequenceExists (string $sequence) | |
| listSequences () | |
| supports (string $feature) | |
| supportsFulltext () | |
| supportsSlave () | |
| supportsTransactions () | |
| listTables () | |
| loadModule (string $module) | |
| getAllowedAttributes () | |
| concat (array $values, bool $allow_null=true) | |
| locate (string $needle, string $string, int $start_pos=1) | |
| quoteIdentifier (string $identifier, bool $check_option=false) | |
| modifyTableColumn (string $table, string $column, array $attributes) | |
| free (ilDBStatement $a_st) | |
| checkTableName (string $a_name) | |
| beginTransaction () | |
| commit () | |
| rollback () | |
| constraintName (string $a_table, string $a_constraint) | |
| dropIndex (string $a_table, string $a_name="i1") | |
| createDatabase (string $a_name, string $a_charset="utf8", string $a_collation="") | |
| dropIndexByFields (string $table_name, array $afields) | |
| getPrimaryKeyIdentifier () | |
| addFulltextIndex (string $table_name, array $afields, string $a_name='in') | |
| dropFulltextIndex (string $a_table, string $a_name) | |
| isFulltextIndex (string $a_table, string $a_name) | |
| setStorageEngine (string $storage_engine) | |
| getStorageEngine () | |
| buildAtomQuery () | |
| groupConcat (string $a_field_name, string $a_seperator=",", ?string $a_order=null) | |
| cast (string $a_field_name, string $a_dest_type) | |
| primaryExistsByFields (string $table_name, array $fields) | |
Static Public Member Functions | |
| static | getReservedWords () |
| Get reserved words. More... | |
| static | isReservedWord (string $a_word) |
Interface ilDBInterface.
Definition at line 26 of file interface.ilDBInterface.php.
| ilDBInterface::addFulltextIndex | ( | string | $table_name, |
| array | $afields, | ||
| string | $a_name = 'in' |
||
| ) |
Implemented in ilDBPdo, and ilDBPdoMySQLInnoDB.
| ilDBInterface::addIndex | ( | string | $table_name, |
| array | $fields, | ||
| string | $index_name = '', |
||
| bool | $fulltext = false |
||
| ) |
Implemented in ilDBPdo.
| ilDBInterface::addPrimaryKey | ( | string | $table_name, |
| array | $primary_keys | ||
| ) |
Implemented in ilDBPdo.
Referenced by ILIAS\Portfolio\Setup\ilPortfolioDBUpdateSteps\step_1().
Here is the caller graph for this function:| ilDBInterface::addTableColumn | ( | string | $table_name, |
| string | $column_name, | ||
| array | $attributes | ||
| ) |
Implemented in ilDBPdo.
Referenced by ILIAS\MediaCast\Setup\ilMediaCastDBUpdateSteps\step_1(), ILIAS\MediaObjects\Setup\ilMediaObjectsDBUpdateSteps\step_1(), ILIAS\MediaCast\Setup\ilMediaCastDBUpdateSteps\step_2(), and ILIAS\MediaCast\Setup\ilMediaCastDBUpdateSteps\step_3().
Here is the caller graph for this function:| ilDBInterface::beginTransaction | ( | ) |
| ilDBInterface::buildAtomQuery | ( | ) |
Implemented in ilDBPdo, and ilDBPdoMySQLGalera.
Referenced by ilObjectActivation\createDefaultEntry().
Here is the caller graph for this function:| ilDBInterface::cast | ( | string | $a_field_name, |
| string | $a_dest_type | ||
| ) |
Implemented in ilDBPdo.
Referenced by ilMaterializedPathTree\createMaterializedPath().
Here is the caller graph for this function:| ilDBInterface::checkTableName | ( | string | $a_name | ) |
Implemented in ilDBPdo.
| ilDBInterface::commit | ( | ) |
| ilDBInterface::connect | ( | bool | $return_false_on_error = false | ) |
Implemented in ilDBPdo.
| ilDBInterface::constraintName | ( | string | $a_table, |
| string | $a_constraint | ||
| ) |
Implemented in ilDBPdo.
| ilDBInterface::createDatabase | ( | string | $a_name, |
| string | $a_charset = "utf8", |
||
| string | $a_collation = "" |
||
| ) |
Implemented in ilDBPdo.
| ilDBInterface::createSequence | ( | string | $table_name, |
| int | $start = 1 |
||
| ) |
Implemented in ilDBPdo.
| ilDBInterface::createTable | ( | string | $table_name, |
| array | $fields, | ||
| bool | $drop_table = false, |
||
| bool | $ignore_erros = false |
||
| ) |
Implemented in ilDBPdo.
Referenced by ILIAS\Portfolio\Setup\ilPortfolioDBUpdateSteps\step_1().
Here is the caller graph for this function:| ilDBInterface::doesCollationSupportMB4Strings | ( | ) |
Implemented in ilDBPdo, and ilDBPdoMySQL.
| ilDBInterface::dropFulltextIndex | ( | string | $a_table, |
| string | $a_name | ||
| ) |
Implemented in ilDBPdo.
| ilDBInterface::dropIndex | ( | string | $a_table, |
| string | $a_name = "i1" |
||
| ) |
Implemented in ilDBPdo.
| ilDBInterface::dropIndexByFields | ( | string | $table_name, |
| array | $afields | ||
| ) |
Implemented in ilDBPdo.
| ilDBInterface::dropSequence | ( | string | $table_name | ) |
Implemented in ilDBPdo.
| ilDBInterface::dropTable | ( | string | $table_name, |
| bool | $error_if_not_existing = true |
||
| ) |
Implemented in ilDBPdo.
| ilDBInterface::dropTableColumn | ( | string | $table_name, |
| string | $column_name | ||
| ) |
Implemented in ilDBPdo.
| ilDBInterface::enableResultBuffering | ( | bool | $a_status | ) |
Implemented in ilDBPdo.
| ilDBInterface::equals | ( | string | $columns, |
| $value, | |||
| string | $type, | ||
| bool | $emptyOrNull = false |
||
| ) |
Implemented in ilDBPdo.
| ilDBInterface::execute | ( | ilDBStatement | $stmt, |
| array | $data = [] |
||
| ) |
| ilDatabaseException |
Referenced by ilDatabasePopulatedObjective\readDumpFile().
Here is the caller graph for this function:| ilDBInterface::fetchAll | ( | ilDBStatement | $statement, |
| int | $fetch_mode = ilDBConstants::FETCHMODE_ASSOC |
||
| ) |
Implemented in ilDBPdo.
Referenced by ilRecommendedContentDBRepository\getDeclinedUserObjectRecommendations(), ilRecommendedContentDBRepository\getRecommendationsOfRoles(), and ilRecommendedContentDBRepository\getUserObjectRecommendations().
Here is the caller graph for this function:| ilDBInterface::fetchAssoc | ( | ilDBStatement | $statement | ) |
Implemented in ilDBPdo.
Referenced by ilObject\_getAllReferences(), ilObject\_getIdForImportId(), ilObject\_getIdsForTitle(), ilObject\_getLastUpdateOfObjects(), ilObject\_getObjectsByType(), ilObject\_getObjectsDataForType(), ilObject\_lookupCreationDate(), ilObject\_lookupDeletedDate(), ilFavouritesDBRepository\add(), ilBookingPrefBasedBookGatewayRepository\checkProcessHash(), ilMaterializedPathTree\createFromParentRelation(), ilMaterializedPathTree\createMaterializedPath(), ilWorkspaceTree\exists(), ilAdvancedMDFieldDefinition\exists(), ILIAS\Style\Content\Container\ContainerDBRepository\filterByReuse(), ilExAssignment\fixInstructionFileOrdering(), ilObject\fixMissingTitles(), ILIAS\Survey\Participants\InvitationsDBRepository\getAllForSurvey(), ILIAS\Survey\Participants\InvitationsDBRepository\getAllForUser(), ilObject\getAllOwnedRepositoryObjects(), ilExcAssMemberStateRepository\getAssignmentIdsWithGradingNeeded(), ILIAS\Style\Content\CharacteristicDBRepo\getByKey(), ILIAS\Style\Content\CharacteristicDBRepo\getByTypes(), ilBenchmark\getCurrentRecordNumber(), ilBenchmark\getDbBenchRecords(), ilMDCopyrightSelectionEntry\getDefault(), ilPageObject\getEditLock(), ilPageObject\getEditLockInfo(), ilContainerFilterFieldData\getFilterSetForRefId(), ilPageObject\getHistoryEntries(), ilPageObject\getHistoryEntry(), ilPageObject\getHistoryInfo(), ilAdvancedMDFieldDefinition\getInstance(), ilObjectActivation\getItem(), ilObject\getLongDescriptions(), ILIAS\COPage\History\HistoryDBRepository\getMaxHistEntryPerPageOlderThanX(), ILIAS\Style\Content\Object\ObjectDBRepository\getOwnedStyles(), ilSkillTreeDBRepository\getParentNodeIdForNodeId(), ilBookingPrefBasedBookGatewayRepository\getPoolsWithOverdueBooking(), ilObjBookingPool\getPoolsWithReminders(), ilBookingPreferencesDBRepository\getPreferences(), ilExternalFeedRemoveMigration\getRemainingAmountOfSteps(), ilWorkspaceFolderUserSettingsRepository\getSortation(), ilWorkspaceFolderUserSettingsRepository\getSortationMultiple(), ilSkillTreeDBRepository\getTreeIdForNodeId(), ilSkillResources\getTriggerLevelsForRefId(), ilObjUseBookDBRepository\getUsedBookingPools(), ilUserProfilePromptDataGateway\getUserPrompt(), ILIAS\Exercise\Submission\SubmissionDBRepository\getUserSubmissionState(), ILIAS\Survey\Settings\SettingsDBRepository\hasEnded(), ilGlossaryTermReferences\hasReferences(), ilBookingPrefBasedBookGatewayRepository\hasRun(), ilRecommendedContentDBRepository\ifExistsObjectRecommendation(), ilFavouritesDBRepository\ifIsFavourite(), ilSkillTree\initChildsData(), ilExAssignment\instructionFileOrderGetMax(), ILIAS\Style\Content\Object\ObjectDBRepository\isOwned(), ilFavouritesDBRepository\loadData(), ilObjOrgUnit\loadRootOrgRefIdAndId(), ilPageObject\lookupParentId(), ilBookingObject\lookupPoolId(), ilBookingObject\lookupTitle(), ilPageObject\preloadActivationDataByParentId(), ilObjectActivation\preloadData(), ilContainerGlobalProfiles\read(), ilContainerLocalProfiles\read(), ilContainerSkills\read(), ilObjNotificationSettings\read(), ILIAS\Style\Content\Container\ContainerDBRepository\readReuse(), ilPageObject\releasePageLock(), SurveySearch\search(), ilForumCronNotification\sendCronForumNotification(), ilExternalFeedRemoveMigration\step(), ILIAS\BookingManager\Setup\ilBookingManager8HotfixDBUpdateSteps\step_1(), and ILIAS\Notes\Setup\ilNotesDBUpdateSteps\step_1().
Here is the caller graph for this function:| ilDBInterface::fetchObject | ( | ilDBStatement | $query_result | ) |
Implemented in ilDBPdo.
Referenced by ilObject\_lookupObjIdByImportId(), ilDatabaseEnvironmentValidObjective\checkDefaultEngine(), ilDatabaseEnvironmentValidObjective\checkRowFormat(), ilDatabasePopulatedObjective\getDefaultEngine(), ilObjOrgUnit\getIconsCache(), and ilMDCopyrightSelectionEntry\lookupCopyrightFromImport().
Here is the caller graph for this function:| ilDBInterface::free | ( | ilDBStatement | $a_st | ) |
Implemented in ilDBPdo.
| ilDBInterface::getAllowedAttributes | ( | ) |
Implemented in ilDBPdo.
| ilDBInterface::getDBType | ( | ) |
Get DSN.
This must be overwritten in DBMS specific class.
Implemented in ilDBPdo.
Referenced by ilDatabasePopulatedObjective\setDefaultEngine().
Here is the caller graph for this function:| ilDBInterface::getDSN | ( | ) |
| ilDBInterface::getPrimaryKeyIdentifier | ( | ) |
Implemented in ilDBPdo.
|
static |
Get reserved words.
This must be overwritten in DBMS specific class. This is mainly used to check whether a new identifier can be problematic because it is a reserved word. So createTable / alterTable usually check these.
| ilDBInterface::getSequenceName | ( | string | $table_name | ) |
Implemented in ilDBPdo.
| ilDBInterface::getStorageEngine | ( | ) |
Implemented in ilDBPdo.
| ilDBInterface::groupConcat | ( | string | $a_field_name, |
| string | $a_seperator = ",", |
||
| ?string | $a_order = null |
||
| ) |
Implemented in ilDBPdo.
| ilDBInterface::in | ( | string | $field, |
| array | $values, | ||
| bool | $negate = false, |
||
| string | $type = "" |
||
| ) |
Implemented in ilDBPdo.
Referenced by ilObject\_getLastUpdateOfObjects(), ILIAS\Style\Content\Container\ContainerDBRepository\filterByReuse(), ilObject\fixMissingTitles(), ilObject\getAllOwnedRepositoryObjects(), ilExcAssMemberStateRepository\getAssignmentIdsWithGradingNeeded(), ilObject\getLongDescriptions(), ILIAS\Style\Content\Object\ObjectDBRepository\getOwnedStyles(), ilRecommendedContentDBRepository\getRecommendationsOfRoles(), ilWorkspaceFolderUserSettingsRepository\getSortationMultiple(), ilExSubmission\getSubmissionsForFilename(), ILIAS\Exercise\Submission\SubmissionDBRepository\getUserSubmissionState(), ilObjectActivation\hasChangeableTimings(), ILIAS\Survey\Settings\SettingsDBRepository\hasEnded(), ilObjectActivation\hasTimings(), ilFavouritesDBRepository\loadData(), ilMDRights\lookupRightsByTypeAndCopyright(), ilObjectActivation\preloadData(), ilCOPageDataSet\readData(), ilObject\setDeletedDates(), and ilExternalFeedRemoveMigration\step().
Here is the caller graph for this function:| ilDBInterface::indexExistsByFields | ( | string | $table_name, |
| array | $fields | ||
| ) |
Implemented in ilDBPdo.
| ilDBInterface::insert | ( | string | $table_name, |
| array | $values | ||
| ) |
Implemented in ilDBPdo.
Referenced by ilObject\_writeDescription(), ilRecommendedContentDBRepository\addObjectRecommendation(), ilRecommendedContentDBRepository\declineObjectRecommendation(), ilLSPostConditionDB\insert(), ilBenchmark\save(), ilContainerFilterFieldData\saveFilterSetForRefId(), ilBookingPreferencesDBRepository\savePreferences(), ilBookingPreferencesDBRepository\savePreferencesOfUser(), ILIAS\MediaCast\Setup\ilMediaCastDBUpdateSteps\step_4(), ilStudyProgrammeAutoCategoryDBRepository\update(), ilStudyProgrammeAutoMembershipsDBRepository\update(), and ilObjUseBookDBRepository\updateUsedBookingPools().
Here is the caller graph for this function:| ilDBInterface::isFulltextIndex | ( | string | $a_table, |
| string | $a_name | ||
| ) |
Implemented in ilDBPdo.
|
static |
Implemented in ilDBPdo.
| ilDBInterface::like | ( | string | $column, |
| string | $type, | ||
| string | $value = "?", |
||
| bool | $case_insensitive = true |
||
| ) |
Generate a like subquery.
Implemented in ilDBPdo.
Referenced by ilObject\_getIdsForTitle(), and SurveySearch\search().
Here is the caller graph for this function:| ilDBInterface::listSequences | ( | ) |
Implemented in ilDBPdo.
| ilDBInterface::listTables | ( | ) |
Implemented in ilDBPdo.
Referenced by ilDatabasePopulatedObjective\isDatabasePopulated().
Here is the caller graph for this function:| ilDBInterface::loadModule | ( | string | $module | ) |
| ilDBInterface::locate | ( | string | $needle, |
| string | $string, | ||
| int | $start_pos = 1 |
||
| ) |
Implemented in ilDBPdo.
| ilDBInterface::lockTables | ( | array | $tables | ) |
Abstraction of lock table.
| array | table definitions |
Implemented in ilDBPdo.
| ilDBInterface::lower | ( | string | $expression | ) |
Implemented in ilDBPdo.
| ilDBInterface::manipulate | ( | string | $query | ) |
Run a (write) Query on the database.
Implemented in ilDBPdo.
Referenced by ilBenchmark\clearData(), ilADTActiveRecordByType\create(), ilContainerGlobalProfiles\delete(), ilContainerMemberSkills\delete(), ilContainerSkills\delete(), ilObjNotificationSettings\delete(), ilLSPostConditionDB\delete(), ilObjectActivation\deleteAllEntries(), ilAdvancedMDRecordScope\deleteByRecordId(), ilLORandomTestQuestionPools\deleteForObjectiveAndTestType(), ilGlossaryTermReferences\deleteReferencesOfTerm(), ilExAssignment\fixInstructionFileOrdering(), ilPageObject\getEditLock(), ilPageObject\increaseViewCnt(), ilExAssignment\instructionFileDeleteOrder(), ilExAssignment\instructionFileInsertOrder(), ilExternalFeedRemoveMigration\manipulate(), ilContainerMemberSkills\publish(), ilPageObject\releasePageLock(), ilExAssignment\renameInstructionFile(), ilLOUserResults\resetFinalByObjective(), ilContainerGlobalProfiles\save(), ilContainerSkills\save(), ilBenchmark\save(), ilContainerMemberSkills\saveLevelForSkills(), ilDatabasePopulatedObjective\setDefaultEngine(), ilObject\setDeletedDates(), ILIAS\MediaCast\Setup\ilMediaCastDBUpdateSteps\step_4(), ilStudyProgrammeAutoCategoryDBRepository\update(), ilStudyProgrammeAutoMembershipsDBRepository\update(), and ilLOUserResults\updateResultLimit().
Here is the caller graph for this function:| ilDBInterface::manipulateF | ( | string | $query, |
| array | $types, | ||
| array | $values | ||
| ) |
| $types | string[] |
Implemented in ilDBPdo.
Referenced by ilTree\_removeEntry(), ilPageObject\_writeParentId(), ilFavouritesDBRepository\add(), ilMaterializedPathTree\createMaterializedPath(), ILIAS\Survey\Code\CodeDBRepo\delete(), ILIAS\Survey\Code\CodeDBRepo\deleteAll(), ilLMMenuEditor\fixImportMenuItems(), ILIAS\Survey\Participants\InvitationsDBRepository\remove(), ilFavouritesDBRepository\remove(), ILIAS\Survey\Participants\InvitationsDBRepository\removeAll(), ilFavouritesDBRepository\removeFavouritesOfRefId(), ilFavouritesDBRepository\removeFavouritesOfUser(), ilRecommendedContentDBRepository\removeObjectRecommendation(), ilRecommendedContentDBRepository\removeRecommendationsOfRefId(), ilRecommendedContentDBRepository\removeRecommendationsOfRole(), ilRecommendedContentDBRepository\removeRecommendationsOfUser(), ilRecommendedContentDBRepository\removeRoleRecommendation(), ilTreeImplementationSwitch\renumberNestedSet(), ilContainerFilterFieldData\saveFilterSetForRefId(), ILIAS\Wiki\Setup\ilWiki8HotfixDBUpdateSteps\step_1(), ILIAS\Notes\Setup\ilNotesDBUpdateSteps\step_1(), and ilTestRandomQuestionSetStagingPoolQuestionList\updateSourceQuestionPoolId().
Here is the caller graph for this function:| ilDBInterface::modifyTableColumn | ( | string | $table, |
| string | $column, | ||
| array | $attributes | ||
| ) |
Implemented in ilDBPdo.
Referenced by ILIAS\Wiki\Setup\ilWikiDBUpdateSteps\step_1(), ILIAS\Wiki\Setup\ilWikiDBUpdateSteps\step_2(), ILIAS\MediaObjects\Setup\ilMediaObjectsDBUpdateSteps\step_2(), and ILIAS\Wiki\Setup\ilWikiDBUpdateSteps\step_3().
Here is the caller graph for this function:| ilDBInterface::nextId | ( | string | $table_name | ) |
Implemented in ilDBPdo, and ilDBPdoMySQL.
Referenced by ilBenchmark\save().
Here is the caller graph for this function:| ilDBInterface::now | ( | ) |
Implemented in ilDBPdo.
Referenced by ilObject\_setDeletedDate(), ilObject\_writeDescription(), ilObject\_writeImportId(), ilObject\_writeTitle(), and ilObject\setDeletedDates().
Here is the caller graph for this function:| ilDBInterface::numRows | ( | ilDBStatement | $statement | ) |
Implemented in ilDBPdo.
Referenced by ilObject\_exists(), ilObject\_getObjectsByType(), ilObject\_lookupObjIdByImportId(), ilObjectActivation\createDefaultEntry(), and ilExAssignment\instructionFileExistsInDb().
Here is the caller graph for this function:| ilDBInterface::prepare | ( | string | $a_query, |
| array | $a_types = null, |
||
| array | $a_result_types = null |
||
| ) |
Prepare a query (SELECT) statement to be used with execute.
| ilDBInterface::prepareManip | ( | string | $a_query, |
| ?array | $a_types = null |
||
| ) |
Implemented in ilDBPdo.
Referenced by ilDatabasePopulatedObjective\readDumpFile().
Here is the caller graph for this function:| ilDBInterface::primaryExistsByFields | ( | string | $table_name, |
| array | $fields | ||
| ) |
Implemented in ilDBPdo.
| ilDBInterface::query | ( | string | $query | ) |
Run a (read-only) Query on the database.
Implemented in ilDBPdo.
Referenced by ilObject\_exists(), ilObject\_getAllReferences(), ilObject\_getIdForImportId(), ilObject\_getIdsForTitle(), ilObject\_getLastUpdateOfObjects(), ilObject\_getObjectsByType(), ilObject\_getObjectsDataForType(), ilObject\_lookupCreationDate(), ilObject\_lookupDeletedDate(), ilObject\_lookupImportId(), ilObject\_lookupObjIdByImportId(), ilObject\_writeDescription(), ilDatabaseEnvironmentValidObjective\checkDefaultEngine(), ilDatabaseEnvironmentValidObjective\checkRowFormat(), ilObjectActivation\createDefaultEntry(), ilDBUpdate\execQuery(), ilAdvancedMDFieldDefinition\exists(), ilExAssignment\fixInstructionFileOrdering(), ilObject\fixMissingTitles(), ilObject\getAllOwnedRepositoryObjects(), ilBenchmark\getCurrentRecordNumber(), ilBenchmark\getDbBenchRecords(), ilMDCopyrightSelectionEntry\getDefault(), ilDatabasePopulatedObjective\getDefaultEngine(), ilPageObject\getEditLock(), ilPageObject\getEditLockInfo(), ilEventItems\getEventsForItemOrderedByStartingTime(), ilPageObject\getHistoryEntries(), ilPageObject\getHistoryInfo(), ilObjOrgUnit\getIconsCache(), ilAdvancedMDFieldDefinition\getInstance(), ilObjectActivation\getItem(), ilObject\getLongDescriptions(), ilConditionHandler\getNumberOfConditionsOfTrigger(), ilRecommendedContentDBRepository\getRecommendationsOfRoles(), ilSkillResources\getTriggerLevelsForRefId(), ilObjectActivation\hasChangeableTimings(), ilGlossaryTermReferences\hasReferences(), ilObjectActivation\hasTimings(), ilExAssignment\instructionFileExistsInDb(), ilFavouritesDBRepository\loadData(), ilObjOrgUnit\loadRootOrgRefIdAndId(), ilDidacticTemplateSettings\lookupAssignedObjectTypes(), ilMDCopyrightSelectionEntry\lookupCopyrightFromImport(), ilOerHarvesterObjectStatus\lookupHarvested(), ilSCTasks\lookupIdentifierForTask(), ilObjCourseReference\lookupMemberUpdateEnabled(), ilOerHarvesterObjectStatus\lookupObjIdByHarvestingId(), ilPageObject\lookupParentId(), ilCalendarCategories\lookupRemoteCalendars(), ilMDRights\lookupRightsByTypeAndCopyright(), ilTree\lookupTreesForNode(), ilPageObject\preloadActivationDataByParentId(), ilObjectActivation\preloadData(), ilContainerGlobalProfiles\read(), ilContainerLocalProfiles\read(), ilContainerMemberSkills\read(), ilContainerSkills\read(), ilObjNotificationSettings\read(), ilObjectActivation\read(), ilObjLTIAdministration\readReleaseObjects(), ilPageObject\releasePageLock(), ilTreeImplementationSwitch\renumberNestedSet(), SurveySearch\search(), and ILIAS\Notes\Setup\ilNotesDBUpdateSteps\step_1().
Here is the caller graph for this function:| ilDBInterface::queryF | ( | string | $query, |
| array | $types, | ||
| array | $values | ||
| ) |
| $types | string[] |
Implemented in ilDBPdo.
Referenced by ilFavouritesDBRepository\add(), ilBookingPrefBasedBookGatewayRepository\checkProcessHash(), ilMaterializedPathTree\createFromParentRelation(), ilMaterializedPathTree\createMaterializedPath(), ilWorkspaceTree\exists(), ILIAS\Style\Content\Container\ContainerDBRepository\filterByReuse(), ILIAS\Survey\Participants\InvitationsDBRepository\getAllForSurvey(), ILIAS\Survey\Participants\InvitationsDBRepository\getAllForUser(), ilExcAssMemberStateRepository\getAssignmentIdsWithGradingNeeded(), ILIAS\Style\Content\CharacteristicDBRepo\getByKey(), ILIAS\Style\Content\CharacteristicDBRepo\getByTypes(), ilRecommendedContentDBRepository\getDeclinedUserObjectRecommendations(), ilContainerFilterFieldData\getFilterSetForRefId(), ilPageObject\getHistoryEntry(), ILIAS\COPage\History\HistoryDBRepository\getMaxHistEntryPerPageOlderThanX(), ILIAS\Style\Content\Object\ObjectDBRepository\getOwnedStyles(), ilSkillTreeDBRepository\getParentNodeIdForNodeId(), ilBookingPrefBasedBookGatewayRepository\getPoolsWithOverdueBooking(), ilObjBookingPool\getPoolsWithReminders(), ilBookingPreferencesDBRepository\getPreferences(), ilExternalFeedRemoveMigration\getRemainingAmountOfSteps(), ilWorkspaceFolderUserSettingsRepository\getSortation(), ilWorkspaceFolderUserSettingsRepository\getSortationMultiple(), ilSkillTreeDBRepository\getTreeIdForNodeId(), ilObjUseBookDBRepository\getUsedBookingPools(), ilRecommendedContentDBRepository\getUserObjectRecommendations(), ilUserProfilePromptDataGateway\getUserPrompt(), ILIAS\Exercise\Submission\SubmissionDBRepository\getUserSubmissionState(), ILIAS\Survey\Settings\SettingsDBRepository\hasEnded(), ilBookingPrefBasedBookGatewayRepository\hasRun(), ilRecommendedContentDBRepository\ifExistsObjectRecommendation(), ilFavouritesDBRepository\ifIsFavourite(), ilSkillTree\initChildsData(), ilExAssignment\instructionFileOrderGetMax(), ILIAS\Style\Content\Object\ObjectDBRepository\isOwned(), ilBookingObject\lookupPoolId(), ilBookingObject\lookupTitle(), ILIAS\Style\Content\Container\ContainerDBRepository\readReuse(), ilExternalFeedRemoveMigration\step(), ILIAS\BookingManager\Setup\ilBookingManager8HotfixDBUpdateSteps\step_1(), and ILIAS\Notes\Setup\ilNotesDBUpdateSteps\step_1().
Here is the caller graph for this function:| ilDBInterface::quote | ( | $value, | |
| string | $type | ||
| ) |
| mixed | $value |
Referenced by ilObject\_exists(), ilObject\_getAllReferences(), ilObject\_getIdForImportId(), ilObject\_getIdsForTitle(), ilObject\_getObjectsByType(), ilObject\_getObjectsDataForType(), ilObject\_lookupCreationDate(), ilObject\_lookupDeletedDate(), ilObject\_lookupImportId(), ilObject\_lookupObjIdByImportId(), ilObject\_writeDescription(), arHaving\asSQLStatement(), ilADTActiveRecordByType\create(), ilObjectActivation\createDefaultEntry(), ilMaterializedPathTree\createMaterializedPath(), ilContainerGlobalProfiles\delete(), ilContainerMemberSkills\delete(), ilContainerSkills\delete(), ilObjNotificationSettings\delete(), ilObjectActivation\deleteAllEntries(), ilAdvancedMDRecordScope\deleteByRecordId(), ilLORandomTestQuestionPools\deleteForObjectiveAndTestType(), ilGlossaryTermReferences\deleteReferencesOfTerm(), ilAdvancedMDFieldDefinition\exists(), ilExAssignment\fixInstructionFileOrdering(), ilObject\getAllOwnedRepositoryObjects(), ilPageObject\getAllPages(), ilMDCopyrightSelectionEntry\getDefault(), ilPageObject\getEditLock(), ilPageObject\getEditLockInfo(), ilEventItems\getEventsForItemOrderedByStartingTime(), ilPageObject\getHistoryEntries(), ilPageObject\getHistoryInfo(), ilAdvancedMDFieldDefinition\getInstance(), ilObjectActivation\getItem(), ilPageObject\getLastChangeByParent(), ilPageObject\getNewPages(), ilConditionHandler\getNumberOfConditionsOfTrigger(), ilPageObject\getPageContributors(), ilPageObject\getPagesWithLinks(), ilPageObject\getParentObjectContributors(), ilPageObject\getRecentChanges(), ilSkillResources\getTriggerLevelsForRefId(), ilObjectActivation\hasChangeableTimings(), ilGlossaryTermReferences\hasReferences(), ilObjectActivation\hasTimings(), ilPageObject\increaseViewCnt(), ilExAssignment\instructionFileDeleteOrder(), ilExAssignment\instructionFileExistsInDb(), ilExAssignment\instructionFileInsertOrder(), ilExAssignment\instructionFileOrderGetMax(), ilFavouritesDBRepository\loadData(), ilObjOrgUnit\loadRootOrgRefIdAndId(), ilOrgUnitObjectPositionSetting\lookupActive(), ilSCTasks\lookupIdentifierForTask(), ilObjCourseReference\lookupMemberUpdateEnabled(), ilOerHarvesterObjectStatus\lookupObjIdByHarvestingId(), ilPageObject\lookupParentId(), ilCalendarCategories\lookupRemoteCalendars(), ilTree\lookupTreesForNode(), ilPageObject\preloadActivationDataByParentId(), ilContainerMemberSkills\publish(), ilContainerGlobalProfiles\read(), ilContainerLocalProfiles\read(), ilContainerMemberSkills\read(), ilContainerSkills\read(), ilObjNotificationSettings\read(), ilObjectActivation\read(), ilObjLTIAdministration\readReleaseObjects(), ilPageObject\releasePageLock(), ilExAssignment\renameInstructionFile(), ilTreeImplementationSwitch\renumberNestedSet(), ilLOUserResults\resetFinalByObjective(), ilContainerGlobalProfiles\save(), ilContainerSkills\save(), ilContainerMemberSkills\saveLevelForSkills(), SurveySearch\search(), ilObject\setDeletedDates(), ilExternalFeedRemoveMigration\step(), ILIAS\Notes\Setup\ilNotesDBUpdateSteps\step_1(), ILIAS\MediaCast\Setup\ilMediaCastDBUpdateSteps\step_4(), and ilLOUserResults\updateResultLimit().
Here is the caller graph for this function:| ilDBInterface::quoteIdentifier | ( | string | $identifier, |
| bool | $check_option = false |
||
| ) |
Implemented in ilDBPdo.
Referenced by arHaving\asSQLStatement(), arJoin\asStatementText(), and arStatement\wrapField().
Here is the caller graph for this function:| ilDBInterface::renameTable | ( | string | $old_name, |
| string | $new_name | ||
| ) |
Implemented in ilDBPdo.
| ilDBInterface::renameTableColumn | ( | string | $table_name, |
| string | $column_old_name, | ||
| string | $column_new_name | ||
| ) |
Implemented in ilDBPdo.
| ilDBInterface::replace | ( | string | $table, |
| array | $primary_keys, | ||
| array | $other_columns | ||
| ) |
Replace into method.
| string | table name |
| array | primary key values: array("field1" => array("text", $name), "field2" => ...) |
| array | other values: array("field1" => array("text", $name), "field2" => ...) |
Implemented in ilDBPdo.
Referenced by ILIAS\Survey\Participants\InvitationsDBRepository\add(), ilRecommendedContentDBRepository\addRoleRecommendation(), ilObjNotificationSettings\save(), ILIAS\Notes\Setup\ilNotesDBUpdateSteps\step_1(), ILIAS\Style\Content\Container\ContainerDBRepository\updateReuse(), and ilWorkspaceFolderUserSettingsRepository\updateSortation().
Here is the caller graph for this function:| ilDBInterface::rollback | ( | ) |
| ilDBInterface::sanitizeMB4StringIfNotSupported | ( | string | $query | ) |
| $query | string to sanitize, all MB4-Characters like emojis will re replaced with ??? |
Implemented in ilDBPdo.
| ilDBInterface::sequenceExists | ( | string | $sequence | ) |
Implemented in ilDBPdo.
| ilDBInterface::setDBHost | ( | string | $host | ) |
Implemented in ilDBPdo.
| ilDBInterface::setDBPassword | ( | string | $password | ) |
Implemented in ilDBPdo.
| ilDBInterface::setDBPort | ( | int | $port | ) |
Implemented in ilDBPdo.
| ilDBInterface::setDBUser | ( | string | $user | ) |
Implemented in ilDBPdo.
| ilDBInterface::setLimit | ( | int | $limit, |
| int | $offset = 0 |
||
| ) |
Implemented in ilDBPdo.
Referenced by ilObject\_getIdForImportId().
Here is the caller graph for this function:| ilDBInterface::setStorageEngine | ( | string | $storage_engine | ) |
Implemented in ilDBPdo.
| ilDBInterface::substr | ( | string | $expression | ) |
| ilDBInterface::supports | ( | string | $feature | ) |
Implemented in ilDBPdo.
| ilDBInterface::supportsFulltext | ( | ) |
Implemented in ilDBPdo, and ilDBPdoMySQLInnoDB.
| ilDBInterface::supportsSlave | ( | ) |
Implemented in ilDBPdo.
| ilDBInterface::supportsTransactions | ( | ) |
Implemented in ilDBPdo, ilDBPdoMySQL, ilDBPdoMySQLGalera, and ilDBPdoMySQLInnoDB.
| ilDBInterface::tableColumnExists | ( | string | $table_name, |
| string | $column_name | ||
| ) |
Implemented in ilDBPdo.
Referenced by ILIAS\MediaCast\Setup\ilMediaCastDBUpdateSteps\step_1(), ILIAS\MediaObjects\Setup\ilMediaObjectsDBUpdateSteps\step_1(), ILIAS\MediaCast\Setup\ilMediaCastDBUpdateSteps\step_2(), ILIAS\EmployeeTalk\Setup\ilEmployeeTalkDBUpdateSteps\step_3(), ILIAS\MediaCast\Setup\ilMediaCastDBUpdateSteps\step_3(), and ILIAS\EmployeeTalk\Setup\ilEmployeeTalkDBUpdateSteps\step_6().
Here is the caller graph for this function:| ilDBInterface::tableExists | ( | string | $table_name | ) |
Implemented in ilDBPdo.
Referenced by ILIAS\Portfolio\Setup\ilPortfolioDBUpdateSteps\step_1(), ILIAS\EmployeeTalk\Setup\ilEmployeeTalkDBUpdateSteps\step_2(), and ILIAS\EmployeeTalk\Setup\ilEmployeeTalkDBUpdateSteps\step_5().
Here is the caller graph for this function:| ilDBInterface::unlockTables | ( | ) |
Unlock tables locked by previous lock table calls.
Implemented in ilDBPdo.
| ilDBInterface::update | ( | string | $table_name, |
| array | $values, | ||
| array | $where | ||
| ) |
@description $where MUST contain existing columns only.
statements like [1 => ['integer', 1]] will not work, use a full query and
Implemented in ilDBPdo.
Referenced by ilObject\_resetDeletedDate(), ilObject\_setDeletedDate(), ilObject\_writeDescription(), ilObject\_writeImportId(), ilObject\_writeTitle(), ilBookingPrefBasedBookGatewayRepository\checkProcessHash(), ilRecommendedContentDBRepository\declineObjectRecommendation(), ilLMMenuEditor\fixImportMenuItems(), ILIAS\Style\Content\CharacteristicDBRepo\replaceParameter(), ilBookingPrefBasedBookGatewayRepository\resetRun(), ilUserProfilePromptDataGateway\saveLastUserPrompt(), and ILIAS\BookingManager\Setup\ilBookingManager8HotfixDBUpdateSteps\step_1().
Here is the caller graph for this function:| ilDBInterface::upper | ( | string | $expression | ) |
Implemented in ilDBPdo.
| ilDBInterface::useSlave | ( | bool | $bool | ) |
Implemented in ilDBPdo.