ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilObject Class Reference

Class ilObject Basic functions for all objects. More...

+ Inheritance diagram for ilObject:
+ Collaboration diagram for ilObject:

Public Member Functions

 getObjectProperties ()
 
 flushObjectProperties ()
 
 withReferences ()
 determines whether objects are referenced or not (got ref ids or not) More...
 
 processAutoRating ()
 
 read ()
 
 getId ()
 
 setId (int $id)
 
 setRefId (int $ref_id)
 
 getRefId ()
 
 getType ()
 
 setType (string $type)
 
 getPresentationTitle ()
 get presentation title Normally same as title Overwritten for sessions More...
 
 getTitle ()
 
 getUntranslatedTitle ()
 Get untranslated object title WebDAV needs to access the untranslated title of an object. More...
 
 setTitle (string $title)
 
 getDescription ()
 
 setDescription (string $description)
 
 getLongDescription ()
 get object long description (stored in object_description) More...
 
 getImportId ()
 
 setImportId (string $import_id)
 
 setOfflineStatus (bool $status)
 
 getOfflineStatus ()
 
 supportsOfflineHandling ()
 
 getOwner ()
 
 getOwnerName ()
 get full name of object owner More...
 
 setOwner (int $usr_id)
 
 getCreateDate ()
 Get create date in YYYY-MM-DD HH-MM-SS format. More...
 
 getLastUpdateDate ()
 Get last update date in YYYY-MM-DD HH-MM-SS format. More...
 
 create ()
 note: title, description and type should be set when this function is called More...
 
 update ()
 
 MDUpdateListener (string $element)
 Metadata update listener. More...
 
 createMetaData ()
 
 updateMetaData ()
 
 deleteMetaData ()
 
 updateOwner ()
 update owner of object in db More...
 
 putInTree (int $parent_ref_id)
 maybe this method should be in tree object!? More...
 
 setPermissions (int $parent_ref_id)
 
 setParentRolePermissions (int $parent_ref_id)
 Initialize the permissions of parent roles (local roles of categories, global roles...) This method is overwritten in e.g. More...
 
 createReference ()
 creates reference for object More...
 
 countReferences ()
 
 delete ()
 delete object or referenced object (in the case of a referenced object, object data is only deleted if last reference is deleted) This function removes an object entirely from system!! More...
 
 initDefaultRoles ()
 init default roles settings Purpose of this function is to create a local role folder and local roles, that are needed depending on the object type. More...
 
 applyDidacticTemplate (int $tpl_id)
 
 getXMLZip ()
 
 getHTMLDirectory ()
 
 appendCopyInfo (int $target_id, int $copy_id, int $new_obj_id)
 Prepend Copy info if object with same name exists in that container. More...
 
 cloneDependencies (int $target_id, int $copy_id)
 Clone object dependencies. More...
 
 cloneMetaData (ilObject $target_obj)
 Copy meta data. More...
 
 selfOrParentWithRatingEnabled ()
 
 getPossibleSubObjects (bool $filter=true)
 get all possible sub objects of this type the object can decide which types of sub objects are possible jut in time overwrite if the decision distinguish from standard model More...
 

Static Public Member Functions

static _lookupObjIdByImportId (string $import_id)
 Get (latest) object id for an import id. More...
 
static _lookupImportId (int $obj_id)
 
static _lookupOwnerName (int $owner_id)
 Lookup owner name for owner id. More...
 
static _getIdForImportId (string $import_id)
 
static _getAllReferences (int $id)
 get all reference ids for object ID More...
 
static _lookupTitle (int $obj_id)
 
static lookupOfflineStatus (int $obj_id)
 Lookup offline status using objectDataCache. More...
 
static _lookupOwner (int $obj_id)
 Lookup owner user ID for object ID. More...
 
static _getIdsForTitle (string $title, string $type='', bool $partial_match=false)
 
static _lookupDescription (int $obj_id)
 
static _lookupLastUpdate (int $obj_id, bool $formatted=false)
 
static _getLastUpdateOfObjects (array $obj_ids)
 
static _lookupObjId (int $ref_id)
 
static _setDeletedDate (int $ref_id, int $deleted_by)
 
static setDeletedDates (array $ref_ids, int $user_id)
 
static _resetDeletedDate (int $ref_id)
 
static _lookupDeletedDate (int $ref_id)
 
static _writeTitle (int $obj_id, string $title)
 write title to db (static) More...
 
static _writeDescription (int $obj_id, string $desc)
 write description to db (static) More...
 
static _writeImportId (int $obj_id, string $import_id)
 write import id to db (static) More...
 
static _lookupType (int $id, bool $reference=false)
 
static _isInTrash (int $ref_id)
 
static _hasUntrashedReference (int $obj_id)
 checks whether an object has at least one reference that is not in trash More...
 
static _lookupObjectId (int $ref_id)
 
static _getObjectsDataForType (string $type, bool $omit_trash=false)
 get all objects of a certain type More...
 
static _exists (int $id, bool $reference=false, ?string $type=null)
 checks if an object exists in object_data More...
 
static _getObjectsByType (string $obj_type="", ?int $owner=null)
 
static _prepareCloneSelection (array $ref_ids, string $new_type, bool $show_path=true)
 Prepare copy wizard object selection. More...
 
static getIconForType (string $type)
 
static _getIcon (int $obj_id=0, string $size="big", string $type="", bool $offline=false)
 Get icon for repository item. More...
 
static collectDeletionDependencies (array &$deps, int $ref_id, int $obj_id, string $type, int $depth=0)
 Collect deletion dependencies. More...
 
static getDeletionDependencies (int $obj_id)
 Get deletion dependencies. More...
 
static getLongDescriptions (array $obj_ids)
 
static getAllOwnedRepositoryObjects (int $user_id)
 
static fixMissingTitles ($type, array &$obj_title_map)
 Try to fix missing object titles. More...
 
static _lookupCreationDate (int $obj_id)
 
static _getObjectTypeIdByTitle (string $type, ?\ilDBInterface $ilDB=null)
 

Data Fields

const TITLE_LENGTH = 255
 
const DESC_LENGTH = 128
 
const LONG_DESC_LENGTH = 4000
 
const TABLE_OBJECT_DATA = "object_data"
 
array $objectList
 
string $untranslatedTitle
 

Protected Member Functions

 doMDUpdateListener (string $a_element)
 
 beforeMDUpdateListener (string $a_element)
 
 doCreateMetaData ()
 
 beforeCreateMetaData ()
 
 doUpdateMetaData ()
 
 beforeUpdateMetaData ()
 
 doDeleteMetaData ()
 
 beforeDeleteMetaData ()
 
 handleAutoRating ()
 
 hasAutoRating ()
 

Protected Attributes

ilLogger $obj_log
 
ILIAS $ilias
 
ilObjectDefinition $obj_definition
 
ilDBInterface $db
 
ilLogger $log
 
ilErrorHandling $error
 
ilTree $tree
 
ilAppEventHandler $app_event_handler
 
ilRbacAdmin $rbac_admin
 
ilRbacReview $rbac_review
 
ilObjUser $user
 
ilLanguage $lng
 
LOMServices $lom_services
 
bool $call_by_reference
 
int $max_title = self::TITLE_LENGTH
 
int $max_desc = self::DESC_LENGTH
 
bool $add_dots = true
 
int $ref_id = null
 
string $type = ""
 
string $title = ""
 
string $desc = ""
 
string $long_desc = ""
 
int $owner = 0
 
string $create_date = ""
 
string $last_update = ""
 
string $import_id = ""
 
bool $register = false
 

Private Member Functions

 appendCopyInfoToTranslations (Translations $obj_translations, array $other_children_of_same_type)
 
 getCallbackForTitlesPerLanguageTransformation ()
 
 appendNumberOfCopiesToTitle (string $title, array $other_titles_for_lang)
 
 isTitleUnique (string $title, array $nodes)
 
 buildTitleWithoutCopySuffix (string $title)
 

Private Attributes

const DATABASE_DATE_FORMAT = 'Y-m-d H:i:s'
 
Properties $object_properties = null
 
Aggregator $properties_aggregator
 
TranslationsRepository $translations_repository
 
bool $process_auto_reating = false
 

Detailed Description

Member Function Documentation

◆ _exists()

static ilObject::_exists ( int  $id,
bool  $reference = false,
?string  $type = null 
)
static

checks if an object exists in object_data

Parameters
integer$idobject id or reference id
bool$referencetrue if id is a reference, else false (default)
string | null$typestring restrict on a certain type.
Returns
bool true if object exists

Reimplemented in ilObjOrgUnit, ilObjTalkTemplate, ilObjTalkTemplateAdministration, ilObjEmployeeTalk, ilObjEmployeeTalkSeries, and ilObjMediaObject.

Definition at line 1452 of file class.ilObject.php.

1452 : bool
1453 {
1454 global $DIC;
1455 $db = $DIC->database();
1456
1457 if ($reference) {
1458 $sql =
1459 "SELECT object_data.obj_id" . PHP_EOL
1460 . "FROM " . self::TABLE_OBJECT_DATA . PHP_EOL
1461 . "LEFT JOIN object_reference ON object_reference.obj_id = object_data.obj_id " . PHP_EOL
1462 . "WHERE object_reference.ref_id= " . $db->quote($id, "integer") . PHP_EOL
1463 ;
1464 } else {
1465 $sql =
1466 "SELECT object_data.obj_id" . PHP_EOL
1467 . "FROM " . self::TABLE_OBJECT_DATA . PHP_EOL
1468 . "WHERE obj_id = " . $db->quote($id, "integer") . PHP_EOL
1469 ;
1470 }
1471
1472 if ($type) {
1473 $sql .= " AND object_data.type = " . $db->quote($type, "text") . PHP_EOL;
1474 }
1475
1476 $result = $db->query($sql);
1477
1478 return (bool) $db->numRows($result);
1479 }
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
string $type
ilDBInterface $db
numRows(ilDBStatement $statement)
quote($value, string $type)
query(string $query)
Run a (read-only) Query on the database.
global $DIC
Definition: shib_login.php:26

References $db, $DIC, $id, $type, ilDBInterface\numRows(), ilDBInterface\query(), and ilDBInterface\quote().

Referenced by ilBookingAssignObjectsTableGUI\__construct(), ilObjectFeedWriter\__construct(), ilBookingParticipant\__construct(), _lookupOwnerName(), ilPCFileList\afterPageUpdate(), ilPCMediaObject\afterPageUpdate(), ILIAS\Course\Grouping\Table\GroupingRetrieval\buildLinkToObject(), ilExAssTypePortfolioGUI\buildSubmissionPropertiesAndActions(), ilExAssTypeWikiTeamGUI\buildSubmissionPropertiesAndActions(), ilSoapAdministration\checkObjectAccess(), ilExAssTypeWikiTeamGUI\createWiki(), ilPageObject\delete(), ilNewsItem\delete(), ilDclBaseRecordModel\deleteFile(), ilObjSCORMLearningModuleGUI\deleteTrackingForUser(), ILIAS\User\Profile\PublicProfileGUI\deliverVCard(), ilForum\fetchPostNodeData(), ilAdvancedMDRecordTableGUI\fillRow(), ilPageHistoryTableGUI\fillRow(), ilLinksTableGUI\fillRow(), ilMediaCastManageTableGUI\fillRow(), ilMediaCastTableGUI\fillRow(), ilPDNewsTableGUI\fillRow(), ilWikiContributorsTableGUI\fillRow(), ilSearchResult\filter(), ilCronFinishUnfinishedTestPasses\finishPassForUser(), ilStudyProgrammeExpandableProgressListGUI\getAccordionContentCoursesHTML(), ilObjStudyProgramme\getCompletedCourses(), ilSoapCourseAdministration\getCoursesForUser(), ILIAS\User\Profile\PublicProfileGUI\getEmbeddable(), ilPersonalSkillsGUI\getEvalItem(), ilSoapGroupAdministration\getGroupsForUser(), ilGoogleMapGUI\getHtml(), ilOpenLayersMapGUI\getHtml(), ilExAssignment\getMemberListData(), ilExSubmissionObjectGUI\getOverviewContentPortfolio(), ilGoogleMapGUI\getUserListHtml(), ilOpenLayersMapGUI\getUserListHtml(), ILIAS\User\Settings\StartingPoint\Repository\getValidAndAccessibleStartingPointAsUrl(), ilAdvancedMDRecordParser\handlerBeginTag(), ilAdvancedMDFieldDefinitionInternalLink\importValueFromXML(), ilCalendarRemoteAccessHandler\initUser(), ILIAS\components\Authentication\Logout\ConfigurableLogoutTarget\isInRepository(), ilWikiExportOptionHTMLWithComments\isObjectSupported(), ilIndividualAssessmentSettingsStorageDB\loadInfoSettings(), ilIndividualAssessmentSettingsStorageDB\loadSettings(), ilWebDAVRepositoryHelper\objectWithRefIdExists(), ilSCORM2004TrackingItemsPerUserFilterGUI\parse(), ilSCORMTrackingItemsPerUserFilterGUI\parse(), ilDclMobRecordRepresentation\parseFormInput(), ilNewsTimelineItemGUI\render(), ilExAssTypeWikiTeamGUI\renderOverviewContent(), ILIAS\OrgUnit\Webservices\SOAP\AddUserIdToPositionInOrgUnit\run(), ILIAS\OrgUnit\Webservices\SOAP\RemoveUserIdFromPositionInOrgUnit\run(), ilEmployeeTalkTableGUI\setTalkData(), ilNewsForContextBlockGUI\showNews(), ilPageObjectGUI\showPage(), ilObjSCORM2004LearningModuleGUI\showTrackingItems(), ilObjSCORMLearningModuleGUI\showTrackingItems(), ilSCORMTrackingItems\userDataArrayForExport(), and ilIndividualAssessmentMembers\userExists().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _getAllReferences()

static ilObject::_getAllReferences ( int  $id)
staticfinal

get all reference ids for object ID

Returns
array<int, int>

Definition at line 826 of file class.ilObject.php.

826 : array
827 {
828 global $DIC;
829 $db = $DIC->database();
830
831 $sql =
832 "SELECT ref_id" . PHP_EOL
833 . "FROM object_reference" . PHP_EOL
834 . "WHERE obj_id = " . $db->quote($id, 'integer') . PHP_EOL
835 ;
836
837 $result = $db->query($sql);
838
839 $ref = [];
840 while ($row = $db->fetchAssoc($result)) {
841 $ref[(int) $row["ref_id"]] = (int) $row["ref_id"];
842 }
843
844 return $ref;
845 }
fetchAssoc(ilDBStatement $statement)

References $db, $DIC, $id, ilDBInterface\fetchAssoc(), ILIAS\Repository\int(), ilDBInterface\query(), and ilDBInterface\quote().

Referenced by ILIAS\Skill\Service\SkillService\__construct(), ilTimingsUser\__construct(), ilAdvancedMDRecordGUI\__construct(), ilCourseParticipants\__construct(), ilGroupParticipants\__construct(), ilObjectCustomUserFieldsGUI\__construct(), ilLearningSequenceParticipants\__construct(), ilParticipant\__construct(), ilLPListOfProgressGUI\__initDetails(), ilCourseObjectiveMaterials\__read(), ilCourseObjectiveQuestion\__read(), ilEventParticipants\__read(), ilObjGlossaryAccess\_checkGoto(), ilObjContentObjectAccess\_checkGoto(), ilObjWikiAccess\_checkGoto(), ilObjStyleSheet\_getClonableContentStyles(), ilLMObject\_getIdForImportId(), ilInternalLink\_getIdForImportId(), ilSessionParticipants\_getInstanceByObjId(), ilObjGroup\_getMembers(), ilLPStatusCollectionManual\_getStatusInfo(), ilLPStatusCollectionTLT\_getStatusInfo(), ilLPStatusEvent\_getStatusInfo(), ilObjForumGUI\_goto(), ilLMPageObjectGUI\_goto(), ilObjWikiGUI\_goto(), ilObjUserTracking\_hasLearningProgressOtherUsers(), _hasUntrashedReference(), ilContainerReferenceAccess\_isAccessible(), ilObjCourseAccess\_isActivated(), ilObjQuestionPool\_isWriteable(), ilCalendarScheduleFilterTimings\addCustomEvents(), ilLPXmlWriter\addLPInformation(), ilStudyProgrammeAppEventListener\addMemberToProgrammes(), ilCalendarCategoryGUI\addReferenceLinks(), ilRepositorySearchGUI\addRole(), ilECSCourseCreationHandler\addUrlEntry(), ilLMPage\afterUpdate(), ilSoapCourseAdministration\assignCourseMember(), ilUserImportParser\assignToRole(), ilPCParagraph\autoLinkGlossaries(), ilCalendarExport\buildAppointmentUrl(), ilObjFileGUI\buildInfoScreen(), ilObjectGUI\buildInputsForAdditionalDeletionReferences(), ilLPPersonalGUI\buildLinkToCourse(), ilOrgUnitImporter\buildRef(), ILIAS\Certificate\Overview\CertificateOverviewTable\buildTableRows(), ilBookBookingInfoStakeholder\canBeAccessedByCurrentUser(), ilBookObjectInfoStakeholder\canBeAccessedByCurrentUser(), ilExcInstructionFilesStakeholder\canBeAccessedByCurrentUser(), ilExcPeerReviewFileStakeholder\canBeAccessedByCurrentUser(), ilExcSampleSolutionStakeholder\canBeAccessedByCurrentUser(), ilExcSubmissionStakeholder\canBeAccessedByCurrentUser(), ilExcTutorFeedbackFileStakeholder\canBeAccessedByCurrentUser(), ilExcTutorFeedbackZipStakeholder\canBeAccessedByCurrentUser(), ilExcTutorTeamFeedbackFileStakeholder\canBeAccessedByCurrentUser(), ilExportHTMLStakeholder\canBeAccessedByCurrentUser(), ilObjFileStakeholder\canBeAccessedByCurrentUser(), ilBadgeWAC\canBeDelivered(), ilObjBlogAccess\canBeDelivered(), ilContainerAccess\canBeDelivered(), ilObjectAccess\canBeDelivered(), ilObjPollAccess\canBeDelivered(), ilPortfolioAccessHandler\canBeDelivered(), ilMDEditorGUI\checkAccess(), ilObjDataCollectionAccess\checkAccessForDataCollectionId(), ilObjDataCollectionAccess\checkActionForObjId(), ilSearchAutoComplete\checkObjectPermission(), ilMDCopyrightUsageTableGUI\collectData(), ilAppointmentPresentationCourseGUI\collectPropertiesAndActions(), ilAppointmentPresentationEmployeeTalkGUI\collectPropertiesAndActions(), ilAppointmentPresentationGroupGUI\collectPropertiesAndActions(), ilAppointmentPresentationSessionGUI\collectPropertiesAndActions(), ilLORandomTestQuestionPools\copy(), ilECSCourseCreationHandler\createCourseReference(), ilAccountRegistrationGUI\createUser(), ilSoapCourseAdministration\deleteCourse(), ilContainerReferenceAppEventListener\deleteReferences(), ilCalendarAppointmentGUI\distributeNotifications(), ilECSCourseCreationHandler\doAttributeMapping(), ilCourseAppEventListener\doAutoFill(), ilGroupAppEventListener\doAutoFill(), ilMailSearchObjectGUI\doesExposeMembers(), ilECSCourseCreationHandler\doSync(), ilECSEnrolmentStatusCommandQueueHandler\doUpdate(), ilConsultationHoursGUI\edit(), ilSoapCourseAdministration\excludeCourseMember(), ilMediaObjectUsagesTableGUI\fillRow(), ilECSImportedContentTableGUI\fillRow(), ilLuceneSearchResultFilter\filter(), ilSearchResult\filter(), ilContainerImporter\finalProcessing(), ilObjCourse\findCoursesWithNotEnoughMembers(), ilObjGroup\findGroupsWithNotEnoughMembers(), ilSoapUtils\findMappedReferenceForNode(), ilLPTableBaseGUI\findReferencesForObjId(), ilLPObjectStatisticsTableGUI\findReferencesForObjId(), ilSessionClassificationPathGUI\findSessionContainerForItem(), ilLPCronObjectStatistics\gatherCourseLPData(), ilGlossaryExporter\getActiveAdvMDRecords(), ILIAS\Skill\Profile\SkillProfileCompletionManager\getActualMaxLevels(), ilChatroomTabGUIFactory\getAdminTabsForCommand(), ilObjGlossary\getAllGlossaryIds(), ilMailAddressTypeHelperImpl\getAllRefIdsForObjId(), ILIAS\Skill\Usage\SkillUsageManager\getAssignedObjectsForSkillProfile(), ilExerciseGSToolProvider\getAssignmentInfo(), ILIAS\Blog\Exercise\BlogExercise\getAssignmentsOfBlog(), ilPortfolioExercise\getAssignmentsOfPortfolio(), ilObjAuthSettings\getAuthSettingsRefId(), ilForumAppEventListener\getCachedReferences(), ilCalendarSelectionBlockGUI\getCalendars(), ilAppointmentBaseFileHandler\getCatInfo(), ilTestRandomQuestionSetConfig\getCommaSeparatedSourceQuestionPoolLinks(), ilStudyProgrammeMembersTableGUI\getCompletionLink(), ilSoapCourseAdministration\getCoursesForUser(), ILIAS\components\ILIAS\Glossary\Table\TermUsagesTable\getDataRetrieval(), ILIAS\Skill\Table\AssignedObjectsTable\getDataRetrieval(), ilPortfolioExerciseGUI\getExerciseInfo(), ilAppointmentCourseFileHandler\getFiles(), ilTestQuestionSetConfig\getFirstQuestionPoolRefIdByObjId(), ilForumDraftsDerivedTaskProvider\getFirstRefIdWithPermission(), ilMediaPoolPageUsagesTableGUI\getFirstWritableRefId(), ilSoapGroupAdministration\getGroupsForUser(), ilCalendarAppointmentPanelGUI\getHTML(), ilDidacticTemplateIconFactory\getIconPathForObject(), ilSoapSCORMAdministration\getIMSManifestXML(), ilExcRepoObjAssignmentInfo\getInfo(), ilContainerSortingSettings\getInheritedSettings(), assQuestion\getInstances(), ILIAS\Test\Settings\MainSettings\SettingsMainGUI\getIsOnlineSettingInput(), ilMediaObjectUsagesTableGUI\getItems(), ilMediaPoolPageUsagesTableGUI\getItems(), ilObjBibliographicStakeholder\getLocationURIForResourceUsage(), ilBookBookingInfoStakeholder\getLocationURIForResourceUsage(), ilBookObjectInfoStakeholder\getLocationURIForResourceUsage(), ilExcInstructionFilesStakeholder\getLocationURIForResourceUsage(), ilExcPeerReviewFileStakeholder\getLocationURIForResourceUsage(), ilExcSampleSolutionStakeholder\getLocationURIForResourceUsage(), ilExcSubmissionStakeholder\getLocationURIForResourceUsage(), ilExcTutorFeedbackFileStakeholder\getLocationURIForResourceUsage(), ilExcTutorFeedbackZipStakeholder\getLocationURIForResourceUsage(), ilExcTutorTeamFeedbackFileStakeholder\getLocationURIForResourceUsage(), ilExportHTMLStakeholder\getLocationURIForResourceUsage(), ilObjFileStakeholder\getLocationURIForResourceUsage(), ilMobStakeholder\getLocationURIForResourceUsage(), ilObjectLP\getMembers(), ilLPStatusCollection\getMembers(), ilLPStatusEvent\getMembers(), ILIAS\MetaData\OERHarvester\RepositoryObjects\Handler\getObjectReferenceIDInContainer(), ilOrgUnitType\getOrgUnits(), ilObjStudyProgramme\getProgrammesMonitoringCategory(), ilObjStudyProgramme\getProgrammesMonitoringMemberSource(), ilTestQuestionSetConfig\getQuestionPoolPathString(), ilAppointmentPresentationGUI\getReadableRefIds(), ilObjStudyProgramme\getReferencesTo(), ilObjStudyProgramme\getRefIdFor(), ilPRGAssignmentDBRepository\getRefIdFor(), getRefIdFor(), ilSoapObjectAdministration\getRefIdsByImportId(), ilForumCronNotification\getRefIdsByObjId(), ilForumNotificationDataProvider\getRefIdsByObjId(), ilSoapObjectAdministration\getRefIdsByObjId(), ilLSEventHandler\getRefIdsOfObjId(), ilLSLPEventHandler\getRefIdsOfObjId(), ilTrQuery\getSubItemsStatusForUser(), ilNoteGUI\getTarget(), ilSoapTestAdministration\getTestResults(), ILIAS\Skill\Tree\SkillTreeManager\getTree(), ILIAS\News\Dashboard\DashboardNewsManager\getUserNewsObjectRefIds(), ilGlossaryExporter\getXmlExportTailDependencies(), ilCategoryExporter\getXmlRepresentation(), ilContainerExporter\getXmlRepresentation(), ilContainerReferenceExporter\getXmlRepresentation(), ilCourseExporter\getXmlRepresentation(), ilGroupExporter\getXmlRepresentation(), ilObjSession\handleAutoFill(), ilRemoteObjectBase\handleDelete(), ilSkillAppEventListener\handleEvent(), ilTaggingAppEventListener\handleEvent(), ilTrackingAppEventListener\handleEvent(), ilCertificateAppEventListener\handleLPUpdate(), ilECSAppEventListener\handleMembership(), ilObjectLP\handleMove(), ilLTIAppEventListener\handleOutcomeWithoutLP(), ilCourseReferenceAppEventListener\handleReferences(), ilECSCmsTreeSynchronizer\handleTreeUpdate(), ilECSCategoryMapping\handleUpdate(), ilLTIAppEventListener\handleUpdateStatus(), ilParticipants\hasParticipantListAccess(), ilLPPersonalGUI\hasReadAccess(), ilSoapTestAdministration\hasWritePermissionForTest(), ilSurveySyncTableGUI\importData(), ilObjectGUI\importFile(), ilObjTestXMLParser\importRandomQuestionSourcePoolDefinition(), ilSessionDataSet\importRecord(), ilCategoryImporter\importXmlRepresentation(), ilCourseImporter\importXmlRepresentation(), ilGroupImporter\importXmlRepresentation(), ilCourseReferencePathInfo\init(), ilLSLocalDI\init(), ilObjPollGUI\initEditCustomForm(), ilContainerNewsSettingsGUI\initForm(), ilObjFilePreviewRendererGUI\isAccessGranted(), ilLPStatusCollection\isMember(), ILIAS\MetaData\OERHarvester\RepositoryObjects\Handler\isObjectDeleted(), ilLOTestQuestionAdapter\isQualifiedStartRun(), ilAssQuestionSkillAssignmentsGUI\isSyncOriginalPossibleAndAllowed(), ilObjDataCollectionAccess\isTableInDataCollection(), ilUserCertificateGUI\listCertificates(), ilRepositorySearchGUI\listUsers(), ilEmployeeTalkMyStaffBaseGUI\loadActionBar(), ilStudyProgrammeUserTable\lookupTitle(), ilMailSearchObjectGUI\mailObjects(), ilCalendarScheduleFilterTimings\modifyEvent(), ilStudyProgrammeAppEventListener\onServiceTrackingUpdateStatus(), ilECSExportedContentTableGUI\parse(), ilCalendarManageTableGUI\parse(), ilConsultationHoursTableGUI\parse(), ilExAssignmentReminder\parseGradeReminders(), ilExAssignmentReminder\parsePeerReminders(), ilSearchResultPresentation\parseResultReferences(), ILIAS\Test\Logging\LogTable\prepareFilterData(), ilSkillObjDeletionHandler\processDeletion(), ilGlossaryObjDeletionHandler\processObjectDeletion(), ILIAS\Calendar\ConsultationHours\BookingDataProvider\read(), ilContainerReference\read(), ilLPCollectionOfRepositoryObjects\read(), ilSkillDataSet\readData(), ilSessionDataSet\readDidacticTemplateType(), ilCalendarCategoryGUI\readPermissions(), ilCalendarCategories\readSelectedCategories(), ilSoapWebLinkAdministration\readWebLink(), ilSoapObjectAdministration\removeFromSystemByImportId(), ilStudyProgrammeAppEventListener\removeMemberFromProgrammes(), ilCmiXapiAppEventListener\removeMembers(), ilTaggingSlateContentGUI\removeTagsWithoutAccess(), ilLearningHistoryTimelineItem\render(), ilTaggingSlateContentGUI\renderResourcesForTag(), ilContainerNewsSettingsGUI\save(), ilObjStudyProgrammeAutoMembershipsGUI\save(), ilSystemNotification\sendMailAndReturnRecipients(), ilMembershipCronMinMembers\sendMessage(), ILIAS\Exercise\TutorFeedbackFile\TutorFeedbackFileManager\sendNotification(), ILIAS\Repository\Ownership\OwnershipManagementRetrieval\setData(), ilObjectCopyCourseGroupSelectionTableGUI\setObjects(), ilObjStudyProgramme\setProgressesCompletedFor(), ilEmployeeTalkTableGUI\setTalkData(), ilCalendarAppointmentGUI\showInfoScreen(), ilObjGlossaryGUI\showSelectedGlossariesForCollection(), ilPageEditorGUI\showSnippetInfo(), ilECSCmsTreeSynchronizer\syncCategory(), SurveyQuestionGUI\syncCopies(), ilECSCourseCreationHandler\syncNodeToTop(), ILIAS\Data\ObjectId\toReferenceIds(), ilObjGroup\translateViewMode(), ilObjStudyProgrammeReferenceGUI\tryingToCreateCircularReference(), ilStudyProgrammeType\updateAssignedStudyProgrammesIcons(), ilECSCourseCreationHandler\updateCourseData(), ilECSCourseCreationHandler\updateParallelCourses(), ilECSCourseCreationHandler\updateParallelGroups(), ilObjectServiceSettingsGUI\updateServiceSettingsForm(), ilSoapWebLinkAdministration\updateWebLink(), and ilPDNotesGUI\view().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _getIcon()

static ilObject::_getIcon ( int  $obj_id = 0,
string  $size = "big",
string  $type = "",
bool  $offline = false 
)
staticfinal

Get icon for repository item.

Parameters
intobject id
stringsize (big, small, tiny)
stringobject type
booltrue: offline, false: online

Definition at line 1908 of file class.ilObject.php.

1913 : string {
1914 return self::getIconForReference(0, $obj_id, $size, $type, $offline);
1915 }

Referenced by ilCourseContentGUI\__renderUserItem(), ilContainerStartObjectsGUI\askDeleteStarter(), ilObjWorkspaceFolderGUI\buildObjectType(), ilTestLearningObjectivesStatusGUI\buildStatusItems(), ilObjUserFolderGUI\confirmDeleteExportFileObject(), ilLTIConsumerAdministrationGUI\confirmDeleteProviders(), ilAdministrationCommandGUI\delete(), ilObjWorkspaceFolderGUI\deleteConfirmation(), ilFileVersionsGUI\deleteVersions(), ilObjectPluginGUI\executeCommand(), ilRegistrationGUI\fillMembershipLimitation(), ilSCTreeDuplicatesTableGUI\fillObjectRow(), ilCourseObjectiveMaterialAssignmentTableGUI\fillRow(), ilCourseObjectiveQuestionAssignmentTableGUI\fillRow(), ilCourseObjectivesTableGUI\fillRow(), ilDashObjectsTableGUI\fillRow(), ilExportSelectionTableGUI\fillRow(), ilSubItemSelectionTableGUI\fillRow(), ilItemGroupItemsTableGUI\fillRow(), ilPDNewsTableGUI\fillRow(), ilAdminSubItemsTableGUI\fillRow(), ilModulesTableGUI\fillRow(), ilTrashTableGUI\fillRow(), ilSearchResultTableGUI\fillRow(), ilSessionMaterialsTableGUI\fillRow(), ilLPObjectStatisticsDailyTableGUI\fillRow(), ilLPObjectStatisticsLPTableGUI\fillRow(), ilLPObjectStatisticsTableGUI\fillRow(), ilLPCollectionSettingsTableGUI\fillRow(), ilLPProgressTableGUI\fillRow(), ilTrSummaryTableGUI\fillRow(), ilTrUserObjectsPropsTableGUI\fillRow(), ilECSImportedContentTableGUI\fillRow(), ilObjClipboardTableGUI\fillRow(), ilObjectCopyProgressTableGUI\fillRow(), ilObjectCopySelectionTableGUI\fillRow(), ilObjectTableGUI\fillRow(), ilRepositoryExplorer\formatHeader(), ilECSNodeMappingCmsExplorer\formatHeader(), ilECSNodeMappingLocalExplorer\formatHeader(), ilPasteIntoMultipleItemsExplorer\formatHeader(), ilPasteIntoMultipleItemsExplorer\formatObject(), ILIAS\Skill\Table\LevelResourcesTable\getComponent(), ilTrackingLearningHistoryProvider\getEntries(), ILIAS\Repository\Provider\RepositoryMainBarProvider\getHomeItem(), ilLocatorGUI\getHTML(), ilTaggingGUI\getHTML(), ilPathGUI\getHTML(), ilObjLTIConsumerListGUI\getIconHref(), ilStudyProgrammeProgressListGUI\getIconPath(), ilLSItemsDB\getIconPathForType(), ilRepositoryExplorer\getImage(), ilUtil\getImageTagByType(), ilNewsForContextBlockGUI\getInfoForData(), ilContainerContentGUI\getIntroduction(), ilLPObjectStatisticsTypesTableGUI\getItems(), ilDashboardBlockGUI\getManageFields(), ilAdministrationExplorerGUI\getNodeIcon(), ilForumExplorerGUI\getNodeIcon(), ilOrgUnitExplorerGUI\getNodeIcon(), ilRepositoryExplorerGUI\getNodeIcon(), ilRepositorySelectorExplorerGUI\getNodeIcon(), ilNoteGUI\getOriginHeader(), ilTrMatrixTableGUI\getSelectableColumns(), ilObjCategoryReferenceListGUI\getTypeIcon(), ilObjCourseReferenceListGUI\getTypeIcon(), ilObjGroupReferenceListGUI\getTypeIcon(), ilObjStudyProgrammeReferenceListGUI\getTypeIcon(), ilLPListOfSettingsGUI\handleLPUsageInfo(), ilCourseObjectivesGUI\initFormLimits(), ilPCResourcesGUI\insertResourcesIntoPageContent(), ilDashboardBlockGUI\manually(), ilSearchBaseGUI\prepareOutput(), ilFavouritesListGUI\render(), ilNewsTimelineItemGUI\render(), ILIAS\Repository\Provider\RepositoryMainBarProvider\renderLastVisited(), ilTaggingSlateContentGUI\renderResourcesForTag(), ilObjContentPageGUI\setTitleAndDescription(), ilObjectGUI\setTitleAndDescription(), ilObjQuestionPoolGUI\setTitleAndDescription(), ilNewsForContextBlockGUI\showNews(), and ilObjGlossaryGUI\showSelectedGlossariesForCollection().

+ Here is the caller graph for this function:

◆ _getIdForImportId()

static ilObject::_getIdForImportId ( string  $import_id)
staticfinal

Definition at line 800 of file class.ilObject.php.

800 : int
801 {
802 global $DIC;
803 $db = $DIC->database();
804 $db->setLimit(1, 0);
805
806 $sql =
807 "SELECT obj_id" . PHP_EOL
808 . "FROM " . self::TABLE_OBJECT_DATA . PHP_EOL
809 . "WHERE import_id = " . $db->quote($import_id, "text") . PHP_EOL
810 . "ORDER BY create_date DESC" . PHP_EOL
811 ;
812
813 $result = $db->query($sql);
814
815 if ($row = $db->fetchAssoc($result)) {
816 return (int) $row["obj_id"];
817 }
818
819 return 0;
820 }
string $import_id
setLimit(int $limit, int $offset=0)

References $db, $DIC, $import_id, ilDBInterface\fetchAssoc(), ilDBInterface\query(), ilDBInterface\quote(), and ilDBInterface\setLimit().

Referenced by ilInternalLink\_getIdForImportId(), and ilDataSet\parseObjectExportId().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _getIdsForTitle()

static ilObject::_getIdsForTitle ( string  $title,
string  $type = '',
bool  $partial_match = false 
)
staticfinal
Returns
int[]

Definition at line 874 of file class.ilObject.php.

874 : array
875 {
876 global $DIC;
877 $db = $DIC->database();
878
879 $where = "title = " . $db->quote($title, "text");
880 if ($partial_match) {
881 $where = $db->like("title", "text", '%' . $title . '%');
882 }
883
884 $sql =
885 "SELECT obj_id" . PHP_EOL
886 . "FROM " . self::TABLE_OBJECT_DATA . PHP_EOL
887 . "WHERE " . $where . PHP_EOL
888 ;
889
890 if ($type != '') {
891 $sql .= " AND type = " . $db->quote($type, "text");
892 }
893
894 $result = $db->query($sql);
895
896 $object_ids = [];
897 while ($row = $db->fetchAssoc($result)) {
898 $object_ids[] = (int) $row['obj_id'];
899 }
900
901 return $object_ids;
902 }
string $title
like(string $column, string $type, string $value="?", bool $case_insensitive=true)
Generate a like subquery.

References $db, $DIC, $title, $type, ilDBInterface\fetchAssoc(), ILIAS\Repository\int(), ilDBInterface\like(), ilDBInterface\query(), and ilDBInterface\quote().

Referenced by ilLTIProviderObjectSettingGUI\checkLocalRole(), ilTestEvaluationData\getParticipants(), ilRoleXmlImporter\importSimpleXml(), ilObjLTIAdministrationGUI\listConsumers(), ilObjRoleGUI\mailToRoleObject(), and ILIAS\Test\Logging\LogTable\prepareFilterData().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _getLastUpdateOfObjects()

static ilObject::_getLastUpdateOfObjects ( array  $obj_ids)
staticfinal

Definition at line 923 of file class.ilObject.php.

923 : string
924 {
925 global $DIC;
926 $db = $DIC->database();
927
928 $sql =
929 "SELECT MAX(last_update) as last_update" . PHP_EOL
930 . "FROM " . self::TABLE_OBJECT_DATA . PHP_EOL
931 . "WHERE " . $db->in("obj_id", $obj_ids, false, "integer") . PHP_EOL
932 ;
933
934 $result = $db->query($sql);
935 $row = $db->fetchAssoc($result);
936
937 return (string) $row["last_update"];
938 }
in(string $field, array $values, bool $negate=false, string $type="")

References $db, $DIC, ilDBInterface\fetchAssoc(), ilDBInterface\in(), and ilDBInterface\query().

Referenced by ilPageObject\getLastUpdateOfIncludedElements().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _getObjectsByType()

static ilObject::_getObjectsByType ( string  $obj_type = "",
?int  $owner = null 
)
staticfinal

Definition at line 1490 of file class.ilObject.php.

1490 : array
1491 {
1492 global $DIC;
1493 $db = $DIC->database();
1494
1495 $order = " ORDER BY title";
1496
1497 $where = "";
1498 if ($obj_type) {
1499 $where = "WHERE type = " . $db->quote($obj_type, "text");
1500
1501 if (!is_null($owner)) {
1502 $where .= " AND owner = " . $db->quote($owner, "integer");
1503 }
1504 }
1505
1506 $sql =
1507 "SELECT obj_id, type, title, description, owner, create_date, last_update, import_id, offline" . PHP_EOL
1508 . "FROM " . self::TABLE_OBJECT_DATA . PHP_EOL
1509 . $where . PHP_EOL
1510 . $order . PHP_EOL
1511 ;
1512 $result = $db->query($sql);
1513
1514 $arr = [];
1515 if ($db->numRows($result) > 0) {
1516 while ($row = $db->fetchAssoc($result)) {
1517 $row["desc"] = $row["description"];
1518 $arr[$row["obj_id"]] = $row;
1519 }
1520 }
1521
1522 return $arr;
1523 }

References $db, $DIC, $owner, ilDBInterface\fetchAssoc(), ilDBInterface\numRows(), ilDBInterface\query(), and ilDBInterface\quote().

Referenced by ILIAS\Skill\Service\SkillService\__construct(), ilLanguage\_getInstalledLanguages(), ilObjUserTracking\_hasLearningProgressOtherUsers(), ilChatroomServerConfigStoredObjective\achieve(), ilDashboardPage\afterConstructor(), ilBadgeWAC\canBeDelivered(), ilChatroomMetricsCollectedObjective\collectFrom(), ilObjLanguageFolderGUI\confirmRefreshObject(), ilObjLanguageFolderGUI\executeCommand(), ilLPCronObjectStatistics\gatherCourseLPData(), ilChatroomTabGUIFactory\getAdminTabsForCommand(), ilObjAuthSettings\getAuthSettingsRefId(), ilObjLanguage\getInstalledLanguages(), ilObjLanguageFolder\getLanguages(), ilEmployeeTalkMyStaffBaseGUI\loadActionBar(), ilAdvancedMDRecordLanguageTableGUI\readLanguages(), and ilObjLanguage\refreshAll().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _getObjectsDataForType()

static ilObject::_getObjectsDataForType ( string  $type,
bool  $omit_trash = false 
)
staticfinal

get all objects of a certain type

Parameters
string$typedesired object type
boolean$omit_trashomit objects, that are in trash only
Returns
array of object data arrays ("id", "title", "type", "description")

Definition at line 1146 of file class.ilObject.php.

1146 : array
1147 {
1148 global $DIC;
1149 $db = $DIC->database();
1150
1151 $sql =
1152 "SELECT obj_id, type, title, description, owner, create_date, last_update, import_id, offline" . PHP_EOL
1153 . "FROM " . self::TABLE_OBJECT_DATA . PHP_EOL
1154 . "WHERE type = " . $db->quote($type, "text") . PHP_EOL
1155 ;
1156 $result = $db->query($sql);
1157
1158 $objects = [];
1159 while ($row = $db->fetchAssoc($result)) {
1160 if ((!$omit_trash) || ilObject::_hasUntrashedReference((int) $row["obj_id"])) {
1161 $objects[$row["title"] . "." . $row["obj_id"]] = [
1162 "id" => $row["obj_id"],
1163 "type" => $row["type"],
1164 "title" => $row["title"],
1165 "description" => $row["description"]
1166 ];
1167 }
1168 }
1169 ksort($objects);
1170 return $objects;
1171 }
static _hasUntrashedReference(int $obj_id)
checks whether an object has at least one reference that is not in trash

References $db, $DIC, $type, _hasUntrashedReference(), ilDBInterface\fetchAssoc(), ilDBInterface\query(), and ilDBInterface\quote().

Referenced by ilObjStyleSheet\_addMissingStyleClassesToAllStyles().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _getObjectTypeIdByTitle()

static ilObject::_getObjectTypeIdByTitle ( string  $type,
?\ilDBInterface  $ilDB = null 
)
static

Definition at line 2152 of file class.ilObject.php.

2152 : ?int
2153 {
2154 if (!$ilDB) {
2155 global $DIC;
2156 $ilDB = $DIC->database();
2157 }
2158
2159 $sql =
2160 "SELECT obj_id FROM object_data" . PHP_EOL
2161 . "WHERE type = 'typ'" . PHP_EOL
2162 . "AND title = " . $ilDB->quote($type, 'text') . PHP_EOL
2163 ;
2164
2165 $res = $ilDB->query($sql);
2166 if ($ilDB->numRows($res) == 0) {
2167 return null;
2168 }
2169
2170 $row = $ilDB->fetchAssoc($res);
2171 return (int) $row['obj_id'] ?? null;
2172 }
$res
Definition: ltiservices.php:69

References $DIC, $ilDB, and $res.

Referenced by ilAccessCustomRBACOperationAddedObjective\achieve(), ilAccessRBACOperationDeletedObjective\achieve(), ilAccessRbacStandardOperationsAddedObjective\achieve(), ilDBUpdateNewObjectType\addAdminNode(), ilDBUpdateNewObjectType\addNewType(), ilDBUpdateNewObjectType\addRBACCreate(), ilDBUpdateNewObjectType\deleteRBACOperation(), ilAccessCustomRBACOperationAddedObjective\isApplicable(), ilAccessInitialPermissionGuidelineAppliedObjective\isApplicable(), ilAccessRbacStandardOperationsAddedObjective\isApplicable(), ILIAS\ILIASObject\Setup\NewTypeAddedObjective\isApplicable(), and ilTreeAdminNodeAddedObjective\isApplicable().

+ Here is the caller graph for this function:

◆ _hasUntrashedReference()

static ilObject::_hasUntrashedReference ( int  $obj_id)
staticfinal

checks whether an object has at least one reference that is not in trash

Definition at line 1121 of file class.ilObject.php.

1121 : bool
1122 {
1123 $ref_ids = ilObject::_getAllReferences($obj_id);
1124 foreach ($ref_ids as $ref_id) {
1126 return true;
1127 }
1128 }
1129
1130 return false;
1131 }
static _getAllReferences(int $id)
get all reference ids for object ID
static _isInTrash(int $ref_id)

References $ref_id, _getAllReferences(), and _isInTrash().

Referenced by ilLMObject\_getIdForImportId(), _getObjectsDataForType(), ilObjQuestionPool\_isWriteable(), ilOrgUnitImporter\buildRef(), ilMailSearchObjectGUI\doesExposeMembers(), ilChatroomAdminViewGUI\forcePublicRoom(), ILIAS\Skill\Usage\SkillUsageManager\getAssignedObjectsForSkillProfile(), ilSoapObjectAdministration\getObjIdsByRefIds(), ILIAS\Notes\NotesManager\getRelatedObjectsOfUser(), ilObjSAHSLearningModule\getScormModulesForGlossary(), ilTaggingAppEventListener\handleEvent(), ilEmployeeTalkMyStaffBaseGUI\loadActionBar(), ilEmployeeTalkTableGUI\setTalkData(), and ilOrgUnitSimpleImport\simpleImportElement().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _isInTrash()

static ilObject::_isInTrash ( int  $ref_id)
staticfinal

Definition at line 1112 of file class.ilObject.php.

1112 : bool
1113 {
1114 global $DIC;
1115 return $DIC->repositoryTree()->isDeleted($ref_id);
1116 }

References $DIC, and $ref_id.

Referenced by _hasUntrashedReference(), ilSoapCourseAdministration\addCourse(), ilSoapExerciseAdministration\addExercise(), ilSoapFileAdministration\addFile(), ilSoapGroupAdministration\addGroup(), ilSoapRBACAdministration\addRole(), ilSoapRBACAdministration\addRoleFromTemplate(), ilOrgUnitImporter\buildRef(), ILIAS\Test\Utilities\TitleColumnsBuilder\buildTestTitleAsLink(), ilSoapAdministration\checkObjectAccess(), ilSoapWebLinkAdministration\createWebLink(), ilSoapDataCollectionAdministration\exportDataCollectionContent(), ilMStListCoursesTableGUI\fillRow(), ilMStShowUserCoursesTableGUI\fillRow(), ilStudyProgrammeMembersTableGUI\getCompletionLink(), ilSoapCourseAdministration\getCoursesForUser(), ilSoapGroupAdministration\getGroupsForUser(), ilSoapSCORMAdministration\getIMSManifestXML(), ilSoapObjectAdministration\getObjectByReference(), ilSoapRBACAdministration\getObjectTreeOperations(), ilOrgUnitType\getOrgUnits(), ilSoapObjectAdministration\getPathForRefId(), ilSoapTestAdministration\getTestResults(), ilCopyWizardSettingsXMLParser\handlerBeginTag(), ilSoapSCORMAdministration\hasSCORMCertificate(), ILIAS\components\Authentication\Logout\ConfigurableLogoutTarget\isInRepository(), ilStudyProgrammeUserTable\lookupTitle(), ilSoapObjectAdministration\moveObject(), ilSoapWebLinkAdministration\readWebLink(), ilCollectFilesJob\recurseFolder(), ilSoapTestAdministration\removeTestResults(), ilSoapWebLinkAdministration\updateWebLink(), and ilCheckSumOfFileSizesJob\validateAccess().

+ Here is the caller graph for this function:

◆ _lookupCreationDate()

static ilObject::_lookupCreationDate ( int  $obj_id)
static

Definition at line 2124 of file class.ilObject.php.

2124 : string
2125 {
2126 global $DIC;
2127 $db = $DIC->database();
2128
2129 $sql =
2130 "SELECT create_date" . PHP_EOL
2131 . "FROM " . self::TABLE_OBJECT_DATA . PHP_EOL
2132 . "WHERE obj_id = " . $db->quote($obj_id, "integer") . PHP_EOL
2133 ;
2134 $result = $db->query($sql);
2135 $rec = $db->fetchAssoc($result);
2136 return $rec["create_date"];
2137 }

References $DIC, ilDBInterface\fetchAssoc(), ilDBInterface\query(), and ilDBInterface\quote().

Referenced by ilSearchResult\filter(), ILIAS\Help\Module\ModuleDBRepository\getHelpModules(), ilSearchResultPresentation\renderItemList(), and ilSearchResultTableGUI\setDataAndApplySortation().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _lookupDeletedDate()

static ilObject::_lookupDeletedDate ( int  $ref_id)
staticfinal

Definition at line 997 of file class.ilObject.php.

997 : ?string
998 {
999 global $DIC;
1000 $db = $DIC->database();
1001
1002 $sql =
1003 "SELECT deleted" . PHP_EOL
1004 . "FROM object_reference" . PHP_EOL
1005 . "WHERE ref_id = " . $db->quote($ref_id, "integer") . PHP_EOL
1006 ;
1007 $result = $db->query($sql);
1008 $row = $db->fetchAssoc($result);
1009
1010 return $row["deleted"] ?? null;
1011 }

References $db, $DIC, $ref_id, ilDBInterface\fetchAssoc(), ilDBInterface\query(), and ilDBInterface\quote().

Referenced by ilStudyProgrammeExpandableProgressListGUI\getAccordionContentCoursesHTML(), and ilObjStudyProgramme\getCompletedCourses().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _lookupDescription()

◆ _lookupImportId()

static ilObject::_lookupImportId ( int  $obj_id)
static

Definition at line 464 of file class.ilObject.php.

464 : string
465 {
466 global $DIC;
467
468 $db = $DIC->database();
469
470 $sql =
471 "SELECT import_id" . PHP_EOL
472 . "FROM " . self::TABLE_OBJECT_DATA . PHP_EOL
473 . "WHERE obj_id = " . $db->quote($obj_id, "integer") . PHP_EOL
474 ;
475
476 $res = $db->query($sql);
477 while ($row = $res->fetchRow(ilDBConstants::FETCHMODE_OBJECT)) {
478 return (string) $row->import_id;
479 }
480 return '';
481 }

References $db, $DIC, $res, ilDBConstants\FETCHMODE_OBJECT, ilDBInterface\query(), and ilDBInterface\quote().

Referenced by ILIAS\COPage\PC\MediaObject\MediaObjectManager\resolveMediaAliases().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _lookupLastUpdate()

static ilObject::_lookupLastUpdate ( int  $obj_id,
bool  $formatted = false 
)
staticfinal

Definition at line 910 of file class.ilObject.php.

910 : string
911 {
912 global $DIC;
913
914 $last_update = $DIC["ilObjDataCache"]->lookupLastUpdate($obj_id);
915
916 if ($formatted) {
918 }
919
920 return (string) $last_update;
921 }
const IL_CAL_DATETIME
static formatDate(ilDateTime $date, bool $a_skip_day=false, bool $a_include_wd=false, bool $include_seconds=false, ?ilObjUser $user=null,)
@classDescription Date and time handling
string $last_update

References $DIC, $last_update, ilDatePresentation\formatDate(), and IL_CAL_DATETIME.

+ Here is the call graph for this function:

◆ _lookupObjectId()

static ilObject::_lookupObjectId ( int  $ref_id)
staticfinal

Definition at line 1133 of file class.ilObject.php.

1133 : int
1134 {
1135 global $DIC;
1136 return $DIC["ilObjDataCache"]->lookupObjId($ref_id);
1137 }

References $DIC, and $ref_id.

Referenced by ilSCORM13PlayerGUI\__construct(), ILIAS\Glossary\Flashcard\FlashcardManager\__construct(), ilWebDAVObjectMountInstructions\__construct(), ilGlossaryAdvMetaDataAdapter\__construct(), ilGlossaryTermGUI\__construct(), ilLOXmlWriter\__construct(), ilObject2GUI\__construct(), ILIAS\Exercise\Object\ObjectManager\__construct(), ilDclDetailedViewDefinitionGUI\__construct(), ilObjForumGUI\_goto(), ilAppointmentPresentationGUI\addContainerInfo(), ilObjStudyProgramme\addCrsToProgrammes(), ilBookingGatewayGUI\checkBookingPoolsForSchedules(), ilLTIProviderObjectSettingGUI\checkLocalRole(), ILIAS\MediaCast\Comments\GUIService\commentGUI(), ilRecommendedContentRoleConfigGUI\confirmRemoveItems(), ilObjPortfolioGUI\createPortfolioFromAssignment(), ilExSubmissionObjectGUI\createPortfolioFromAssignmentObject(), ilLPListOfProgressGUI\details(), ilSAHSPresentationGUI\executeCommand(), ilSAHSEditGUI\executeCommand(), ilObjSAHSLearningModuleGUI\exportModule(), ilMStListCoursesTableGUI\fillRow(), ilMStShowUserCoursesTableGUI\fillRow(), ilLPCollectionSettingsTableGUI\fillRow(), ILIAS\Skill\Profile\SkillProfileCompletionManager\getActualMaxLevels(), ilContainerPageGUI\getAdditionalPageActions(), ilObjFileInfoRepository\getByRefId(), ILIAS\Skill\Table\ProfileTable\getDataRetrieval(), ilExAssTypeWikiTeam\getExportObjIdForResourceId(), ilOrgUnitExporter\getExternalId(), ilNewsForContextBlockGUI\getHTML(), ilSoapSCORMAdministration\getIMSManifestXML(), ilDclReferenceFieldRepresentation\getInputField(), ilRecommendedContentRoleTableGUI\getItems(), ilBookingReservationsTableGUI\getItems(), ilLPProgressBlockGUI\getLegacyContent(), ilWebDAVRepositoryHelper\getObjectIdFromRefId(), ilPRGAssignmentDBRepository\getObjIdFor(), ilOrgUnitPositionAccess\getObjIdForRefId(), ilSoapObjectAdministration\getObjIdsByRefIds(), ilTrQuery\getParticipantsForObject(), ilLPCollectionOfLMChapters\getPossibleItems(), ilSoapSCORMAdministration\getSCORMCompletionStatus(), ilBookingReservationsTableGUI\getSelectableUserColumns(), ilDclIliasReferenceRecordFieldModel\getStatus(), ilObjEmployeeTalkSeriesGUI\getTemplateRefId(), ilGlossaryTerm\getTermList(), ilSoapTestAdministration\getTestAccess(), ilSoapTestAdministration\getTestResults(), ilBadgeHandler\getUserIds(), ilMembershipRegistrationCodeUtils\handleCode(), ilDclTable\hasPermissionToDeleteRecord(), ilDclTable\hasPermissionToDeleteRecords(), ilDclTable\hasPermissionToEditRecord(), ilDclTable\hasPermissionToViewRecord(), ilSoapSCORMAdministration\hasSCORMCertificate(), ilDashboardRecommendedContentGUI\initData(), ilObjContentObjectGUI\initMenuEntryForm(), ilRepositoryExplorer\isClickable(), ilPollCommentsHandler\lookupObjectId(), ilObjForum\lookupStatisticsByRefId(), ilObjSCORMLearningModuleGUI\newModuleVersion(), ILIAS\AccessControl\Log\Table\parseChangesFaPa(), ilSoapWebLinkAdministration\readWebLink(), ilContainerGUI\redrawListItemObject(), ilObjGlossary\removeOfflineGlossaries(), ILIAS\Repository\Provider\RepositoryMainBarProvider\renderLastVisited(), ilNewsTimelineGUI\save(), ilSAHSPresentationGUI\setInfoTabs(), ILIAS\Data\ReferenceId\toObjectId(), ilNewsTimelineGUI\update(), ilSoapWebLinkAdministration\updateWebLink(), and ilLearningSequenceXMLWriter\writeLSItems().

+ Here is the caller graph for this function:

◆ _lookupObjId()

static ilObject::_lookupObjId ( int  $ref_id)
staticfinal

Definition at line 940 of file class.ilObject.php.

940 : int
941 {
942 global $DIC;
943 return $DIC["ilObjDataCache"]->lookupObjId($ref_id);
944 }

References $DIC, and $ref_id.

Referenced by ilCalendarPresentationGUI\__construct(), ilClassificationBlockGUI\__construct(), ilTrObjectUsersPropsTableGUI\__construct(), ilTrSummaryTableGUI\__construct(), ilTrMatrixTableGUI\__construct(), ilCalendarSelectionBlockGUI\__construct(), ilBookingScheduleGUI\__construct(), ilRegistrationGUI\__construct(), ilSessionOverviewGUI\__construct(), ilLMTracker\__construct(), ilItemGroupItems\__construct(), ilMemberAgreementGUI\__construct(), ilMemberExportGUI\__construct(), ilObjNotificationSettingsGUI\__construct(), ilSessionParticipants\__construct(), ilObjectFeedWriter\__construct(), ilCalendarCategoryGUI\__construct(), ilCalendarVisibility\__construct(), ilUserFeedWriter\__construct(), ilBookingObjectServiceGUI\__construct(), ilTimingCache\__construct(), ILIAS\Style\Content\Object\ObjectFacade\__construct(), ILIAS\Container\Content\ItemSetManager\__construct(), ilObjectContentStyleSettingsGUI\__construct(), ILIAS\Style\Content\Object\ObjectManager\__construct(), ilCopySelfAssQuestionTableGUI\__construct(), ilBadgeManagementGUI\__construct(), ilCourseParticipantsGroupsTableDataRetrieval\__construct(), ilPRGMembersExportGUI\__construct(), ilForumNotificationDataProvider\__construct(), ilParticipants\__construct(), ilInternalLinkGUI\__construct(), ilLearningProgressGUI\__getNextClass(), ilCourseContentGUI\__renderUserItem(), ilLearningProgressBaseGUI\__showEditUser(), ilObjSurveyQuestionPoolAccess\_checkAccess(), ilCourseObjectiveMaterials\_getAssignableMaterials(), ilObjTest\_getAvailableTests(), ilObjStudyProgrammeReferenceAccess\_getCommands(), ilLPStatusCollection\_getInProgress(), ilLPStatusEvent\_getStatusInfo(), ilObjCourseReferenceGUI\_goto(), ilObjGroupReferenceGUI\_goto(), ilObjFileGUI\_goto(), ilObjForumGUI\_goto(), ilObjCourseGUI\_goto(), ilObjChatroomGUI\_goto(), ilObjTestGUI\_goto(), ilObjSystemFolderGUI\_goto(), ilObjectPluginGUI\_goto(), ilObjBookingPoolGUI\_goto(), ilObjCategoryGUI\_goto(), ilObjCategoryReferenceGUI\_goto(), ilObjCmiXapiGUI\_goto(), ilObjDataCollectionGUI\_goto(), ilObjGlossaryGUI\_goto(), ilObjFileBasedLMGUI\_goto(), ilObjItemGroupGUI\_goto(), ilObjContentObjectGUI\_goto(), ilObjLTIConsumerGUI\_goto(), ilObjMediaCastGUI\_goto(), ilObjMediaPoolGUI\_goto(), ilObjPollGUI\_goto(), ilObjSAHSLearningModuleGUI\_goto(), ilObjSessionGUI\_goto(), ilObjSurveyQuestionPoolGUI\_goto(), ilObjWikiGUI\_goto(), ilObjLinkResourceGUI\_goto(), ilObjGroupGUI\_goto(), ilObjUserFolderGUI\_goto(), ilObjContentPageGUI\_goto(), ilObjLearningSequenceGUI\_goto(), ilObjMailGUI\_goto(), ilObjStudyProgrammeReferenceGUI\_goto(), ilObjLearningSequence\_goto(), ilContainerReferenceAccess\_isAccessible(), ilObjGroup\_isMember(), ilSessionParticipants\_isParticipant(), ilObjectActivation\addAdditionalSubItemInformation(), ilObjRoleTemplateGUI\addAdminLocatorItems(), ilObjTalkTemplateGUI\addAdminLocatorItems(), ilObjUserGUI\addAdminLocatorItems(), ilForumModeratorsGUI\addModeratorCommand(), ILIAS\Container\Content\ItemSetManager\addObjectiveItems(), ilAppointmentPresentationGUI\addObjectLinks(), ilCalendarCategoryGUI\addReferenceLinks(), ilLocatorGUI\addRepositoryItems(), ilCalendarPresentationGUI\addStandardTabs(), ilExportContainer\addSubitems(), ILIAS\Repository\Deletion\EventStandardAdapter\afterMoveToTrash(), ilContainerReferenceGUI\afterSave(), ilContainerStartObjectsGUI\askDeleteStarter(), ilSoapCourseAdministration\assignCourseMember(), ilRbacAdmin\assignUser(), ilObjectGUI\buildDeletionModalItems(), ilObjectGUI\buildInputsForAdditionalDeletionReferences(), ILIAS\Test\Utilities\TitleColumnsBuilder\buildTestTitleAsLink(), ILIAS\Test\Utilities\TitleColumnsBuilder\buildTestTitleAsText(), ilSurveyEvaluationGUI\checkAnonymizedEvaluationAccess(), ilSoapAdministration\checkObjectAccess(), ilChatroom\checkPermissions(), ILIAS\Wiki\Wiki\DomainService\checkRefId(), ilLOEditorStatus\checkTestOnline(), ilECSMappingSettingsGUI\cInitMappingForm(), ilLPCollection\cloneCollection(), ilLPCollectionOfRepositoryObjects\cloneCollection(), ilLPCollectionOfSCOs\cloneCollection(), ilLPCollectionOfMediaObjects\cloneCollection(), ilConditionHandler\cloneDependencies(), ilObjCategory\cloneDependencies(), ilObjCourse\cloneDependencies(), ilObjCourseGrouping\cloneGrouping(), ilAppointmentPresentationConsultationHoursGUI\collectPropertiesAndActions(), ilGroupAddToGroupActionGUI\confirmAddUser(), ilPortfolioRoleAssignmentGUI\confirmAssignmentDeletion(), ilLOEditorGUI\confirmDeleteTest(), ilLOEditorGUI\confirmDeleteTests(), ilMembershipBlockGUI\confirmedRemove(), ilContainerGUI\copyObject(), ilECSCourseCreationHandler\createCourseReferenceObjects(), ilGroupAddToGroupActionGUI\createGroup(), ilConsultationHoursGUI\createNewBookingEntry(), ilECSCourseCreationHandler\createParallelCourse(), ilObjRole\createPermissionIntersection(), ilObjectRolePermissionTableGUI\createTooltip(), ilExportGUI\createXMLContainerExport(), ilContainerGUI\cutObject(), ilRbacAdmin\deassignUser(), ilAdministrationCommandGUI\delete(), ilSoapCourseAdministration\deleteCourse(), ilObjRole\deleteLocalPolicies(), ilDclBaseRecordModel\deleteMob(), ilObjBlog\deliverRSS(), ilForumModeratorsGUI\detachModeratorRole(), ILIAS\Container\Content\ItemBlock\ItemBlockSequenceGenerator\determineBlockItems(), ilObjTestGUI\determineObjectiveOrientedContainer(), ilLPStatusCollection\determinePercentage(), ilECSMappingSettingsGUI\dMap(), ilECSCourseCreationHandler\doAttributeMapping(), ilLTIAppEventListener\doCronUpdate(), ilSCORMPresentationGUI\downloadCertificate(), ilLearningProgressGUI\editManual(), ilCalendarScheduleFilterTimings\enabledCourseTimings(), ilCourseLPBadge\evaluate(), ilSoapCourseAdministration\excludeCourseMember(), ilObjectPluginGUI\executeCommand(), ilWikiHandlerGUI\executeCommand(), ilWikiPageGUI\executeCommand(), ilSurveyEditorGUI\executeCopyQuestionsToPoolObject(), ilObjectCopyGUI\executeNextStepAfterSourceSelection(), ilRegistrationGUI\fillMembershipLimitation(), ilAdvancedMDRecordTableGUI\fillRow(), ilCourseObjectivesTableGUI\fillRow(), ilExportSelectionTableGUI\fillRow(), ilLinksTableGUI\fillRow(), ilPDNewsTableGUI\fillRow(), ilSkillLevelTableGUI\fillRow(), ilContentStylesTableGUI\fillRow(), ilSysStyleCatAssignmentTableGUI\fillRow(), ilSystemStylesTableGUI\fillRow(), ilRoleAssignmentTableGUI\fillRow(), ilUserTableGUI\fillRow(), ilECSImportedContentTableGUI\fillRow(), ilObjectCopySelectionTableGUI\fillRow(), ilObjectLP\findMembershipsByPath(), ilChatroomAdminViewGUI\forcePublicRoom(), ilContainerContentGUI\forwardToColumnGUI(), ilObjFolderGUI\forwardToTimingsView(), ilMailMemberSearchGUI\generateContextArray(), ILIAS\Portfolio\Administration\PortfolioRoleAssignmentDBRepository\getAllAssignmentData(), ilCourseObjectiveMaterialAssignmentTableGUI\getAllSubObjects(), ilPersonalSkillsGUI\getAllSuggestedResources(), ILIAS\Help\Module\ModuleManager\getAuthoringLMId(), ilObjectGUI\getCenterColumnHTML(), ilRepositoryExplorerGUI\getChildsOfNode(), ILIAS\Skill\Table\LevelResourcesTable\getComponent(), ILIAS\News\Dashboard\DashboardNewsManager\getContextOptions(), ILIAS\Skill\Table\LevelResourcesTable\getDataRetrieval(), ilParticipants\getDefaultMemberRole(), ilObjWikiGUI\getGotoLink(), ilObjTest\getGroupData(), ILIAS\Repository\Provider\RepositoryMainBarProvider\getHomeItem(), ilCalendarAppointmentPanelGUI\getHTML(), ilADTInternalLinkPresentationBridge\getHTML(), ilLocatorGUI\getHTML(), ilPathGUI\getHTML(), ilDidacticTemplateIconFactory\getIconPathForReference(), ilNewsForContextBlockGUI\getInfoForData(), ilContainerSortingSettings\getInheritedSettings(), ilParticipants\getInstance(), ILIAS\Container\Content\ItemBlock\ItemBlockSequenceGenerator\getItemGroupItemRefIds(), ilNavigationHistory\getItems(), ilUserRoleStartingPointTableGUI\getItems(), ilTrSummaryTableGUI\getItems(), ilLMPageObjectGUI\getLinkXML(), ilPageLinker\getLinkXML(), ilPDTasksBlockGUI\getListItemForData(), ilContainerObjectiveGUI\getMainContent(), ilObjectLP\getMembers(), ilLPStatusCollection\getMembers(), ilLPStatusEvent\getMembers(), ilObjStudyProgrammeMembersGUI\getMembersTableGUI(), ILIAS\Container\Screen\MemberViewLayoutProvider\getMemberViewModeInfo(), ilCalendarSubscriptionGUI\getModalForSubscription(), ilAdministrationExplorerGUI\getNodeIcon(), ilOrgUnitExplorerGUI\getNodeIcon(), ilRepositoryExplorerGUI\getNodeIcon(), ilRepositorySelectorExplorerGUI\getNodeIcon(), ilObjectRolePermissionTableGUI\getObjId(), ilObjectRoleTemplatePermissionTableGUI\getObjId(), ilOrgUnitPermissionTableGUI\getObjId(), ilObjLearningSequenceContentTableGUI\getObjIdFor(), ilConditionObjectAdapter\getObjIdForRefId(), ilNewsObjectAdapter\getObjIdForRefId(), ilSkillObjectAdapter\getObjIdForRefId(), ilLearnerProgressDB\getObjIdForRefId(), LSItemOnlineStatus\getOnlineStatus(), ilBlogPostingGUI\getParentObjId(), ilAdvancedMDSettingsGUI\getParsedRecordObjects(), ilMembershipNotifications\getParticipants(), ilBookingInfoScreenAdapter\getPoolIds(), ilTestRandomQuestionSetSourcePoolDefinition\getPoolInfoLabel(), ilLTIProviderReleasedObjectsTableGUI\getRecords(), ilDidacticTemplateSettingsTableDataRetrieval\getRecords(), ILIAS\User\Settings\StartingPoint\SettingsGUI\getRepositoryObjectInput(), ilContainerContentGUI\getRightColumnHTML(), ilObjectGUI\getRightColumnHTML(), ILIAS\Style\Content\Object\ObjectManager\getSelectableStyles(), ILIAS\Wiki\WikiPrintViewProviderGUI\getSelectionForm(), ilObjSessionGUI\getTabs(), ilLOUtils\getTestResultLinkForUser(), ilLearningSequenceParticipantsTableGUI\getTitleFor(), ilRepositorySelector2InputGUI\getTitleForNodeId(), ilRoleAssignmentTableGUI\getTitleForReference(), ilObjOrgUnitTree\getTitles(), ilRepositoryExplorerGUI\getTopNodeForRefId(), ilLinkInputGUI\getTranslatedValue(), ilTutorialSupportBlockGUI\getTutorIds(), ilObjCategoryReferenceListGUI\getTypeIcon(), ilObjCourseReferenceListGUI\getTypeIcon(), ilObjGroupReferenceListGUI\getTypeIcon(), ilObjStudyProgrammeReferenceListGUI\getTypeIcon(), ilSoapUserAdministration\getUsersForContainer(), ilObjFolder\getViewMode(), ilObjGroup\getViewMode(), ilItemGroupDataSet\getXmlRecord(), ilSessionDataSet\getXmlRecord(), ilECSCourseCreationHandler\handle(), ILIAS\StaticURL\Handler\LegacyGotoHandler\handle(), ilLPListOfSettingsGUI\handleLPUsageInfo(), ilECSCategoryMapping\handleUpdate(), ILIAS\Style\Content\Object\ObjectManager\inheritFromParent(), ilCourseReferencePathInfo\init(), ilObjectCopyGUI\init(), ilTrashTableGUI\init(), ilSubItemListGUI\init(), ilConditionHandlerGUI\initConditionTriggerForm(), ilCourseLPBadgeGUI\initConfigForm(), ilObjSessionGUI\initContainer(), ILIAS\AdvancedMetaData\Services\SubObjectModes\DataTable\Supplier\initData(), ilSessionParticipantsTableGUI\initFilter(), ilUserTableGUI\initFilter(), ilLOTestAssignmentForm\initForm(), ilPCResourcesGUI\initForm(), ilObjGroupGUI\initForm(), ilCourseObjectivesGUI\initFormRandom(), ilContainerXmlParser\initItem(), ilCourseMembershipMailNotification\initMail(), ilGroupMembershipMailNotification\initMail(), ilBookingGatewayGUI\initPool(), ilLOTestQuestionAdapter\initTestRun(), ilPCContentIncludeGUI\insertFromPool(), ilPCQuestionGUI\insertFromPool(), ilPCMediaObjectGUI\insertFromPool(), ILIAS\COPage\Page\PageContentManager\insertInstIntoIDs(), ilPCResourcesGUI\insertResourcesIntoPageContent(), ilObjectListGUI\insertSubscribeCommand(), ilPRGAssignmentDBRepository\interimOrguLookup(), ilContSkillPresentationGUI\isAccessible(), ilMembershipNotifications\isActiveForRefId(), ilRepositoryExplorer\isClickable(), ilADTInternalLinkSearchBridgeSingle\isInCondition(), ilLPStatusCollection\isMember(), ilTestAccess\isParticipantAllowed(), ilCourseObjectivesGUI\isRandomTestType(), ilLOSettings\isRandomTestType(), ilBookingEntry\isTargetObjectVisible(), ilAdministrationGUI\jump(), ilMediaCreationGUI\listPoolItems(), ilContainerReferenceGUI\loadPropertiesFromSettingsForm(), ilLOUtils\lookupMaxAttempts(), ilCertificateObjectHelper\lookupObjId(), ilObjectPluginGUI\lookupParentTitleInCreationMode(), ilLOEditorStatus\lookupQuestionsAssigned(), ilCalendarScheduleFilterTimings\modifyEvent(), ilObjFolderGUI\modifyItemGUI(), ilObjGroupGUI\modifyItemGUI(), ilObjSessionGUI\modifyItemGUI(), ilObjectCopyProgressTableGUI\parse(), ilObjectTableGUI\parse(), ilCourseObjectivesTableGUI\parse(), ilECSCategoryMappingTableGUI\parse(), ilLPCollectionSettingsTableGUI\parse(), ilLOXmlParser\parseMaterials(), ilLOXmlParser\parseTests(), ilTimingsManageTableGUI\parseTitle(), ilTimingsPersonalTableGUI\parseTitle(), ilDclIliasReferenceFieldRepresentation\passThroughFilter(), ilAdministrationCommandGUI\paste(), ilContainerGUI\pasteObject(), ilAdministrationCommandGUI\performPasteIntoMultipleObjects(), ilObjWorkspaceFolderGUI\performPasteIntoMultipleObjects(), ilRepositoryObjectSearchGUI\performSearch(), ilRepositorySearchGUI\performSearch(), ilContainer\putInTree(), ilObjStudyProgrammeReferenceGUI\putObjectInTree(), ilCalendarCategories\readAllConsultationHoursCalendarOfContainer(), ilCalendarAppointmentGUI\readAndPrepareCalendarSelection(), ilCalendarCategories\readConsultationHoursCalendar(), ilLPStatusCourseReference\readTargetObjId(), ilBookingScheduleGUI\render(), ilLearningHistoryTimelineItem\render(), ILIAS\Containter\Content\ObjectiveRenderer\renderObjectives(), ilAccountMail\replacePlaceholders(), ilObjectLP\resetLPDataForUserIds(), ilCourseObjectivesGUI\saveRandom(), ilConsultationHoursGUI\saveSequence(), ILIAS\User\Settings\StartingPoint\SettingsGUI\saveStartingPoint(), ilObjectCopyGUI\saveTarget(), ilObjGlossaryGUI\selectGlossary(), ilObjContentObjectGUI\selectLMGlossary(), selfOrParentWithRatingEnabled(), ilMembershipCronNotifications\sendMail(), ilContainerContentGUI\setOutput(), ilQuestionEditGUI\setPoolRefId(), ilMailNotification\setRefId(), ilObjItemGroupGUI\setTabs(), ilObjectGUI\setTitleAndDescription(), ilCalendarSubscriptionGUI\show(), ilDerivedTasksGUI\show(), ilObjBibliographicGUI\showContent(), ilInternalLinkGUI\showLinkHelp(), ilAdministrationCommandGUI\showLinkIntoMultipleObjectsTree(), ilMemberViewGUI\showMemberViewSwitch(), ilAdministrationCommandGUI\showMoveIntoObjectTree(), ilNewsForContextBlockGUI\showNews(), ilBookingGatewayGUI\showPoolSelector(), ilAdministrationExplorerGUI\sortChilds(), ilRepositoryExplorerGUI\sortChilds(), ilRepositorySelectorExplorerGUI\sortChilds(), ilBadgeManagementGUI\splitBadgeAndUserIdsFromString(), ilAdvancedMDRecord\toXML(), ilObjGroup\translateViewMode(), ilObjStudyProgrammeReferenceGUI\tryingToCreateCircularReference(), ilLOTestQuestionAdapter\updateFixedQuestions(), ilLearningProgressGUI\updateManual(), ilLOTestQuestionAdapter\updateRandomQuestions(), ilContainerObjectiveGUI\updateResult(), ilMembershipRegistrationCodeUtils\useCode(), ilECSCategoryMappingRule\validate(), ilLPCollectionOfRepositoryObjects\validateEntry(), ilCourseLPBadgeGUI\validateForm(), ilSoapObjectAdministration\validateReferences(), and ilContainerXmlWriter\writeSubitems().

+ Here is the caller graph for this function:

◆ _lookupObjIdByImportId()

static ilObject::_lookupObjIdByImportId ( string  $import_id)
staticfinal

Get (latest) object id for an import id.

Definition at line 419 of file class.ilObject.php.

419 : int
420 {
421 global $DIC;
422 $db = $DIC->database();
423
424 $sql =
425 "SELECT obj_id" . PHP_EOL
426 . "FROM " . self::TABLE_OBJECT_DATA . PHP_EOL
427 . "WHERE import_id = " . $db->quote($import_id, "text") . PHP_EOL
428 . "ORDER BY create_date DESC" . PHP_EOL
429 ;
430 $result = $db->query($sql);
431
432 if ($db->numRows($result) == 0) {
433 return 0;
434 }
435
436 $row = $db->fetchObject($result);
437
438 return (int) $row->obj_id;
439 }
fetchObject(ilDBStatement $query_result)

References $db, $DIC, $import_id, ilDBInterface\fetchObject(), ilDBInterface\numRows(), ilDBInterface\query(), and ilDBInterface\quote().

Referenced by ilOrgUnitImporter\buildRef(), ilOrgUnitSimpleUserImport\buildUserId(), ilSoapObjectAdministration\getObjIdByImportId(), ilSoapObjectAdministration\getRefIdsByImportId(), ilAuthProviderECS\handleLogin(), ilGlossaryDataSet\importRecord(), ilRoleXmlImporter\initRole(), ilSoapObjectAdministration\removeFromSystemByImportId(), and ilOrgUnitSimpleImport\simpleImportElement().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _lookupOwner()

static ilObject::_lookupOwner ( int  $obj_id)
staticfinal

Lookup owner user ID for object ID.

Definition at line 865 of file class.ilObject.php.

865 : int
866 {
867 global $DIC;
868 return (int) $DIC["ilObjDataCache"]->lookupOwner($obj_id);
869 }

References $DIC.

Referenced by ilMDCopyrightUsageTableGUI\collectData(), ilPageObjectGUI\executeCommand(), ilLPTableBaseGUI\getExportMeta(), ilPCLearningHistory\getPresentation(), ilNoteGUI\getTarget(), ilPortfolioPageGUI\makePlaceHoldersClickable(), ilPortfolioRepositoryGUI\setOffline(), ilPortfolioRepositoryGUI\setOnline(), and ilObjPortfolioGUI\setOnlineAndShare().

+ Here is the caller graph for this function:

◆ _lookupOwnerName()

static ilObject::_lookupOwnerName ( int  $owner_id)
staticfinal

Lookup owner name for owner id.

Definition at line 499 of file class.ilObject.php.

499 : string
500 {
501 global $DIC;
502 $lng = $DIC->language();
503
504 $owner = null;
505 if ($owner_id != -1) {
506 if (ilObject::_exists($owner_id)) {
507 $owner = new ilObjUser($owner_id);
508 }
509 }
510
511 $own_name = $lng->txt("unknown");
512 if (is_object($owner)) {
513 $own_name = $owner->getFullname();
514 }
515
516 return $own_name;
517 }
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
User class.
ilLanguage $lng
static _exists(int $id, bool $reference=false, ?string $type=null)
checks if an object exists in object_data

References $DIC, $lng, $owner, _exists(), and ilLanguage\txt().

Referenced by getOwnerName(), and ilNoteGUI\getTarget().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _lookupTitle()

static ilObject::_lookupTitle ( int  $obj_id)
static

Reimplemented in ilContainerReference.

Definition at line 847 of file class.ilObject.php.

847 : string
848 {
849 global $DIC;
850 return (string) $DIC["ilObjDataCache"]->lookupTitle($obj_id);
851 }

References $DIC.

Referenced by ilLMGlossaryTableGUI\__construct(), ilRecommendedContentRoleTableGUI\__construct(), ilWebDAVObjectMountInstructions\__construct(), ilObjectFeedWriter\__construct(), ilTaxSelectInputGUI\__construct(), ilUserFeedWriter\__construct(), ilAttendanceList\__construct(), ilMediaPoolTableGUI\__construct(), ilCopySelfAssQuestionTableGUI\__construct(), ilObjStyleSheet\_getClonableContentStyles(), ilForum\_getModerators(), ilLPStatusEvent\_getStatusInfo(), ilObjFileGUI\_goto(), ilObjForumGUI\_goto(), ilObjCourseGUI\_goto(), ilObjChatroomGUI\_goto(), ilObjTestGUI\_goto(), ilObjSystemFolderGUI\_goto(), ilObjectPluginGUI\_goto(), ilObjBookingPoolGUI\_goto(), ilObjCategoryGUI\_goto(), ilObjCmiXapiGUI\_goto(), ilObjDataCollectionGUI\_goto(), ilObjGlossaryGUI\_goto(), ilObjFileBasedLMGUI\_goto(), ilObjItemGroupGUI\_goto(), ilLMPageObjectGUI\_goto(), ilObjContentObjectGUI\_goto(), ilObjLTIConsumerGUI\_goto(), ilObjMediaCastGUI\_goto(), ilObjMediaPoolGUI\_goto(), ilObjSAHSLearningModuleGUI\_goto(), ilObjSessionGUI\_goto(), ilObjSurveyQuestionPoolGUI\_goto(), ilObjWikiGUI\_goto(), ilObjLinkResourceGUI\_goto(), ilObjGroupGUI\_goto(), ilObjUserFolderGUI\_goto(), ilObjContentPageGUI\_goto(), ilObjLearningSequenceGUI\_goto(), ilObjMailGUI\_goto(), ilObjLearningSequence\_goto(), ilBookingInfoScreenAdapter\add(), ilObjTalkTemplateGUI\addAdminLocatorItems(), ilAppointmentPresentationGUI\addContainerInfo(), ilAppointmentPresentationGUI\addObjectLinks(), ilInfoScreenGUI\addPreconditions(), ilCalendarCategoryGUI\addReferenceLinks(), ilContentStyleSettings\addStyle(), ilECSCourseCreationHandler\addUrlEntry(), ilObjRoleGUI\adoptPermSaveObject(), ilObjRoleTemplateGUI\adoptPermSaveObject(), ilContainerReferenceGUI\afterSave(), ILIAS\Portfolio\Notification\SharedNotification\appendObjectInformation(), ilBookingInfoListItemPropertiesAdapter\appendProperties(), ilDidacticTemplateLocalRoleAction\apply(), ilContainerStartObjectsGUI\askDeleteStarter(), ilObjLanguageFolderGUI\buildConfirmModal(), ilObjectGUI\buildDeletionModalItems(), ILIAS\Authentication\Form\ApacheAuthSettingsForm\buildEnableAuthInput(), ILIAS\Course\Grouping\Table\GroupingRetrieval\buildLinkToObject(), ILIAS\Certificate\Overview\CertificateOverviewTable\buildTableRows(), ilObjRoleFolderGUI\buildTargetNamesString(), ILIAS\Test\Utilities\TitleColumnsBuilder\buildTestTitleAsLink(), ilSessionClassificationPathGUI\buildTitle(), ilPathGUI\buildTitle(), ilECSMappingSettingsGUI\cInitMappingForm(), ilMDCopyrightUsageTableGUI\collectData(), ilAppointmentPresentationConsultationHoursGUI\collectPropertiesAndActions(), ilGroupAddToGroupActionGUI\confirmAddUser(), ilPortfolioRoleAssignmentGUI\confirmAssignmentDeletion(), ilConditionHandlerGUI\confirmDeleteConditionTrigger(), ilContentStyleSettingsGUI\confirmDeleteIndividualStyles(), ilObjRoleFolderGUI\confirmDeleteObject(), ilAuthShibbolethSettingsGUI\confirmDeleteRules(), ilLOEditorGUI\confirmDeleteTest(), ilLOEditorGUI\confirmDeleteTests(), ilPortfolioRepositoryGUI\confirmPortfolioDeletion(), ilObjLanguageFolderGUI\confirmRefreshSelectedObject(), ilRecommendedContentRoleConfigGUI\confirmRemoveItems(), ilObjLanguageFolderGUI\confirmUninstallChangesObject(), ilObjLanguageFolderGUI\confirmUninstallObject(), ILIAS\MediaPool\MediaPoolManager\copyItemFromEditClipboard(), ilPageEditorGUI\copyLinkedMediaToClipboard(), ilRbacAdmin\copyLocalRoles(), ilContainerGUI\copyObject(), ilECSCourseCreationHandler\createCourseReferenceObjects(), ilGroupAddToGroupActionGUI\createGroup(), ilObjectRolePermissionTableGUI\createTooltip(), ilContainerGUI\cutObject(), ilDidacticTemplateBlockRoleAction\deleteLocalPolicy(), ilObjStyleSheetGUI\deleteObject(), ilContentStyleSettingsGUI\deleteStyle(), ilObjLTIConsumer\determineLTIRole(), ilShibbolethRoleAssignmentRules\doAssignments(), ilAccess\doConditionCheck(), ilPortfolioExerciseGUI\downloadExcSubFile(), ilWikiPageGUI\downloadExcSubFile(), ilBlogPostingGUI\executeCommand(), ilPageEditorGUI\executeCommand(), ilSharedResourceGUI\executeCommand(), ilWikiHandlerGUI\executeCommand(), ilWikiPageGUI\executeCommand(), ilRatingCategoryGUI\export(), ilWikiStatGUI\export(), ilECSSettingsGUI\exportImported(), ilECSSettingsGUI\exportReleased(), ilRegistrationGUI\fillMembershipLimitation(), ilAdvancedMDRecordTableGUI\fillRow(), ilCourseObjectivesTableGUI\fillRow(), ilHistoryTableGUI\fillRow(), ilLinksTableGUI\fillRow(), ilLMGlossaryTableGUI\fillRow(), ilMediaObjectUsagesTableGUI\fillRow(), ilMediaPoolPageUsagesTableGUI\fillRow(), ilSubscriberTableGUI\fillRow(), ilWaitingListTableGUI\fillRow(), ilMStListCoursesTableGUI\fillRow(), ilMStShowUserCoursesTableGUI\fillRow(), ilNewsForContextTableGUI\fillRow(), ilPDNewsTableGUI\fillRow(), ilWorkspaceShareTableGUI\fillRow(), ilRepDependenciesTableGUI\fillRow(), ilSkillLevelTableGUI\fillRow(), ilContentStylesTableGUI\fillRow(), ilSysStyleCatAssignmentTableGUI\fillRow(), ilSystemStylesTableGUI\fillRow(), ilUserTableGUI\fillRow(), ilECSImportedContentTableGUI\fillRow(), ilLPObjectStatisticsDailyTableGUI\fillRowCSV(), ilLPObjectStatisticsTableGUI\fillRowCSV(), ilDidacticTemplateAction\filterRoles(), ILIAS\Skill\Table\AssignMaterialsTable\getActions(), ilTaxonomyClassificationProvider\getActiveTaxonomiesForParentRefId(), ilPersonalSkillsGUI\getActualGapItem(), ILIAS\Portfolio\Administration\PortfolioRoleAssignmentDBRepository\getAllAssignmentData(), ilObjBlog\getAllLocalRoles(), ilPersonalSkillsGUI\getAllSuggestedResources(), ilExerciseGSToolProvider\getAssignmentInfo(), ilLDAPRoleAssignmentRules\getAssignmentsForCreation(), ilLDAPRoleAssignmentRules\getAssignmentsForUpdate(), ILIAS\Skill\Table\ProfileUserAssignmentTable\getAssignmentTitle(), ilObjUser\getClipboardChilds(), ILIAS\components\ILIAS\Glossary\Table\GlossaryAutoLinkTable\getComponent(), ILIAS\Skill\Table\LevelResourcesTable\getComponent(), ILIAS\News\Dashboard\DashboardNewsManager\getContextOptions(), ILIAS\components\ILIAS\Glossary\Table\GlossaryAutoLinkTable\getDataRetrieval(), ILIAS\components\ILIAS\Glossary\Table\TermListTable\getDataRetrieval(), ILIAS\components\ILIAS\Glossary\Table\TermUsagesTable\getDataRetrieval(), ILIAS\Skill\Table\AssignedObjectsTable\getDataRetrieval(), ILIAS\Skill\Table\AssignMaterialsTable\getDataRetrieval(), ILIAS\Skill\Table\LevelResourcesTable\getDataRetrieval(), ILIAS\Skill\Table\ProfileTable\getDataRetrieval(), ilObjCourse\getDefaultMemberRole(), ilObjSessionGUI\getDefaultMemberRole(), ilParticipants\getDefaultMemberRole(), ilPersonalSkillsGUI\getEvalItem(), ilPortfolioExerciseGUI\getExerciseInfo(), ilFavouritesDBRepository\getFavouritesOfUser(), ilPDNotesGUI\getFilter(), ILIAS\Registration\RegistrationFilterComponent\getFilterFields(), ILIAS\Style\Content\Object\ObjectManager\getGlobalDefaultTitle(), ILIAS\Style\Content\Object\ObjectManager\getGlobalFixedTitle(), ilLPObjectStatisticsDailyTableGUI\getGraph(), ilLPObjectStatisticsTableGUI\getGraph(), ilObjTest\getGroupData(), ilExAssignmentTeam\getGroupMembersMap(), ilObjectListGUI\getHeaderAction(), ILIAS\Help\Module\ModuleDBRepository\getHelpModules(), ilCalendarAppointmentPanelGUI\getHTML(), ilADTInternalLinkPresentationBridge\getHTML(), ilObjLearningModuleSubItemListGUI\getHTML(), ilTaggingGUI\getHTML(), ilObjWikiSubItemListGUI\getHTML(), ilExcRepoObjAssignmentInfo\getInfo(), ilNewsForContextBlockGUI\getInfoForData(), ilDclReferenceFieldRepresentation\getInputField(), assQuestion\getInstances(), ilNoteGUI\getItemGroupTitle(), ilObjStudyProgrammeAutoCategoriesGUI\getItemPath(), ilNavigationHistory\getItems(), ilRecommendedContentRoleTableGUI\getItems(), ilLPObjectStatisticsDailyTableGUI\getItems(), ilLPObjectStatisticsLPTableGUI\getItems(), ilLPObjectStatisticsTableGUI\getItems(), ilBookingReservationsTableGUI\getItems(), ilRoleAutoComplete\getListByObject(), ilPDTasksBlockGUI\getListItemForData(), ilObjBlog\getLocalContributorRole(), ilObjBlog\getLocalEditorRole(), ilSearchAutoComplete\getLuceneList(), ilMailMemberCourseRoles\getMailRoles(), ilMailMemberGroupRoles\getMailRoles(), ilMailMemberLearningSequenceRoles\getMailRoles(), ilMailMemberSessionRoles\getMailRoles(), ilPersonalSkillsGUI\getMaterialInfo(), ilCourseParticipants\getMemberRoles(), ilGroupParticipants\getMemberRoles(), ilLearningSequenceParticipants\getMemberRoles(), ilParticipant\getMembershipRoleType(), ilTaxonomyClassificationExplorerGUI\getNodeContent(), ilTaxonomyExplorerGUI\getNodeContent(), ilMailNotification\getObjectTitle(), ilNoteGUI\getOriginHeader(), ilSessionParticipantsTableGUI\getParentLocalRoles(), ilBadge\getParentMeta(), ilAdvancedMDSettingsGUI\getParsedRecordObjects(), ilObjUser\getProfileAsString(), ilWebDAVRepositoryHelper\getRawObjectTitleFromObjId(), ilLTIProviderReleasedObjectsTableGUI\getRecords(), ilDidacticTemplateSettingsTableDataRetrieval\getRecords(), ILIAS\Registration\RegistrationCodesTable\getRecords(), ILIAS\User\Settings\StartingPoint\SettingsGUI\getRepositoryObjectInput(), ilObjTest\getRoleData(), ilLTIProviderObjectSettingGUI\getRoleSelection(), ilAuthShibbolethSettingsGUI\getRuleValues(), ILIAS\Style\Content\Object\ObjectManager\getSelectableStyles(), ilNoteGUI\getTarget(), ILIAS\Survey\Tasks\DerivedTaskProvider\getTasks(), ilLearningSequenceParticipantsTableGUI\getTitleFor(), ilRepositorySelector2InputGUI\getTitleForNodeId(), ilSkillObjectAdapter\getTitleForObjId(), ilRoleAssignmentTableGUI\getTitleForReference(), ilObjStudyProgrammeAutoMembershipsGUI\getTitleRepresentation(), ilObjOrgUnitTree\getTitles(), ilLinkInputGUI\getTranslatedValue(), ILIAS\Taxonomy\Usage\UsageDBRepository\getUsageOfObject(), ilNewsItemGUI\getValuesNewsItem(), ILIAS\Export\ExportHandler\Part\ContainerManifest\Handler\getXML(), ILIAS\Export\ExportHandler\Part\Manifest\Handler\getXML(), ilECSCourseCreationHandler\handle(), ILIAS\StaticURL\Handler\LegacyGotoHandler\handle(), ilMembershipRegistrationCodeUtils\handleCode(), ilLPListOfSettingsGUI\handleLPUsageInfo(), ilCourseReferenceAppEventListener\handleReferences(), ilWorkspaceAccessTableGUI\importData(), ilSurveySyncTableGUI\importData(), ilSoapUserAdministration\importUsers(), ilTrashTableGUI\init(), ilRegistrationSettingsGUI\initAddCodesForm(), ilConditionHandlerGUI\initConditionTriggerForm(), ilCourseLPBadgeGUI\initConfigForm(), ilECSUserConsentModalGUI\initConsentForm(), ilObjRoleFolderGUI\initCopyBehaviourForm(), ilDashboardRecommendedContentGUI\initData(), ILIAS\AdvancedMetaData\Services\SubObjectModes\DataTable\Supplier\initData(), ilRegistrationSettingsGUI\initEmailAssignmentForm(), ilWorkspaceShareTableGUI\initFilter(), ilUserTableGUI\initFilter(), ilLOTestAssignmentForm\initForm(), ilObjCourseGroupingGUI\initForm(), ilPCBlogGUI\initForm(), ilAttendanceList\initForm(), ilCourseObjectivesGUI\initFormLimits(), ilAttendanceList\initFromForm(), ilAttendanceList\initFromSettings(), ilObjContentObjectGUI\initMenuEntryForm(), ilSharedResourceGUI\initPasswordForm(), ilRegistrationSettingsGUI\initRolesForm(), ilObjectContentStyleSettingsGUI\initStylePropertiesForm(), ilObjectListGUI\insertPreconditions(), ilPCResourcesGUI\insertResourcesIntoPageContent(), ilPRGAssignmentDBRepository\interimOrguLookup(), ilRbacReview\isDeleteable(), ilADTInternalLinkSearchBridgeSingle\isInCondition(), ilRbacReview\isSystemGeneratedRole(), ilMStShowUserCoursesGUI\listUsers(), ilContainerReferenceGUI\loadPropertiesFromSettingsForm(), ilObjectPluginGUI\lookupParentTitleInCreationMode(), ilSearchResultPresentation\lookupTitle(), ilStudyProgrammeUserTable\lookupTitle(), ilCertificateObjectHelper\lookupTitle(), ilExportContainer\manifestWriterBegin(), ilLDAPRoleAssignmentRule\matches(), ilCalendarScheduleFilterTimings\modifyEvent(), ilLearningSequenceAppEventListener\onServiceTrackingUpdateStatus(), ilCalendarSharedListTableGUI\parse(), ilCalendarSharedRoleListTableGUI\parse(), ilConsultationHoursTableGUI\parse(), ilObjectCopyProgressTableGUI\parse(), ilObjectTableGUI\parse(), ilCourseObjectiveQuestionsTableGUI\parse(), ilECSCategoryMappingTableGUI\parse(), ilRoleSelectionTableGUI\parse(), ilShibbolethRoleAssignmentTableGUI\parse(), ILIAS\AccessControl\Log\Table\parseChangesFaPa(), ilObjectListGUI\parseConditions(), ilRepositoryObjectResultTableGUI\parseObjectIds(), ilDclRecordEditGUI\parseSearchResults(), ilObjectCopySearchResultTableGUI\parseSearchResults(), ilDclIliasReferenceFieldRepresentation\passThroughFilter(), ilContainerGUI\pasteObject(), ilRegistrationSettingsGUI\prepareAutomaticRoleList(), ilAdvancedMDFieldDefinitionSelect\prepareCustomDefinitionFormConfirmation(), ilLDAPSettingsGUI\prepareGlobalRoleSelection(), ilAuthShibbolethSettingsGUI\prepareRoleSelect(), ilECSSettingsGUI\prepareRoleSelect(), ilSamlSettingsGUI\prepareRoleSelection(), ilOpenIdConnectSettingsGUI\prepareRoleSelection(), ilCalendarCategory\read(), ILIAS\Calendar\ConsultationHours\BookingDataProvider\read(), ILIAS\Conditions\Configuration\ConditionTriggerProvider\read(), ilContainerReference\read(), ilContentStyleSettings\read(), ilScorm2004DataSet\readData(), ilCalendarCategories\readSelectedCategories(), ilECSCmsCourseMemberCommandQueueHandler\refreshAssignmentStatus(), ilLearningHistoryTimelineItem\render(), ilMediaPoolTableGUI\render(), ilNewsTimelineItemGUI\render(), ilTaxonomyClassificationProvider\render(), ilSearchResultPresentation\renderItemList(), ilLMContentRendererGUI\renderPreconditionsOfPage(), ilTaggingSlateContentGUI\renderResourcesForTag(), ILIAS\Badge\ilBadgeUserTableGUI\renderTable(), ilAccountMail\replacePlaceholders(), ILIAS\Test\Questions\Presentation\QuestionsBrowserTable\resolveTaxonomiesRowData(), ilObjRoleFolderGUI\roleSearchListObject(), ilObjRoleFolderGUI\roleSearchObject(), ILIAS\MediaCast\BackgroundTasks\DownloadAllBackgroundTask\run(), ilCollectWorkspaceFilesJob\run(), ilObjectCopyGUI\saveTarget(), ilDataCollectionMailNotification\send(), ilMembershipCronNotifications\sendMail(), ilBookCronNotification\sendMails(), ilMembershipCronMinMembers\sendMessage(), ilBookCronNotification\sendNotifications(), ilExAssignmentReminder\sendReminders(), ilWorkspaceAccessGUI\setObjectTitle(), ilObjTaxonomyGUI\setTabs(), ilObjectGUI\setTitleAndDescription(), ilLDAPSettingsGUI\setValuesByArray(), ilDerivedTasksGUI\show(), ilPermissionGUI\showConfirmBlockRole(), ilObjBibliographicGUI\showContent(), ilNewsForContextBlockGUI\showFeedUrl(), ilInternalLinkGUI\showLinkHelp(), ilPageObjectGUI\showMediaFullscreen(), ilNewsForContextBlockGUI\showNews(), ilPageObjectGUI\showPage(), ilBookingGatewayGUI\showPoolSelector(), ilPageEditorGUI\showSnippetInfo(), ilShibbolethRoleAssignmentRules\updateAssignments(), ilMediaPoolItem\updateObjectTitle(), ilCourseLPBadgeGUI\validateForm(), ilRoleXmlExport\writeRole(), and ilContainerXmlWriter\writeSubitems().

+ Here is the caller graph for this function:

◆ _lookupType()

static ilObject::_lookupType ( int  $id,
bool  $reference = false 
)
staticfinal

Definition at line 1101 of file class.ilObject.php.

1101 : string
1102 {
1103 global $DIC;
1104
1105 if ($reference) {
1106 return $DIC["ilObjDataCache"]->lookupType($DIC["ilObjDataCache"]->lookupObjId($id));
1107 }
1108
1109 return $DIC["ilObjDataCache"]->lookupType($id);
1110 }

References $DIC, and $id.

Referenced by ilObjCourseGrouping\__addCondition(), ilNoteGUI\__construct(), ilClassificationBlockGUI\__construct(), ilTrObjectUsersPropsTableGUI\__construct(), ilTrSummaryTableGUI\__construct(), ilTrUserObjectsPropsTableGUI\__construct(), ilTrMatrixTableGUI\__construct(), ILIAS\Skill\Access\SkillTreeAccess\__construct(), ilRegistrationGUI\__construct(), ilObjCourseGroupingGUI\__construct(), ilObjectCustomUserFieldsGUI\__construct(), ilRepositoryObjectDetailSearch\__construct(), ilMemberAgreementGUI\__construct(), ilMemberExportGUI\__construct(), ilObjectFeedWriter\__construct(), ilMemberExport\__construct(), ilUserFeedWriter\__construct(), ilMemberAgreement\__construct(), ILIAS\Container\Content\ItemSetManager\__construct(), ilObjectCustomUserFieldsTableGUI\__construct(), ILIAS\Badge\ilBadgeUserTableGUI\__construct(), ilUserCertificateZip\__construct(), ilBadgeManagementGUI\__construct(), ilParticipant\__construct(), ilParticipants\__construct(), ilInternalLinkGUI\__construct(), ilCmiXapiStatementsReport\__construct(), ilAdvancedMDValues\_appendXMLByObjId(), ilHistory\_createEntry(), ilExport\_createExportDirectory(), ilExport\_generateIndexFile(), ilPCMediaObjectGUI\_getCharacteristics(), ilPCParagraphGUI\_getCharacteristics(), ilPCSectionGUI\_getCharacteristics(), ilHistory\_getEntriesForObject(), ilExport\_getExportDirectory(), ilExport\_getExportFiles(), ilConditionHandler\_getPersistedConditionsOfTarget(), ilObjCourseGUI\_goto(), ilObjGroupGUI\_goto(), ilObjLearningSequence\_goto(), ilObjectAccess\_isOffline(), ilBibliographicDataSet\_readData(), ilDataCollectionDataSet\_readData(), ilIndividualAssessmentDataSet\_readData(), _writeDescription(), ilFavouritesDBRepository\add(), ilObjectActivation\addAdditionalSubItemInformation(), ilObjRoleTemplateGUI\addAdminLocatorItems(), ilObjUserGUI\addAdminLocatorItems(), ilObjGlossary\addAutoGlossary(), assQuestionGUI\addBackTab(), ilCalendarPresentationGUI\addCategoryTabs(), SurveyQuestionGUI\addCommandButtons(), ilAppointmentPresentationGUI\addContainerInfo(), ilLPXmlWriter\addLPInformation(), ilAppointmentPresentationGUI\addObjectLinks(), ilBookingParticipantGUI\addParticipantObject(), ilCalendarCategoryGUI\addReferenceLinks(), ilBlockGUI\addRepoCommands(), ilRepositorySearchGUI\addRole(), ilSoapRBACAdministration\addRoleFromTemplate(), ilCalendarPresentationGUI\addStandardTabs(), ilExportContainer\addSubitems(), ilPCFileList\afterPageUpdate(), ilPCMediaObject\afterPageUpdate(), ILIAS\Portfolio\Notification\SharedNotification\appendObjectInformation(), ilContainerStartObjectsGUI\askDeleteStarter(), ilSoapCourseAdministration\assignCourseMember(), ILIAS\Portfolio\Administration\PortfolioRoleAssignmentManager\assignPortfoliosOnLogin(), ilUserImportParser\assignToRole(), ilRbacAdmin\assignUser(), ilPCParagraph\autoLinkGlossaries(), ILIAS\Course\Grouping\Table\AssignmentHandler\buildColumns(), ILIAS\Course\Grouping\Table\GroupingHandler\buildColumns(), ilCmiXapiHighscoreReportLinkBuilder\buildFilterStage(), ILIAS\Course\Grouping\Table\GroupingRetrieval\buildLinkToObject(), ilCmiXapiStatementsReportLinkBuilder\buildOrderingStage(), ilCalendarSelectionBlockGUI\buildPath(), ilCmiXapiHighscoreReportLinkBuilder\buildPipeline(), ilOrgUnitImporter\buildRef(), ilSessionClassificationPathGUI\buildTitle(), ilPathGUI\buildTitle(), ilCheckSumOfFileSizesJob\calculateRecursive(), ilCheckSumOfWorkspaceFileSizesJob\calculateRecursive(), ilPortfolioAccessHandler\canBeDelivered(), ilInternalLinkGUI\changeLinkType(), ilMobStakeholder\checkAccessMobUsage(), ilMobStakeholder\checkAccessObject(), ilObjMediaObjectAccess\checkAccessObject(), ilPrivacySettings\checkExportAccess(), ilLTIProviderObjectSettingGUI\checkLocalRole(), ilObjLearningSequenceGUI\checkLPAccess(), ilSoapAdministration\checkObjectAccess(), ILIAS\Test\Questions\Presentation\QuestionsTableActions\checkQuestionParametersForCopyToPool(), ILIAS\Wiki\Wiki\DomainService\checkRefId(), ilConditionHandler\cloneDependencies(), ilObjCategory\cloneDependencies(), ilObjCourseGrouping\cloneGrouping(), ilMDCopyrightUsageTableGUI\collectData(), ilMembershipBlockGUI\confirmedRemove(), ilDashboardLearningSequenceGUI\confirmedRemove(), ilObjWorkspaceFolderGUI\copy(), ilObjectCopyGUI\copyMultipleNonContainer(), ilMDKeywordExposer\copyrightReader(), ilUserCertificateZip\createArchiveDirectory(), ilAdvancedMDParser\createLocalRecord(), ilConsultationHoursGUI\createNewBookingEntry(), ilObjectRolePermissionTableGUI\createTitle(), ilObjectRolePermissionTableGUI\createTooltip(), ilAccountRegistrationGUI\createUser(), ilExportGUI\createXMLContainerExport(), ilObjWorkspaceFolderGUI\cut(), ilRbacAdmin\deassignUser(), ilAdministrationCommandGUI\delete(), ilPageObject\delete(), delete(), ilObjMediaPool\delete(), ilObjMediaPool\deleteChild(), ilObjWorkspaceFolderGUI\deleteConfirmation(), ilSoapCourseAdministration\deleteCourse(), ilPCFileList\deleteHistoryLowerEqualThan(), ilObjRole\deleteLocalPolicies(), ilCalendarSharedStatus\deleteStatus(), ilExSubmission\deleteUser(), ILIAS\Container\Content\ItemBlock\ItemBlockSequenceGenerator\determineBlockItems(), ilObjLTIConsumer\determineLTIRole(), ilAssQuestionSkillAssignmentsGUI\doesObjectTypeMatch(), ilStartUpGUI\doLTIAuthentication(), ilSoapCourseAdministration\excludeCourseMember(), ilAdministrationGUI\executeCommand(), ilExportGUI\executeCommand(), ilRepositoryGUI\executeCommand(), ilObjectPluginGUI\executeCommand(), ilLearningProgressGUI\executeCommand(), ilRatingCategoryGUI\export(), ilObjContentObject\exportXMLMediaObjects(), ilRegistrationGUI\fillAgreement(), ilRegistrationGUI\fillMembershipLimitation(), ilStudyProgrammeMembersTableGUI\fillRow(), ilCalendarManageTableGUI\fillRow(), ilLinksTableGUI\fillRow(), ilMediaObjectUsagesTableGUI\fillRow(), ilMediaPoolTableGUI\fillRow(), ilPDNewsTableGUI\fillRow(), ilWorkspaceShareTableGUI\fillRow(), ilRepDependenciesTableGUI\fillRow(), ilSkillLevelTableGUI\fillRow(), ilLPObjectStatisticsDailyTableGUI\fillRow(), ilLPObjectStatisticsLPTableGUI\fillRow(), ilLPObjectStatisticsTableGUI\fillRow(), ilRoleAssignmentTableGUI\fillRow(), ilECSImportedContentTableGUI\fillRow(), ilUnitCategoryTableGUI\fillRow(), ilSearchResult\filter(), ilOrgUnitOperationContextQueries\findByObjId(), ilOrgUnitOperationContextQueries\findByRefId(), ilObjectLP\findMembershipsByPath(), ilAdministrationGUI\forward(), ilObjPluginDispatchGUI\forward(), ilContainerContentGUI\forwardToColumnGUI(), ilMDKeywordExposer\generalReader(), ilMailMemberSearchGUI\generateContextArray(), ilStudyProgrammeMailMemberSearchGUI\generateContextArray(), ilStudyProgrammeSettingsDBRepository\get(), ilTaxonomyClassificationProvider\getActiveTaxonomiesForParentRefId(), ILIAS\Skill\Profile\SkillProfileCompletionManager\getActualMaxLevels(), ilContainerPageGUI\getAdditionalPageActions(), ILIAS\Course\Grouping\Table\AssignmentRetrieval\getAllEligibleRefIDs(), ilPersonalSkillsGUI\getAllSuggestedResources(), ILIAS\Skill\Table\ProfileUserAssignmentTable\getAssignmentTitle(), ilBadgeHandler\getAvailableManualBadges(), ilOrgUnitOperationContextDBRepository\getByObjId(), ilOrgUnitOperationContextDBRepository\getByRefId(), ilCalendarSelectionBlockGUI\getCalendars(), ilAppointmentBaseFileHandler\getCatInfo(), ilPCTableGUI\getCellContent(), ilObjectGUI\getCenterColumnHTML(), ilPageContentGUI\getCharacteristicsOfCurrentStyle(), ilCalendarAppointmentBaseFactory\getClassBaseName(), ILIAS\Skill\Table\LevelResourcesTable\getComponent(), ilLTIViewGUI\getContextId(), ilObjItemGroupGUI\getCreatableObjectTypes(), ilObjSessionGUI\getCreatableObjectTypes(), ilObjStudyProgramme\getCreatableSubObjects(), ilObjectLP\getCurrentMode(), ILIAS\Skill\Table\AssignedObjectsTable\getDataRetrieval(), ILIAS\Skill\Table\LevelResourcesTable\getDataRetrieval(), ilParticipants\getDefaultMemberRole(), ilStyleDataSet\getDependencies(), ILIAS\Style\Content\Object\ObjectManager\getEffectiveStyleId(), ilTrackingLearningHistoryProvider\getEntries(), ilObjectCopyGUI\getErrorMessageOnDisallowedObjectTypeForTarget(), ILIAS\Exercise\GUIRequest\getExercise(), ilExportFilesToIRSSMigration\getExportDirectory(), ilLPTableBaseGUI\getExportMeta(), ILIAS\ILIASObject\Properties\AdditionalProperties\LegacyRepository\getFor(), ilNoteGUI\getGlyph(), ilWorkspaceAccessHandler\getGotoLink(), ilPDNotesGUI\getGui(), ilObjectListGUI\getHeaderAction(), ILIAS\Help\Module\ModuleDBRepository\getHelpModules(), ilRepositorySelectorInputGUI\getHighlightedNode(), ilCalendarAppointmentPanelGUI\getHTML(), ilObjLearningModuleSubItemListGUI\getHTML(), ilLocatorGUI\getHTML(), ilNewsForContextBlockGUI\getHTML(), ilPathGUI\getHTML(), ilDidacticTemplateIconFactory\getIconPathForObject(), ilDidacticTemplateIconFactory\getIconPathForReference(), ilNewsForContextBlockGUI\getInfoForData(), ilParticipants\getInstance(), ilObjectLP\getInstance(), ilParticipants\getInstanceByObjId(), ilObjStudyProgrammeCache\getInstanceByRefId(), ilAdvancedMDValues\getInstancesForObjectId(), ilBookingReservationsTableGUI\getItems(), ilCalendarSelectionBlockGUI\getLegacyContent(), ilLMPageObjectGUI\getLinkXML(), ilPageLinker\getLinkXML(), ilPDTasksBlockGUI\getListItemForData(), ilPersonalSkillsGUI\getMaterialInfo(), ilPersonalSkillsGUI\getMaterials(), ILIAS\Container\Screen\MemberViewLayoutProvider\getMemberViewModeInfo(), ILIAS\Init\Provider\StartUpMetaBarProvider\getMetaBarItems(), ILIAS\COPage\PC\MediaObject\MediaObjectManager\getMultimediaXML(), ilCalendarCategories\getNotificationCalendars(), ilNoteGUI\getNumber(), ilCmiXapiAbstractReportLinkBuilder\getObj(), ilWebDAVRepositoryHelper\getObjectTitleFromObjId(), ilWebDAVRepositoryHelper\getObjectTypeFromObjId(), ilWebDAVRepositoryHelper\getObjectTypeFromRefId(), ilObjectRolePermissionTableGUI\getObjType(), ilObjectRoleTemplatePermissionTableGUI\getObjType(), ilHistoryTableGUI\getObjType(), ilOrgUnitPermissionTableGUI\getObjType(), ilMemberExport\getOrderedExportableFields(), ilAppointmentPresentationSessionGUI\getOtherMaterials(), ilSessionParticipantsTableGUI\getParentLocalRoles(), ilBadge\getParentMeta(), ilTrQuery\getParticipantsForObject(), ilExPeerReviewGUI\getPeerReviewReceiverPanel(), ilObjFileAbstractZipProcessor\getPossibleContainerObj(), ilLTIProviderReleasedObjectsTableGUI\getRecords(), ilDidacticTemplateSettingsTableDataRetrieval\getRecords(), ilExerciseManagementGUI\getReportPanel(), ILIAS\User\Settings\StartingPoint\SettingsGUI\getRepositoryObjectInput(), ilContainerContentGUI\getRightColumnHTML(), ilObjectGUI\getRightColumnHTML(), ilRegistrationRoleAssignments\getRoleByEmail(), ilRbacReview\getRoleFolderOfRole(), ilAdministrationSettingsFormHandler\getSettingsGUIInstance(), ilAdvancedMDRecord\getSharedRecords(), ilWorkspaceFolderUserSettings\getSortation(), ilPageContentGUI\getStyle(), ilClassificationBlockGUI\getSubItemIds(), ilTrQuery\getSubItemType(), ilTaggingClassificationProvider\getSubTreeTags(), ilLPCollectionOfLMChapters\getTableGUIData(), ilObjSessionGUI\getTabs(), ilNoteGUI\getTarget(), ilCalendarBlockGUI\getTargetGUIClassPath(), ilConsultationHoursCalendarBlockGUI\getTargetGUIClassPath(), ilRoleAssignmentTableGUI\getTitleForReference(), ilObjStudyProgrammeAutoMembershipsGUI\getTitleRepresentation(), ilRepositoryExplorerGUI\getTopNodeForRefId(), ilContainerGUI\getTreeSelectorGUI(), ilNoteGUI\getTriggerShyButton(), ilConditionObjectAdapter\getTypeForObjId(), ilNewsObjectAdapter\getTypeForObjId(), ilSkillObjectAdapter\getTypeForObjId(), ilOrgUnitPositionAccess\getTypeForRefId(), ilSoapUserAdministration\getUserForRole(), ilAppointmentPresentationGUI\getUserName(), ilAdvancedMDFieldDefinitionInternalLink\getValueForXML(), ilNoteGUI\getWidget(), ILIAS\Export\ExportHandler\Part\ContainerManifest\Handler\getXML(), ilCOPageExporter\getXmlExportHeadDependencies(), ilFileExporter\getXmlRepresentation(), ilForumExporter\getXmlRepresentation(), ilObject2GUI\handleAfterSaveCallback(), ilCourseAppEventListener\handleEvent(), ilOrgUnitAppEventListener\handleEvent(), ilSearchAppEventListener\handleEvent(), ilTaggingAppEventListener\handleEvent(), ilECSEventQueueReader\handleImportReset(), ilECSAppEventListener\handleMembership(), ilObjectLP\handleMove(), ilLTIProviderObjectSettingGUI\hasSettingsAccess(), ilWorkspaceAccessTableGUI\importData(), ilCalendarDataSet\importRecord(), ilGlossaryDataSet\importRecord(), ilUserDataSet\importRecord(), ilRoleXmlImporter\importSimpleXml(), ilOrgUnitImporter\importXmlRepresentation(), ilInternalLinkGUI\init(), ilObjectCopyGUI\init(), ilSubItemListGUI\init(), ILIAS\components\Export\HTML\ExportCollector\init(), ilLearningProgressGUI\initCollectionManualForm(), ilConditionHandlerGUI\initConditionTriggerForm(), ilDashboardRecommendedContentGUI\initData(), ILIAS\AdvancedMetaData\Services\SubObjectModes\DataTable\Supplier\initData(), ilPageObjectGUI\initEditing(), ilSessionParticipantsTableGUI\initFilter(), ilContainerNewsSettingsGUI\initForm(), ilPCResourcesGUI\initForm(), ilRbacAdmin\initIntersectionPermissions(), ilObjectCustomUserFieldsGUI\initMemberForm(), ilObjContentObjectGUI\initMenuEntryForm(), ilLTIProviderObjectSettingGUI\initObjectSettingsForm(), ilPluginLP\initPlugin(), ilConditionHandlerGUI\initRangeConditionInputItem(), ilCmiXapiHighscoreReport\initTableData(), ilPCContentIncludeGUI\insertFromPool(), ilPCQuestionGUI\insertFromPool(), ilPCMediaObjectGUI\insertFromPool(), ILIAS\COPage\Page\PageContentManager\insertInstIntoIDs(), ilObjectListGUI\insertMultiDownloadCommand(), ilObjectListGUI\insertPasteCommand(), ilObjectListGUI\insertSubscribeCommand(), ilObjectContentStyleSettingsGUI\isContainer(), ilPluginLP\isLPMember(), ilOrgUnitGlobalSettings\isPositionAccessActiveForObject(), ilAssQuestionPreviewSettings\isTestRefId(), ilAdministrationGUI\jump(), ilObjUserFolderGUI\jumpToUserObject(), ilObjItemGroupGUI\listMaterials(), ilMediaCreationGUI\listPoolItems(), ilRepositorySearchGUI\listUsers(), ilContainerReferenceGUI\loadPropertiesFromSettingsForm(), ilObjSAHSLearningModule\lookupAssignedGlossary(), ilCalendarSettings\lookupCalendarActivated(), ilCalendarSettings\lookupCalendarContentPresentationEnabled(), ilStudyProgrammeUserTable\lookupTitle(), ilCertificateObjectHelper\lookupType(), ilObjSessionGUI\materialsObject(), ilCmiXapiAppEventListener\onServiceObjectDeleteOrToTrash(), ilStudyProgrammeAppEventListener\onServiceObjectDeleteOrToTrash(), ilLearningSequenceAppEventListener\onServiceTrackingUpdateStatus(), ilStudyProgrammeAppEventListener\onServiceTreeInsertNode(), ilStudyProgrammeAppEventListener\onServiceTreeMoveTree(), ilCalendarManageTableGUI\parse(), ilObjectCopyProgressTableGUI\parse(), ilObjectTableGUI\parse(), ilCourseObjectivesTableGUI\parse(), ilDclMobRecordRepresentation\parseFormInput(), ilObjMediaPoolSubItemListGUI\parseImage(), ilDataSet\parseObjectExportId(), ilRepositoryObjectResultTableGUI\parseObjectIds(), ilAdministrationCommandGUI\paste(), ilAdministrationCommandGUI\performPasteIntoMultipleObjects(), assQuestionGUI\populateTaxonomyFormSection(), ILIAS\ILIASObject\Properties\Aggregator\preload(), ilAdvancedMDFieldDefinitionSelect\prepareCustomDefinitionFormConfirmation(), ilObjectGUI\prepareOutput(), ilSkillObjDeletionHandler\processDeletion(), ilGlossaryObjDeletionHandler\processObjectDeletion(), ilObjStudyProgrammeReference\putInTree(), ilObjStudyProgramme\putInTree(), ilUserQuery\query(), ilCalendarCategory\read(), ILIAS\Calendar\ConsultationHours\BookingDataProvider\read(), ILIAS\Conditions\Configuration\ConditionTriggerProvider\read(), ilExerciseMembers\read(), ilObjSAHSLearningModule\read(), ilScorm2004DataSet\readData(), ilCalendarCategories\readReposCalendars(), ilCalendarCategories\readSelectedCategories(), ilObjSessionGUI\redirectToParentContentPageObject(), ilObjectGUI\redirectToRefId(), ilObjOrgUnitGUI\redirectToRefId(), ilContainerGUI\redrawListItemObject(), ilECSCmsCourseMemberCommandQueueHandler\refreshAssignmentStatus(), ilLPStatusManualByTutor\refreshStatus(), ilCmiXapiAppEventListener\removeMembers(), ilSkillProfileGUI\removeUsers(), ilLearningHistoryTimelineItem\render(), ilLMContentRendererGUI\renderFocusMessage(), ilCalendarSelectionBlockGUI\renderItem(), ilSearchResultPresentation\renderItemList(), ilAccountMail\replacePlaceholders(), ILIAS\COPage\PC\MediaObject\MediaObjectManager\resolveMediaAliases(), ilCollectWorkspaceFilesJob\run(), ILIAS\OrgUnit\Webservices\SOAP\AddUserIdToPositionInOrgUnit\run(), ILIAS\OrgUnit\Webservices\SOAP\RemoveUserIdFromPositionInOrgUnit\run(), ilContainerNewsSettingsGUI\save(), ilNewsTimelineGUI\save(), ilObjStudyProgrammeAutoCategoriesGUI\save(), ilCertificateGUI\saveCertificate(), ilOrgUnitGlobalSettings\saveDefaultPositionActivationStatus(), ilObjStyleSheetGUI\saveObject(), ilInfoScreenGUI\saveProgress(), ilConsultationHoursGUI\saveSequence(), ilObjectCopyGUI\saveSource(), ilObjectCopyGUI\saveSourceMembership(), ilObjectCopyGUI\saveTarget(), ilMembershipCronNotifications\sendMail(), ilObjContentObject\setAutoGlossaries(), ILIAS\Repository\Ownership\OwnershipManagementRetrieval\setData(), ilMailNotification\setObjId(), ilObjStudyProgramme\setProgressesCompletedFor(), ilConditionSelector\setRefId(), ilObjItemGroupGUI\setTabs(), ilDerivedTasksGUI\show(), ilCalendarAppointmentGUI\showInfoScreen(), ilInternalLinkGUI\showLinkHelp(), ilAdministrationCommandGUI\showLinkIntoMultipleObjectsTree(), ilMemberViewGUI\showMemberViewSwitch(), ilAdministrationCommandGUI\showMoveIntoObjectTree(), ilNewsForContextBlockGUI\showNews(), ilPageObjectGUI\showPage(), ilExerciseManagementGUI\showParticipantObject(), ilAdvancedMDSettingsGUI\showRecords(), ilOrgUnitSimpleImport\simpleImportElement(), ilAdministrationExplorerGUI\sortChilds(), ilRepositoryExplorerGUI\sortChilds(), ilRepositorySelectorExplorerGUI\sortChilds(), ilRepositoryExplorer\sortNodes(), ilSearchAppEventListener\storeElement(), ilBulkEditQuestionsGUI\storeTaxonomies(), ilPCCurriculum\supportsCurriculum(), ilPCLauncher\supportsLauncher(), ilPCPRGActionNote\supportsType(), ilPCPRGStatusInfo\supportsType(), ilAdvancedMDRecord\toXML(), ilDidacticTemplateLocalPolicyAction\toXml(), ilDidacticTemplateLocalRoleAction\toXml(), ilConditionHandlerGUI\translateOperator(), ilObjStudyProgrammeReferenceGUI\tryingToCreateCircularReference(), ilNewsTimelineGUI\update(), ilECSAppEventListener\updateEnrolmentStatus(), ilPortfolioPage\updateInternalLinks(), ilLMObject\updateInternalLinks(), ilNewsItemGUI\updateNewsItem(), ilMediaPoolItem\updateObjectTitle(), ilObjectLP\updateParentCollections(), ilObjectServiceSettingsGUI\updateServiceSettingsForm(), ilLTIProviderObjectSettingGUI\updateSettings(), ilECSCategoryMappingRule\validate(), ilLPCollectionOfRepositoryObjects\validateEntry(), ilSoapObjectAdministration\validateReferences(), ILIAS\User\Profile\PublicProfileGUI\validateUser(), ilObjStudyProgrammeAutoCategoriesGUI\view(), ilRoleXmlExport\writeRole(), and ilContainerXmlWriter\writeSubitems().

+ Here is the caller graph for this function:

◆ _prepareCloneSelection()

static ilObject::_prepareCloneSelection ( array  $ref_ids,
string  $new_type,
bool  $show_path = true 
)
staticfinal

Prepare copy wizard object selection.

This method should be renamed. Currently, used in ilObjSurvey and ilObjTest

Deprecated:
since version 5.2

Definition at line 1531 of file class.ilObject.php.

1535 : array {
1536 global $DIC;
1537
1538 $db = $DIC->database();
1539 $lng = $DIC->language();
1540 $obj_definition = $DIC["objDefinition"];
1541
1542 $sql =
1543 "SELECT obj_data.title obj_title, path_data.title path_title, child" . PHP_EOL
1544 . "FROM tree " . PHP_EOL
1545 . "JOIN object_reference obj_ref ON child = obj_ref.ref_id " . PHP_EOL
1546 . "JOIN object_data obj_data ON obj_ref.obj_id = obj_data.obj_id " . PHP_EOL
1547 . "JOIN object_reference path_ref ON parent = path_ref.ref_id " . PHP_EOL
1548 . "JOIN object_data path_data ON path_ref.obj_id = path_data.obj_id " . PHP_EOL
1549 . "WHERE " . $db->in("child", $ref_ids, false, "integer") . PHP_EOL
1550 . "ORDER BY obj_data.title" . PHP_EOL
1551 ;
1552 $res = $db->query($sql);
1553
1554 if (!$obj_definition->isPlugin($new_type)) {
1555 $options[0] = $lng->txt('obj_' . $new_type . '_select');
1556 } else {
1557 $options[0] = ilObjectPlugin::lookupTxtById($new_type, "obj_" . $new_type . "_select");
1558 }
1559
1560 while ($row = $db->fetchObject($res)) {
1561 if (strlen($title = $row->obj_title) > 40) {
1562 $title = substr($title, 0, 40) . '...';
1563 }
1564
1565 if ($show_path) {
1566 if (strlen($path = $row->path_title) > 40) {
1567 $path = substr($path, 0, 40) . '...';
1568 }
1569
1570 $title .= ' (' . $lng->txt('path') . ': ' . $path . ')';
1571 }
1572
1573 $options[$row->child] = $title;
1574 }
1575 return $options ?: [];
1576 }
isPlugin(string $obj_name)
get RBAC status by type returns true if object type is an (activated) plugin type
static lookupTxtById(string $plugin_id, string $lang_var)
ilObjectDefinition $obj_definition
$path
Definition: ltiservices.php:30

References $lng, and ilLanguage\txt().

Referenced by ilObjTest\_getAvailableTests().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _resetDeletedDate()

static ilObject::_resetDeletedDate ( int  $ref_id)
staticfinal

Definition at line 980 of file class.ilObject.php.

980 : void
981 {
982 global $DIC;
983 $db = $DIC->database();
984
985 $values = [
986 "deleted" => ["timestamp", null],
987 "deleted_by" => ["integer", 0]
988 ];
989
990 $where = [
991 "ref_id" => ["integer", $ref_id]
992 ];
993
994 $db->update("object_reference", $values, $where);
995 }
update(string $table_name, array $values, array $where)
@description $where MUST contain existing columns only.

References $db, $DIC, $ref_id, and ilDBInterface\update().

+ Here is the call graph for this function:

◆ _setDeletedDate()

static ilObject::_setDeletedDate ( int  $ref_id,
int  $deleted_by 
)
staticfinal

Definition at line 946 of file class.ilObject.php.

946 : void
947 {
948 global $DIC;
949 $db = $DIC->database();
950
951 $values = [
952 "deleted" => ["date", $db->now()],
953 "deleted_by" => ["integer", $deleted_by]
954 ];
955
956 $where = [
957 "ref_id" => ["integer", $ref_id]
958 ];
959
960 $db->update("object_reference", $values, $where);
961 }

References $db, $DIC, $ref_id, ilDBInterface\now(), and ilDBInterface\update().

+ Here is the call graph for this function:

◆ _writeDescription()

static ilObject::_writeDescription ( int  $obj_id,
string  $desc 
)
staticfinal

write description to db (static)

Definition at line 1036 of file class.ilObject.php.

1036 : void
1037 {
1038 global $DIC;
1039
1040 $db = $DIC->database();
1041 $obj_definition = $DIC["objDefinition"];
1042
1043 $desc = ilStr::shortenTextExtended($desc, self::DESC_LENGTH, true);
1044
1045 $values = [
1046 "description" => ["text", $desc],
1047 "last_update" => ["date", $db->now()]
1048 ];
1049
1050 $where = [
1051 "obj_id" => ["integer", $obj_id]
1052 ];
1053
1054 $db->update(self::TABLE_OBJECT_DATA, $values, $where);
1055
1056
1058 // Update long description
1059 $sql =
1060 "SELECT obj_id, description" . PHP_EOL
1061 . "FROM object_description" . PHP_EOL
1062 . "WHERE obj_id = " . $db->quote($obj_id, 'integer') . PHP_EOL
1063 ;
1064 $result = $db->query($sql);
1065
1066 if ($result->numRows()) {
1067 $values = [
1068 "description" => ["clob", $desc]
1069 ];
1070 $db->update("object_description", $values, $where);
1071 } else {
1072 $values = [
1073 "description" => ["clob",$desc],
1074 "obj_id" => ["integer",$obj_id]
1075 ];
1076 $db->insert("object_description", $values);
1077 }
1078 }
1079 }
isRBACObject(string $obj_name)
get RBAC status by type returns true if object type is a RBAC object type
static _lookupType(int $id, bool $reference=false)
string $desc
static shortenTextExtended(string $a_str, int $a_len, bool $a_dots=false, bool $a_next_blank=false, bool $a_keep_extension=false)
insert(string $table_name, array $values)

References $db, $desc, $DIC, $obj_definition, _lookupType(), ilDBInterface\insert(), ilObjectDefinition\isRBACObject(), ilDBInterface\now(), ilDBInterface\query(), ilDBInterface\quote(), ilStr\shortenTextExtended(), and ilDBInterface\update().

Referenced by ilObjMediaObject\beforeMDUpdateListener().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _writeImportId()

static ilObject::_writeImportId ( int  $obj_id,
string  $import_id 
)
staticfinal

write import id to db (static)

Definition at line 1084 of file class.ilObject.php.

1084 : void
1085 {
1086 global $DIC;
1087 $db = $DIC->database();
1088
1089 $values = [
1090 "import_id" => ["text", $import_id],
1091 "last_update" => ["date", $db->now()]
1092 ];
1093
1094 $where = [
1095 "obj_id" => ["integer", $obj_id]
1096 ];
1097
1098 $db->update(self::TABLE_OBJECT_DATA, $values, $where);
1099 }

References $db, $DIC, $import_id, ilDBInterface\now(), and ilDBInterface\update().

Referenced by ilAuthProviderECS\createUser(), and ilCourseXMLParser\handlerBeginTag().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _writeTitle()

static ilObject::_writeTitle ( int  $obj_id,
string  $title 
)
staticfinal

write title to db (static)

Definition at line 1016 of file class.ilObject.php.

1016 : void
1017 {
1018 global $DIC;
1019 $db = $DIC->database();
1020
1021 $values = [
1022 "title" => ["text", $title],
1023 "last_update" => ["date", $db->now()]
1024 ];
1025
1026 $where = [
1027 "obj_id" => ["integer", $obj_id]
1028 ];
1029
1030 $db->update(self::TABLE_OBJECT_DATA, $values, $where);
1031 }

References $db, $DIC, $title, ilDBInterface\now(), and ilDBInterface\update().

Referenced by ilObjMediaObject\beforeMDUpdateListener(), and ilObjSAHSLearningModuleGUI\uploadObject().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ appendCopyInfo()

ilObject::appendCopyInfo ( int  $target_id,
int  $copy_id,
int  $new_obj_id 
)
final

Prepend Copy info if object with same name exists in that container.

Definition at line 1682 of file class.ilObject.php.

1686 : string {
1687 $cp_options = ilCopyWizardOptions::_getInstance($copy_id);
1688 if (!$cp_options->isRootNode($this->getRefId())) {
1689 return $this->getTitle();
1690 }
1691
1692
1693 $obj_translations = $this->getObjectProperties()->clonePropertyTranslations($new_obj_id);
1694
1695 $other_children_of_same_type = $this->tree->getChildsByType($target_id, $this->type);
1696
1697 if ($obj_translations->getLanguages() === []) {
1698 $existing_titles = array_map(
1699 fn(array $child): string => $child['title'],
1700 $other_children_of_same_type
1701 );
1702
1703 return $this->appendNumberOfCopiesToTitle(
1704 $this->getTitle(),
1705 $existing_titles
1706 );
1707 }
1708
1709 return $this->appendCopyInfoToTranslations($obj_translations, $other_children_of_same_type);
1710 }
static _getInstance(int $a_copy_id)
appendNumberOfCopiesToTitle(string $title, array $other_titles_for_lang)
appendCopyInfoToTranslations(Translations $obj_translations, array $other_children_of_same_type)

References ILIAS\GlobalScreen\Scope\Footer\Factory\getTitle().

+ Here is the call graph for this function:

◆ appendCopyInfoToTranslations()

ilObject::appendCopyInfoToTranslations ( Translations  $obj_translations,
array  $other_children_of_same_type 
)
private

Definition at line 1712 of file class.ilObject.php.

1715 : string {
1716 $nodes_translations = array_map(
1717 fn(array $child): Translations =>
1718 $this->translations_repository->getFor($child['obj_id']),
1719 $other_children_of_same_type
1720 );
1721
1722 $title_translations_per_lang = array_reduce(
1723 $nodes_translations,
1725 []
1726 );
1727
1728 $installed_langs = $this->lng->getInstalledLanguages();
1729 foreach ($obj_translations->getLanguages() as $language) {
1730 $obj_translations = $obj_translations->withLanguage(
1731 $language->withTitle(
1732 $this->appendNumberOfCopiesToTitle(
1733 $language->getTitle(),
1734 $title_translations_per_lang[$language->getLanguageCode()] ?? []
1735 )
1736 )
1737 );
1738 }
1739
1740 $this->translations_repository->store($obj_translations);
1741
1742 return $obj_translations->getDefaultTitle();
1743 }
Class handles translation mode for an object.
getCallbackForTitlesPerLanguageTransformation()

◆ appendNumberOfCopiesToTitle()

ilObject::appendNumberOfCopiesToTitle ( string  $title,
array  $other_titles_for_lang 
)
private

Definition at line 1759 of file class.ilObject.php.

1762 : string {
1763 $title_without_suffix = $this->buildTitleWithoutCopySuffix($title);
1764 if ($this->isTitleUnique($title_without_suffix, $other_titles_for_lang)) {
1765 return $title_without_suffix;
1766 }
1767
1768 for ($i = 1; true; $i++) {
1769 $title_with_suffix = "{$title_without_suffix} ({$i})";
1770 if ($this->isTitleUnique($title_with_suffix, $other_titles_for_lang)) {
1771 return $title_with_suffix;
1772 }
1773 }
1774 }
buildTitleWithoutCopySuffix(string $title)
isTitleUnique(string $title, array $nodes)

◆ applyDidacticTemplate()

ilObject::applyDidacticTemplate ( int  $tpl_id)

Reimplemented in ilObjGroup.

Definition at line 1431 of file class.ilObject.php.

1431 : void
1432 {
1433 ilLoggerFactory::getLogger('obj')->debug('Applying didactic template with id: ' . $tpl_id);
1434 if ($tpl_id) {
1435 foreach (ilDidacticTemplateActionFactory::getActionsByTemplateId($tpl_id) as $action) {
1436 $action->setRefId($this->getRefId());
1437 $action->apply();
1438 }
1439 }
1440
1442 }
static getActionsByTemplateId(int $a_tpl_id)
Get actions of one template.
static assignTemplate(int $a_ref_id, int $a_obj_id, int $a_tpl_id)
static getLogger(string $a_component_id)
Get component logger.

References ilDidacticTemplateObjSettings\assignTemplate(), ilDidacticTemplateActionFactory\getActionsByTemplateId(), getId(), ilLoggerFactory\getLogger(), and getRefId().

Referenced by ilSessionDataSet\applyDidacticTemplate().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ beforeCreateMetaData()

ilObject::beforeCreateMetaData ( )
protected

Reimplemented in ilObjMediaObject.

Definition at line 723 of file class.ilObject.php.

723 : bool
724 {
725 return true;
726 }

Referenced by createMetaData().

+ Here is the caller graph for this function:

◆ beforeDeleteMetaData()

ilObject::beforeDeleteMetaData ( )
protected

Reimplemented in ilObjMediaObject.

Definition at line 771 of file class.ilObject.php.

771 : bool
772 {
773 return true;
774 }

Referenced by deleteMetaData().

+ Here is the caller graph for this function:

◆ beforeMDUpdateListener()

ilObject::beforeMDUpdateListener ( string  $a_element)
protected

Reimplemented in ilObjMediaObject.

Definition at line 698 of file class.ilObject.php.

698 : bool
699 {
700 return true;
701 }

Referenced by MDUpdateListener().

+ Here is the caller graph for this function:

◆ beforeUpdateMetaData()

ilObject::beforeUpdateMetaData ( )
protected

Reimplemented in ilObjMediaObject.

Definition at line 754 of file class.ilObject.php.

754 : bool
755 {
756 return true;
757 }

Referenced by updateMetaData().

+ Here is the caller graph for this function:

◆ buildTitleWithoutCopySuffix()

ilObject::buildTitleWithoutCopySuffix ( string  $title)
private

Definition at line 1786 of file class.ilObject.php.

1786 : string
1787 {
1788 if (preg_match('/ \‍((\d+)\‍)$/', $title, $matches)) {
1789 return substr($title, 0, -strlen($matches[0]));
1790 }
1791
1792 return $title;
1793 }

◆ cloneDependencies()

ilObject::cloneDependencies ( int  $target_id,
int  $copy_id 
)

Clone object dependencies.

This method allows to refresh any ref id references to other objects that are affected in the same copy process. Ask ilCopyWizardOptions for the mappings.

Reimplemented in ilObjGroup, ilObjItemGroup, ilObjCategory, ilContainer, ilObjCourse, and ilObjFolder.

Definition at line 1802 of file class.ilObject.php.

1802 : bool
1803 {
1804 ilConditionHandler::cloneDependencies($this->getRefId(), $target_id, $copy_id);
1805
1807 if ($tpl_id) {
1808 $factory = new ilObjectFactory();
1809 $obj = $factory->getInstanceByRefId($target_id, false);
1810 if ($obj instanceof ilObject) {
1811 $obj->applyDidacticTemplate($tpl_id);
1812 }
1813 }
1814 return true;
1815 }
static cloneDependencies(int $a_src_ref_id, int $a_target_ref_id, int $a_copy_id)
Class ilObjectFactory This class offers methods to get instances of the type-specific object classes ...
Class ilObject Basic functions for all objects.

References ilConditionHandler\cloneDependencies(), and ilDidacticTemplateObjSettings\lookupTemplateId().

+ Here is the call graph for this function:

◆ cloneMetaData()

ilObject::cloneMetaData ( ilObject  $target_obj)

Copy meta data.

Reimplemented in ilObject2.

Definition at line 1820 of file class.ilObject.php.

1820 : bool
1821 {
1822 $this->lom_services->derive()
1823 ->fromObject($this->getId(), 0, $this->getType())
1824 ->forObject($target_obj->getId(), 0, $target_obj->getType());
1825 return true;
1826 }

References getId(), ILIAS\Survey\Mode\getId(), and getType().

Referenced by ilObjCourse\cloneObject(), and ilObjSurveyQuestionPool\cloneObject().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ collectDeletionDependencies()

static ilObject::collectDeletionDependencies ( array &  $deps,
int  $ref_id,
int  $obj_id,
string  $type,
int  $depth = 0 
)
static

Collect deletion dependencies.

E.g.

Definition at line 1962 of file class.ilObject.php.

1968 : void {
1969 global $DIC;
1970
1971 $objDefinition = $DIC["objDefinition"];
1972 $tree = $DIC->repositoryTree();
1973
1974 if ($depth == 0) {
1975 $deps["dep"] = [];
1976 }
1977
1978 $deps["del_ids"][$obj_id] = $obj_id;
1979
1980 if (!$objDefinition->isPluginTypeName($type)) {
1981 $class_name = "ilObj" . $objDefinition->getClassName($type);
1982 $odeps = call_user_func([$class_name, "getDeletionDependencies"], $obj_id);
1983 if (is_array($odeps)) {
1984 foreach ($odeps as $id => $message) {
1985 $deps["dep"][$id][$obj_id][] = $message;
1986 }
1987 }
1988
1989 // get deletion dependency of children
1990 foreach ($tree->getChilds($ref_id) as $c) {
1991 ilObject::collectDeletionDependencies($deps, (int) $c["child"], (int) $c["obj_id"], (string) $c["type"], $depth + 1);
1992 }
1993 }
1994
1995 // delete all dependencies to objects that will be deleted, too
1996 if ($depth == 0) {
1997 foreach ($deps["del_ids"] as $obj_id) {
1998 unset($deps["dep"][$obj_id]);
1999 }
2000 $deps = $deps["dep"];
2001 }
2002 }
static collectDeletionDependencies(array &$deps, int $ref_id, int $obj_id, string $type, int $depth=0)
Collect deletion dependencies.
ilTree $tree
getChilds(int $a_node_id, string $a_order="", string $a_direction="ASC")
get child nodes of given node
$c
Definition: deliver.php:25
$message
Definition: xapiexit.php:31

◆ countReferences()

ilObject::countReferences ( )
final

Definition at line 1264 of file class.ilObject.php.

1264 : int
1265 {
1266 if (!isset($this->id)) {
1267 $message = "ilObject::countReferences(): No obj_id given!";
1268 $this->error->raiseError($message, $this->error->WARNING);
1269 }
1270
1271 $sql =
1272 "SELECT COUNT(ref_id) num" . PHP_EOL
1273 . "FROM object_reference" . PHP_EOL
1274 . "WHERE obj_id = " . $this->db->quote($this->id, 'integer') . PHP_EOL
1275 ;
1276
1277 $res = $this->db->query($sql);
1278 $row = $this->db->fetchObject($res);
1279
1280 return (int) $row->num;
1281 }
error(string $a_errmsg)

References $message, $res, and error().

Referenced by delete(), and ilObjSurvey\delete().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ create()

ilObject::create ( )

note: title, description and type should be set when this function is called

Reimplemented in ilObjRole, shibUser, ilObjBookingPool, ilContainer, ilObjCourse, ilObjCourseReference, ilObjTalkTemplate, ilObjExercise, ilObjForum, ilObjGroup, ilObjIndividualAssessment, ilObjLearningSequence, ilObjMediaCast, ilObjMediaPool, ilObjOrgUnit, ilObjStudyProgramme, ilObjTest, and ilObjWebDAV.

Definition at line 544 of file class.ilObject.php.

544 : int
545 {
546 global $DIC;
547 $user = $DIC["ilUser"];
548
549 if (!isset($this->type)) {
550 $message = sprintf("%s::create(): No object type given!", get_class($this));
551 $this->error->raiseError($message, $this->error->WARNING);
552 }
553
554 $this->log->write("ilObject::create(), start");
555
556 // determine owner
557 $owner = 0;
558 if ($this->getOwner() > 0) {
559 $owner = $this->getOwner();
560 } elseif (is_object($user)) {
561 $owner = $user->getId();
562 }
563
564 $now_string = (new DataFactory())->clock()->utc()->now()
565 ->format(self::DATABASE_DATE_FORMAT);
566
567 $this->id = $this->db->nextId(self::TABLE_OBJECT_DATA);
568 $values = [
569 "obj_id" => ["integer", $this->getId()],
570 "type" => ["text", $this->getType()],
571 "title" => ["text", $this->getTitle()],
572 "description" => ["text", $this->getDescription()],
573 "owner" => ["integer", $owner],
574 "create_date" => ["date", $now_string],
575 "last_update" => ["date", $now_string],
576 "import_id" => ["text", $this->getImportId()],
577 ];
578
579 $this->db->insert(self::TABLE_OBJECT_DATA, $values);
580 $this->object_properties = null;
581
582 // Save long form of description if is rbac object
583 if ($this->obj_definition->isRBACObject($this->getType())) {
584 $values = [
585 'obj_id' => ['integer',$this->id],
586 'description' => ['clob', $this->getLongDescription()]
587 ];
588 $this->db->insert('object_description', $values);
589 }
590
591 if ($this->supportsOfflineHandling()) {
592 $property_is_online = $this->getObjectProperties()->getPropertyIsOnline()->withOffline();
593 $this->getObjectProperties()->storePropertyIsOnline($property_is_online);
594 }
595
596 if ($this->obj_definition->isOrgUnitPermissionType($this->type)) {
597 ilOrgUnitGlobalSettings::getInstance()->saveDefaultPositionActivationStatus($this->id);
598 }
599
600 // the line ($this->read();) messes up meta data handling: meta data,
601 // that is not saved at this time, gets lost, so we query for the dates alone
602 $sql =
603 "SELECT last_update, create_date" . PHP_EOL
604 . "FROM " . self::TABLE_OBJECT_DATA . PHP_EOL
605 . "WHERE obj_id = " . $this->db->quote($this->id, "integer") . PHP_EOL
606 ;
607 $obj_set = $this->db->query($sql);
608 $obj_rec = $this->db->fetchAssoc($obj_set);
609 $this->last_update = $obj_rec["last_update"];
610 $this->create_date = $obj_rec["create_date"];
611
612 // set owner for new objects
613 $this->setOwner($owner);
614
615 // write log entry
616 $this->log->write(
617 sprintf(
618 "ilObject::create(), finished, obj_id: %s, type: %s, title: %s",
619 $this->getId(),
620 $this->getType(),
621 $this->getTitle()
622 )
623 );
624
625 $this->app_event_handler->raise(
626 'components/ILIAS/ILIASObject',
627 'create',
628 [
629 'obj_id' => $this->id,
630 'obj_type' => $this->type
631 ]
632 );
633
634 return $this->id;
635 }
supportsOfflineHandling()
setOwner(int $usr_id)
getLongDescription()
get object long description (stored in object_description)
ilObjUser $user

References $DIC, $id, $message, $owner, $user, error(), getDescription(), getId(), getImportId(), ilOrgUnitGlobalSettings\getInstance(), getLongDescription(), getObjectProperties(), getOwner(), getTitle(), getType(), setOwner(), and supportsOfflineHandling().

Referenced by ilWebDAVObjFactory\createDAVObject(), and ilRemoteObjectBase\createFromECSEContent().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ createMetaData()

ilObject::createMetaData ( )
final

Definition at line 703 of file class.ilObject.php.

703 : void
704 {
705 if ($this->beforeCreateMetaData()) {
706 global $DIC;
707 $ilUser = $DIC["ilUser"];
708
709 $this->lom_services->derive()->fromBasicProperties(
710 $this->getTitle(),
711 $this->getLongDescription(),
712 $ilUser->getPref('language')
713 )->forObject($this->getId(), 0, $this->getType());
714
715 $this->doCreateMetaData();
716 }
717 }
beforeCreateMetaData()

References $DIC, beforeCreateMetaData(), doCreateMetaData(), getId(), getLongDescription(), getTitle(), and getType().

Referenced by ilObjSurvey\create(), ilObjSurveyQuestionPool\create(), ilObjQuestionPool\create(), ilObjLinkResource\create(), ilObjCourse\create(), ilObjGroup\create(), ilObjIndividualAssessment\create(), ilObjMediaCast\create(), ilObjMediaPool\create(), ilObjTest\create(), ilObjContentObject\create(), ilObjFileBasedLM\create(), ilObjSession\create(), ilObjGlossary\create(), ilObjSAHSLearningModule\create(), ilObjBlog\doCreate(), ilObjContentPage\doCreate(), and ilObjDataCollection\doCreate().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ createReference()

ilObject::createReference ( )

creates reference for object

Reimplemented in ilObjSurvey, and ilObjQuestionPool.

Definition at line 1242 of file class.ilObject.php.

1242 : int
1243 {
1244 if (!isset($this->id)) {
1245 $message = "ilObject::createNewReference(): No obj_id given!";
1246 $this->error->raiseError($message, $this->error->WARNING);
1247 }
1248
1249 $next_id = $this->db->nextId('object_reference');
1250
1251 $values = [
1252 "ref_id" => ["integer", $next_id],
1253 "obj_id" => ["integer", $this->getId()]
1254 ];
1255
1256 $this->db->insert("object_reference", $values);
1257
1258 $this->ref_id = $next_id;
1259 $this->referenced = true;
1260
1261 return $this->ref_id;
1262 }

References $message, $ref_id, error(), and getId().

Referenced by ilObjStudyProgramme\addNode(), ilSoapObjectAdministration\addReferences(), ilECSCourseCreationHandler\createCourseReference(), ilWebDAVObjFactory\createDAVObject(), ilRemoteObjectBase\createFromECSEContent(), ilObject2GUI\putObjectInTree(), and ilObjectGUI\putObjectInTree().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ delete()

ilObject::delete ( )

delete object or referenced object (in the case of a referenced object, object data is only deleted if last reference is deleted) This function removes an object entirely from system!!

Returns
bool true if object was removed completely; false if only a references was removed

Reimplemented in ilObjRole, ilObjRoleFolder, ilObjRoleTemplate, ilObjBookingPool, ilObjCategory, ilObjChatroom, ilObjComponentSettings, ilContainer, ilContainerReference, ilObjCourse, ilObjCourseAdministration, ilObjCourseReference, ilObjTalkTemplateAdministration, ilObjExercise, ilObjExerciseAdministration, ilObjForum, ilObjGlossary, ilObjGroup, ilObjGroupAdministration, ilObjFileBasedLM, ilObject2, ilObjObjectFolder, ilObjIndividualAssessment, ilObjLearningSequence, ilObjMediaCast, ilObjMediaObject, ilObjMediaPool, ilObjOrgUnit, ilObjRepositorySettings, ilObjRootFolder, ilObjSAHSLearningModule, ilObjSession, ilObjSkillManagement, ilObjStudyProgramme, ilObjStyleSheet, ilObjSurvey, ilObjSurveyQuestionPool, ilObjSystemFolder, ilObjTaxonomyAdministration, ilObjTest, ilObjQuestionPool, ilObjUser, ilObjUserFolder, ilObjLinkResource, ilObjWebResourceAdministration, and ilObjWiki.

Definition at line 1291 of file class.ilObject.php.

1291 : bool
1292 {
1293 global $DIC;
1294 $rbac_admin = $DIC["rbacadmin"];
1295
1296 $remove = false;
1297
1298 // delete object_data entry
1299 if ((!$this->referenced) || ($this->countReferences() == 1)) {
1300 $type = ilObject::_lookupType($this->getId());
1301 if ($this->type != $type) {
1302 $log_entry = sprintf(
1303 "ilObject::delete(): Type mismatch. Object with obj_id: %s was instantiated by type '%s'. DB type is: %s",
1304 $this->id,
1305 $this->type,
1306 $type
1307 );
1308
1309 $this->log->write($log_entry);
1310 $this->error->raiseError(
1311 sprintf("ilObject::delete(): Type mismatch. (%s/%s)", $this->type, $this->id),
1312 $this->error->WARNING
1313 );
1314 }
1315
1316 $this->app_event_handler->raise('components/ILIAS/ILIASObject', 'beforeDeletion', ['object' => $this]);
1317
1318 $this->getObjectProperties()->deletePropertyTranslations();
1319
1320 $sql =
1321 "DELETE FROM " . self::TABLE_OBJECT_DATA . PHP_EOL
1322 . "WHERE obj_id = " . $this->db->quote($this->getId(), "integer") . PHP_EOL
1323 ;
1324 $this->db->manipulate($sql);
1325
1326 $sql =
1327 "DELETE FROM object_description" . PHP_EOL
1328 . "WHERE obj_id = " . $this->db->quote($this->getId(), "integer") . PHP_EOL
1329 ;
1330 $this->db->manipulate($sql);
1331
1332 $this->log->write(
1333 sprintf(
1334 "ilObject::delete(), deleted object, obj_id: %s, type: %s, title: %s",
1335 $this->getId(),
1336 $this->getType(),
1337 $this->getTitle()
1338 )
1339 );
1340
1341 // keep log of core object data
1343
1344 // remove news
1345 $news_item = new ilNewsItem();
1346 $news_item->deleteNewsOfContext($this->getId(), $this->getType());
1348
1350
1351 // BEGIN WebDAV: Delete WebDAV properties
1352 $sql =
1353 "DELETE FROM dav_property" . PHP_EOL
1354 . "WHERE obj_id = " . $this->db->quote($this->getId(), 'integer') . PHP_EOL
1355 ;
1356 $this->db->manipulate($sql);
1357 // END WebDAV: Delete WebDAV properties
1358
1359 ilECSImportManager::getInstance()->_deleteByObjId($this->getId());
1362
1363 $remove = true;
1364 } else {
1365 $this->log->write(
1366 sprintf(
1367 "ilObject::delete(), object not deleted, number of references: %s, obj_id: %s, type: %s, title: %s",
1368 $this->countReferences(),
1369 $this->getId(),
1370 $this->getType(),
1371 $this->getTitle()
1372 )
1373 );
1374 }
1375
1376 // delete object_reference entry
1377 if ($this->referenced) {
1379
1380 $this->app_event_handler->raise('components/ILIAS/ILIASObject', 'deleteReference', ['ref_id' => $this->getRefId()]);
1381
1382 $sql =
1383 "DELETE FROM object_reference" . PHP_EOL
1384 . "WHERE ref_id = " . $this->db->quote($this->getRefId(), 'integer') . PHP_EOL
1385 ;
1386 $this->db->manipulate($sql);
1387
1388 $this->log->write(
1389 sprintf(
1390 "ilObject::delete(), reference deleted, ref_id: %s, obj_id: %s, type: %s, title: %s",
1391 $this->getRefId(),
1392 $this->getId(),
1393 $this->getType(),
1394 $this->getTitle()
1395 )
1396 );
1397
1398 // DELETE PERMISSION ENTRIES IN RBAC_PA
1399 // DONE: method overwritten in ilObjRole & ilObjUser.
1400 // this call only applies for objects in rbac (not usr,role,rolt)
1401 // TODO: Do this for role templates too
1402 $rbac_admin->revokePermission($this->getRefId(), 0, false);
1403
1404 ilRbacLog::delete($this->getRefId());
1405
1406 // Remove applied didactic template setting
1408 }
1409
1410 // remove conditions
1411 if ($this->referenced) {
1412 $ch = new ilConditionHandler();
1413 $ch->delete($this->getRefId());
1414 unset($ch);
1415 }
1416
1417 return $remove;
1418 }
static _deleteByObjId(int $a_obj_id)
Delete by objekt id.
static _deleteSettingsOfBlock(int $a_block_id, string $a_block_type)
INTERNAL CLASS: Please do not use in consumer code.
static getInstance()
Get the singleton instance of this ilECSImportManager.
static _deleteByObjId(int $a_obj_id)
A news item can be created by different sources.
static deleteAllEntries(int $ref_id)
Delete all db entries for ref id.
ilRbacAdmin $rbac_admin
revokePermission(int $a_ref_id, int $a_rol_id=0, bool $a_keep_protected=true)
Revokes permissions of an object of one role.
static delete(int $ref_id)

References $DIC, $rbac_admin, $type, ilAdvancedMDValues\_deleteByObjId(), ilLPObjSettings\_deleteByObjId(), ilBlockSetting\_deleteSettingsOfBlock(), _lookupType(), ilObjectDataDeletionLog\add(), countReferences(), ilRbacLog\delete(), ilObjectActivation\deleteAllEntries(), ilDidacticTemplateObjSettings\deleteByObjId(), ilDidacticTemplateObjSettings\deleteByRefId(), error(), getId(), ilECSImportManager\getInstance(), getObjectProperties(), getRefId(), getTitle(), getType(), and ilRbacAdmin\revokePermission().

Referenced by ilObject2GUI\deleteConfirmedObjects(), ilEmployeeTalkAppointmentGUI\deleteTalks(), and ILIAS\Skill\Tree\SkillTreeManager\deleteTree().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ deleteMetaData()

ilObject::deleteMetaData ( )
final

◆ doCreateMetaData()

ilObject::doCreateMetaData ( )
protected

Reimplemented in ilObjSurvey, and ilObjTest.

Definition at line 719 of file class.ilObject.php.

719 : void
720 {
721 }

Referenced by createMetaData().

+ Here is the caller graph for this function:

◆ doDeleteMetaData()

ilObject::doDeleteMetaData ( )
protected

Definition at line 767 of file class.ilObject.php.

767 : void
768 {
769 }

Referenced by deleteMetaData().

+ Here is the caller graph for this function:

◆ doMDUpdateListener()

ilObject::doMDUpdateListener ( string  $a_element)
protected

Reimplemented in ilObjCourse, ilObjContentObject, and ilObjLinkResource.

Definition at line 694 of file class.ilObject.php.

694 : void
695 {
696 }

Referenced by MDUpdateListener().

+ Here is the caller graph for this function:

◆ doUpdateMetaData()

ilObject::doUpdateMetaData ( )
protected

Definition at line 750 of file class.ilObject.php.

750 : void
751 {
752 }

Referenced by updateMetaData().

+ Here is the caller graph for this function:

◆ fixMissingTitles()

static ilObject::fixMissingTitles (   $type,
array &  $obj_title_map 
)
static

Try to fix missing object titles.

Definition at line 2077 of file class.ilObject.php.

2078 {
2079 global $DIC;
2080 $db = $DIC->database();
2081
2082 if (!in_array($type, ["catr", "crsr", "sess", "grpr", "prgr"])) {
2083 return;
2084 }
2085
2086 // any missing titles?
2087 $missing_obj_ids = [];
2088 foreach ($obj_title_map as $obj_id => $title) {
2089 if (!trim($title)) {
2090 $missing_obj_ids[] = $obj_id;
2091 }
2092 }
2093
2094 if (!sizeof($missing_obj_ids)) {
2095 return;
2096 }
2097
2098 switch ($type) {
2099 case "grpr":
2100 case "catr":
2101 case "crsr":
2102 case "prgr":
2103 $sql =
2104 "SELECT oref.obj_id, od.type, od.title" . PHP_EOL
2105 . "FROM object_data od" . PHP_EOL
2106 . "JOIN container_reference oref ON (od.obj_id = oref.target_obj_id)" . PHP_EOL
2107 . "AND " . $db->in("oref.obj_id", $missing_obj_ids, false, "integer") . PHP_EOL
2108 ;
2109 $result = $db->query($sql);
2110
2111 while ($row = $db->fetchAssoc($result)) {
2112 $obj_title_map[$row["obj_id"]] = $row["title"];
2113 }
2114 break;
2115 case "sess":
2116 foreach ($missing_obj_ids as $obj_id) {
2117 $sess = new ilObjSession($obj_id, false);
2118 $obj_title_map[$obj_id] = $sess->getFirstAppointment()->appointmentToString();
2119 }
2120 break;
2121 }
2122 }

References $DIC, ilDBInterface\fetchAssoc(), ilDBInterface\in(), and ilDBInterface\query().

Referenced by ilObjectOwnershipManagementGUI\listObjects().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ flushObjectProperties()

ilObject::flushObjectProperties ( )
Deprecated:
11: Do absolutely not use this! I will NOT check any usages before removal.

Definition at line 159 of file class.ilObject.php.

159 : void
160 {
161 $this->object_properties = null;
162 }

◆ getAllOwnedRepositoryObjects()

static ilObject::getAllOwnedRepositoryObjects ( int  $user_id)
static

Definition at line 2031 of file class.ilObject.php.

2031 : array
2032 {
2033 global $DIC;
2034
2035 $db = $DIC->database();
2036 $obj_definition = $DIC["objDefinition"];
2037
2038 // restrict to repository
2039 $types = array_keys($obj_definition->getSubObjectsRecursively("root"));
2040
2041 $sql =
2042 "SELECT od.obj_id, od.type, od.title" . PHP_EOL
2043 . "FROM object_data od" . PHP_EOL
2044 . "JOIN object_reference oref ON(oref.obj_id = od.obj_id)" . PHP_EOL
2045 . "JOIN tree ON (tree.child = oref.ref_id)" . PHP_EOL
2046 ;
2047
2048 if ($user_id) {
2049 $sql .= "WHERE od.owner = " . $db->quote($user_id, "integer") . PHP_EOL;
2050 } else {
2051 $sql .=
2052 "LEFT JOIN usr_data ud ON (ud.usr_id = od.owner)" . PHP_EOL
2053 . "WHERE (od.owner < " . $db->quote(1, "integer") . PHP_EOL
2054 . "OR od.owner IS NULL OR ud.login IS NULL)" . PHP_EOL
2055 . "AND od.owner <> " . $db->quote(-1, "integer") . PHP_EOL
2056 ;
2057 }
2058
2059 $sql .=
2060 "AND " . $db->in("od.type", $types, false, "text") . PHP_EOL
2061 . "AND tree.tree > " . $db->quote(0, "integer") . PHP_EOL
2062 ;
2063
2064 $res = $db->query($sql);
2065
2066 $all = [];
2067 while ($row = $db->fetchAssoc($res)) {
2068 $all[$row["type"]][$row["obj_id"]] = $row["title"];
2069 }
2070
2071 return $all;
2072 }
getSubObjectsRecursively(string $obj_type, bool $include_source_obj=true, bool $add_admin_objects=false)
Get all sub objects by type.

References $DIC, $res, $user_id, ilDBInterface\fetchAssoc(), ilObjectDefinition\getSubObjectsRecursively(), ilDBInterface\in(), ilDBInterface\query(), and ilDBInterface\quote().

Referenced by ilObjectOwnershipManagementGUI\listObjects().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getCallbackForTitlesPerLanguageTransformation()

ilObject::getCallbackForTitlesPerLanguageTransformation ( )
private

Definition at line 1745 of file class.ilObject.php.

1745 : callable
1746 {
1747 return function (array $npl, ?Translations $nt): array {
1748 $langs = $nt->getLanguages();
1749 foreach ($langs as $lang) {
1750 if (!array_key_exists($lang->getLanguageCode(), $npl)) {
1751 $npl[$lang->getLanguageCode()] = [];
1752 }
1753 $npl[$lang->getLanguageCode()][] = $lang->getTitle();
1754 }
1755 return $npl;
1756 };
1757 }
$lang
Definition: xapiexit.php:25

References $lang.

◆ getCreateDate()

ilObject::getCreateDate ( )
final

Get create date in YYYY-MM-DD HH-MM-SS format.

Definition at line 527 of file class.ilObject.php.

527 : string
528 {
529 return $this->create_date;
530 }
string $create_date

References $create_date.

Referenced by ilCmiXapiUser\getIdent(), and ilCmiXapiUser\getIdentAsId().

+ Here is the caller graph for this function:

◆ getDeletionDependencies()

static ilObject::getDeletionDependencies ( int  $obj_id)
static

Get deletion dependencies.

Reimplemented in ilObjGlossary.

Definition at line 2007 of file class.ilObject.php.

2007 : array
2008 {
2009 return [];
2010 }

◆ getDescription()

◆ getHTMLDirectory()

ilObject::getHTMLDirectory ( )

Definition at line 1485 of file class.ilObject.php.

1485 : bool
1486 {
1487 return false;
1488 }

◆ getIconForType()

static ilObject::getIconForType ( string  $type)
static

Definition at line 1882 of file class.ilObject.php.

1882 : string
1883 {
1884 global $DIC;
1885 $objDefinition = $DIC['objDefinition'];
1886 if (!$objDefinition->isPluginTypeName($type)) {
1887 return ilUtil::getImagePath("standard/icon_{$type}.svg");
1888 }
1889
1890 if ($objDefinition->getClassName($type) !== '') {
1891 $class_name = "il{$objDefinition->getClassName($type)}Plugin";
1892 $location = $objDefinition->getLocation($type);
1893 if (is_file($location . "/class.{$class_name}.php")) {
1894 return call_user_func([$class_name, '_getIcon'], $type);
1895 }
1896 }
1897 return ilUtil::getImagePath('standard/icon_cmps.svg');
1898 }
$location
Definition: buildRTE.php:22
static getImagePath(string $image_name, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)

References $DIC, $location, and ilUtil\getImagePath().

Referenced by ilObjectGUI\buildSubItemsForGroup(), and ilObjectGUI\createObject().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getId()

ilObject::getId ( )

Definition at line 304 of file class.ilObject.php.

304 : int
305 {
306 return $this->id;
307 }

References $id.

Referenced by ilObjectMetaDataGUI\__construct(), ilConditionHandlerGUI\__construct(), ILIAS\StudyProgramme\Certificate\ilCertificateSettingsStudyProgrammeFormRepository\__construct(), ILIAS\Exercise\Assignment\Mandatory\RandomAssignmentsManager\__construct(), ILIAS\Glossary\Export\GlossaryHtmlExport\__construct(), ILIAS\Container\Content\ItemBlock\ItemBlockSequenceGenerator\__construct(), ilContainerStartObjectsContentGUI\__construct(), ilExcAssMemberState\__construct(), ilIndividualAssessmentMembersTableGUI\__construct(), ilBiblFactoryFacade\__construct(), ilBiblAdminLibraryFacade\__construct(), ilBiblAdminFactoryFacade\__construct(), ilBookingPreferencesGUI\__construct(), ilBookingProcessWithScheduleGUI\__construct(), ilCmiXapiRegistrationGUI\__construct(), ilCertificateSettingsCmiXapiFormRepository\__construct(), ILIAS\Exercise\Certificate\CertificateSettingsExerciseRepository\__construct(), ilExerciseMembers\__construct(), ilAssignmentPresentationGUI\__construct(), ilExerciseXMLParser\__construct(), ilLMObject\__construct(), ilCertificateSettingsLTIConsumerFormRepository\__construct(), ilPollAnswersHandler\__construct(), ilMailingList\__construct(), ilObjBlog\__construct(), ilBookBulkCreationGUI\__construct(), ILIAS\BookingManager\BookingProcess\ProcessUtilGUI\__construct(), ilBookingReservationsTableGUI\__construct(), ilLOMemberTestResultTableGUI\__construct(), ILIAS\LearningModule\Editing\EditSubObjectsGUI\__construct(), ilDAVMountPoint\__construct(), ilSCORMExplorer\__construct(), ilStyleImportParser\__construct(), ilObjCourse\__createDefaultSettings(), ilObjCourse\__deleteSettings(), ilObjCourse\__readSettings(), ilObjSessionAccess\_checkAccess(), ilObjCourseGrouping\_checkGroupingDependencies(), ilObjCourseGrouping\_getGroupingItems(), ILIAS\LegalDocuments\Repository\DatabaseHistoryRepository\acceptDocument(), ILIAS\LegalDocuments\Repository\DatabaseHistoryRepository\acceptedVersion(), ILIAS\Cron\Job\Repository\JobRepositoryImpl\activateJob(), ilDclNotification\add(), ilObjectDataDeletionLog\add(), ilObjSystemFolder\addHeaderTitleTranslation(), assQuestionImport\addQuestionToParentObjectAndBuildMappingEntry(), ilObjOrgUnit\addTranslation(), ilObjRootFolder\addTranslation(), ilObjChatroomGUI\afterImport(), ilObjCourseGUI\afterImport(), ilObjBibliographicGUI\afterSave(), ilObjTaxonomyGUI\afterSave(), ilObjCategoryGUI\afterSave(), ilObjChatroomGUI\afterSave(), ilObjCourseGUI\afterSave(), ilObjFolderGUI\afterSave(), ilObjLearningSequenceGUI\afterSave(), ilObjPortfolioGUI\afterSave(), ilObjStudyProgrammeGUI\afterSave(), ilObjLinkResourceGUI\afterSave(), ilObjGroupGUI\afterSave(), ILIAS\LegalDocuments\Repository\DatabaseHistoryRepository\alreadyAccepted(), ilObjQuestionPool\appendCounterToQuestionTitleIfNecessary(), applyDidacticTemplate(), ilUserImportParser\assignToRole(), ilObjStudyProgramme\assignUser(), ilObjOrgUnit\assignUsersToEmployeeRole(), ilObjOrgUnit\assignUsersToSuperiorRole(), ilObjOrgUnit\assignUserToLocalRole(), ilIndividualAssessmentAccessHandler\assignUserToMemberRole(), ilIndividualAssessmentMembers\buildNewRecordOfUser(), ILIAS\Test\Questions\Properties\DatabaseRepository\buildQuestionPropertiesForFixedTest(), ilAuthFrontend\checkExceededLoginAttempts(), ilObjCourse\checkLPStatusSync(), ilAuthFrontend\checkSimultaneousLogins(), ilDclNotification\clear(), ilObjPortfolioBase\cloneBasics(), ilObjSession\cloneDependencies(), ilObjGroup\cloneDependencies(), ilObjCategory\cloneDependencies(), ilObjCourse\cloneDependencies(), ilObjLearningSequence\cloneLPSettings(), cloneMetaData(), ilObjTaxonomy\cloneNodes(), ilObjCourseReference\cloneObject(), ilObjChatroom\cloneObject(), ilObjCourse\cloneObject(), ilObjFolder\cloneObject(), ilObjTest\clonePage(), ilTestFixedQuestionSetConfig\cloneQuestionSetRelatedData(), ilObjSession\cloneSettings(), ilObjBibliographic\cloneStructure(), ilObjDataCollection\cloneStructure(), ilObjMediaCast\copyItems(), ilObjQuestionPool\copyQuestion(), ilObjTest\copyQuestions(), ilTestRandomQuestionSetPoolDeriver\copyQuestionsToPool(), ilObjTestGUI\copyQuestionToPool(), ilObjEmployeeTalkSeriesGUI\copyTemplateValues(), ilObjMediaPool\copyTreeContent(), ilObjPoll\countVotes(), ilObjCourse\create(), ilObjTalkTemplate\create(), ilObjForum\create(), ilObjGroup\create(), create(), ilObjIndividualAssessment\create(), ilObjLearningSequence\create(), ilObjMediaCast\create(), ilObjOrgUnit\create(), ilObjFileBasedLM\create(), ilObjSession\create(), ilObjGlossary\create(), ilObjSAHSLearningModule\create(), ilCertificatePathFactory\create(), ilCertificateGUIFactory\create(), ilCalendarAppEventListener\createAppointments(), ilRemoteObjectBase\createAuthResource(), ilCalendarAppEventListener\createCategory(), ilContainer\createContainerDirectory(), ilObjLearningSequence\createContentPage(), ilECSCourseCreationHandler\createCourseReference(), ilObjChatroom\createDefaultRole(), ilObjTest\createExportDirectory(), ilObjQuestionPool\createExportDirectory(), ilObjMediaPool\createMepTree(), createMetaData(), createReference(), ilObjForum\createSettings(), ILIAS\LegalDocuments\Repository\DatabaseHistoryRepository\currentDocumentOfAcceptedVersion(), ilObjOrgUnit\deassignUserFromEmployeeRole(), ilObjOrgUnit\deassignUserFromLocalRole(), ilIndividualAssessmentAccessHandler\deassignUserFromMemberRole(), ilObjOrgUnit\deassignUserFromSuperiorRole(), ilObjRoleTemplate\delete(), ilObjCategory\delete(), ilObjChatroom\delete(), ilContainerReference\delete(), ilObjCourse\delete(), ilObjCourseReference\delete(), ilObjForum\delete(), ilObjGroup\delete(), delete(), ilObjLearningSequence\delete(), ilObjMediaCast\delete(), ilObjOrgUnit\delete(), ilObjSAHSLearningModule\delete(), ilObjSession\delete(), ilObjStudyProgramme\delete(), ilObjSurvey\delete(), ilObjTest\delete(), ilObjQuestionPool\delete(), ilDclNotification\delete(), ilObjPoll\deleteAllAnswers(), ilObjStudyProgramme\deleteAllAutomaticContentCategories(), ilObjStudyProgramme\deleteAllAutomaticMembershipSources(), ilObjPoll\deleteAllVotes(), ilObjStudyProgramme\deleteAssignmentsAndProgresses(), ilObjStudyProgramme\deleteAutomaticContentCategories(), ilObjStudyProgramme\deleteAutomaticMembershipSource(), ilDclNotification\deleteForObject(), ilIndividualAssessmentMembersStorageDB\deleteMembers(), deleteMetaData(), ilObjMediaCast\deleteOrder(), ilObjQuestionPool\deleteQuestionpool(), ilIndividualAssessmentSettingsStorageDB\deleteSettings(), ilObjSurvey\deleteSurveyRecord(), ilObjTest\deleteTest(), ilObjSCORM2004LearningModule\deleteTrackingDataOfUsers(), ilObjOrgUnit\deleteTranslation(), ilObjRootFolder\deleteTranslation(), ilObjMediaCastGUI\determinePlaytimeObject(), ilLMNavigationStatus\determineStatus(), ilObjStudyProgramme\disableAutomaticMembershipSource(), ilADNDismiss\dismiss(), ilObjFile\doCloneObject(), ilObjPoll\doCloneObject(), ilObjBibliographic\doCloneObject(), ilObjBlog\doCloneObject(), ilObjContentPage\doCloneObject(), ilObjItemGroup\doCloneObject(), ilObjPortfolioTemplate\doCloneObject(), ilObjBibliographic\doCreate(), ilObjContentPage\doCreate(), ilObjDataCollection\doCreate(), ilObjFile\doCreate(), ilObjItemGroup\doCreate(), ilObjPoll\doCreate(), ilObjTaxonomy\doCreate(), ilRemoteObjectBase\doCreate(), ilObjCmiXapi\doDelete(), ilObjContentPage\doDelete(), ilObjDataCollection\doDelete(), ilObjFile\doDelete(), ilObjItemGroup\doDelete(), ilObjPoll\doDelete(), ilRemoteObjectBase\doDelete(), ilObjBibliographic\doDelete(), ilMailSearchObjectGUI\doesExposeMembers(), ilObjLinkResource\doMDUpdateListener(), ilObjBlog\doRead(), ilObjDataCollection\doRead(), ilObjFile\doRead(), ilObjItemGroup\doRead(), ilRemoteObjectBase\doRead(), ilObjDataCollection\doUpdate(), ilObjFile\doUpdate(), ilObjItemGroup\doUpdate(), ilObjPoll\doUpdate(), ilRemoteObjectBase\doUpdate(), McstImageGalleryGUI\downloadAll(), ilObjStudyProgramme\enableAutomaticMembershipSource(), ILIAS\LegalDocuments\Condition\Role\eval(), ilObjCourseReferenceGUI\executeCommand(), ilGroupAddToGroupActionGUI\executeCommand(), ilObjMediaPoolGUI\executeCommand(), ilMailFolderGUI\executeTableAction(), ilObjSCORMLearningModule\exportSelected(), ILIAS\Repository\Provider\RepositoryOpenGraphExposer\exposeObjectOpenGraphMetaData(), ilCmiXapiUser\generateRegistration(), ilObjectXMLWriter\getAccessInfo(), ilStudyProgrammeExpandableProgressListGUI\getAccordionContentCoursesHTML(), ilUsersGalleryGUI\getActionsSection(), ilObjStudyProgramme\getAllChildren(), ilObjStudyProgramme\getAllPrgChildren(), ilObjQuestionPool\getAllQuestionIds(), ilObjQuestionPool\getAllQuestions(), ilObjPoll\getAnswers(), ilObjSAHSLearningModule\getApiStudentId(), ilObjFile\getArrayForDatabase(), ilObjStudyProgramme\getAssignments(), ilObjStudyProgramme\getAssignmentsOf(), ILIAS\Blog\Exercise\BlogExercise\getAssignmentsOfBlog(), ilObjStudyProgramme\getAssignmentsOfSingleProgramForUser(), ilObjSCORM2004LearningModule\getAttemptsForUser(), ilObjSCORMLearningModule\getAttemptsForUser(), ilObjSCORMLearningModule\getAttemptsForUsers(), ilObjStudyProgramme\getAutomaticContentCategories(), ilObjStudyProgramme\getAutomaticMembershipSources(), ilObjStudyProgramme\getCertificateRelevantAssignmentIds(), ilObjStudyProgramme\getChildren(), ilContainer\getContainerDirectory(), ilObjLearningSequence\getContentPageId(), ilObjForum\getCountUnread(), ilObjCmiXapi\getCurrentCmixUser(), ilObjSAHSLearningModule\getDataDirectory(), ilObjFileBasedLM\getDataDirectory(), ilObjCmiXapi\getDataSetMapping(), ilPageObject\getEditLock(), ilObjQuestionPool\getExportDirectory(), ilObjTest\getExportDirectory(), ILIAS\Export\ExportHandler\Manager\Handler\getExportTargetWithObject(), ilPDSelectedItemsBlockMembershipsObjectDatabaseRepository\getForUser(), ilRemoteObjectBase\getFullRemoteLink(), ilCalendarBlockGUI\getHTML(), ilCmiXapiUser\getIdent(), ilCmiXapiUser\getIdentAsId(), ilObjSCORMInitData\getIliasScormVars(), ILIAS\Survey\InfoScreen\InfoScreenGUI\getInfoScreenGUI(), ilSoapStructureObjectFactory\getInstanceForObject(), ilExerciseVerificationTableGUI\getItems(), ilWorkspaceContentGUI\getItems(), ilPDMailBlockGUI\getListItemForData(), ilObjStudyProgramme\getLocalMembers(), ilObjStudyProgramme\getLPChildren(), ilObjCmiXapi\getLPMode(), ilObjFile\getLPMode(), ilObjLearningSequence\getLSSettings(), ilObjSAHSLearningModule\getMaxPoints(), ilObjSCORM2004LearningModule\getModuleVersionForUser(), ilObjSCORMLearningModule\getModuleVersionForUser(), ilObjSCORMLearningModule\getModuleVersionForUsers(), ilMailGlobalServices\getNewMailsData(), ILIAS\COPage\PC\InteractiveImage\IIMManager\getOverlayThumbnailPath(), ILIAS\COPage\PC\InteractiveImage\IIMManager\getOverlayWebPath(), ilPortfolioTemplatePageGUI\getPageContentUserId(), ilObjContentPage\getPageObjIds(), ilObjForum\getPageObjIds(), ilObjSAHSLearningModule\getPointsInPercent(), ilObjMediaPool\getPoolTree(), ilAbstractUsersGalleryCollectionProvider\getPopulatedGroup(), ilObjQuestionPool\getPrintviewQuestions(), ilLTIConsumerPlaceholderValues\getReachedScore(), ilObjStudyProgramme\getReferencesTo(), ilObjStudyProgramme\getSettings(), ilObjDataCollection\getTables(), ILIAS\User\Profile\ChangeMail\DBRepository\getTokenForTokenString(), ilObjSCORM2004LearningModule\getTrackedItems(), ilObjSCORMLearningModule\getTrackedItems(), ilObjSCORMLearningModule\getTrackedUsers(), ilObjSCORMLearningModule\getTrackingDataAgg(), ilObjSCORM2004LearningModule\getTrackingDataAgg(), ilObjSCORMLearningModule\getTrackingDataAggSco(), ilObjSCORMLearningModule\getTrackingDataPerUser(), ilObjSCORMLearningModule\getTrackingItems(), ilObjOrgUnit\getTranslations(), ilObjRootFolder\getTranslations(), ilObjWorkspaceRootFolder\getTranslations(), ilObjTaxonomy\getTree(), ilTutorialSupportBlockGUI\getTutorData(), ilMembershipNotifications\getUser(), ilObjSAHSLearningModule\getViewButton(), ilObjPoll\getVotePercentages(), ilObjPoll\getVotesByUsers(), ilObjLinkResource\getWebLinkRepo(), ilObjCourse\handleAutoFill(), ilObjSession\handleAutoFill(), ilECSAppEventListener\handleMembership(), ilDclNotification\has(), ilObjStudyProgramme\hasAssignments(), ilADNDismiss\hasDimissed(), ilObjStudyProgramme\hasRelevantProgresses(), ILIAS\User\Profile\ChangeMail\DBRepository\hasUserValidEmailConfirmationToken(), ilObjPoll\hasUserVoted(), ilRemoteObjectBase\importMetadataFromJson(), ilObjSCORM2004LearningModule\importSuccess(), ilObjSCORMLearningModule\importSuccess(), ilLSLocalDI\init(), ilObjSession\initAppointments(), ilObjCourse\initCourseMemberObject(), ilObjCourse\initCourseMembersObject(), ilObjCourse\initDefaultRoles(), ilObjForum\initDefaultRoles(), ilObjSession\initDefaultRoles(), ilIndividualAssessmentAccessHandler\initDefaultRolesForObject(), ilObjBookingPoolGUI\initHeaderAction(), ilObjFile\initImplementation(), ilLTIConsumeProviderSettingsGUI\initMetadata(), ilObjLTIConsumerGUI\initMetadata(), ilObjCmiXapiGUI\initMetadata(), ilObjSession\initParticipants(), ilLMContentRendererGUI\initSearchHighlighting(), ilObjContentPage\initTranslationService(), ilObjCourse\initWaitingList(), ilIndividualAssessmentMembersStorageDB\insertMembersRecord(), ilObjIndividualAssessment\isActiveLP(), ilObjStudyProgramme\isCertificateActive(), ILIAS\Survey\Participants\StatusManager\isExternalRater(), ilExSubmission\isInTeam(), shibUser\isNew(), ilStudyProgrammeDashboardViewGUI\isReadable(), ilADNNotification\isUserAllowedToDismiss(), ilADNNotification\isVisibleForUser(), ilADNNotification\isVisibleRoleUserRoles(), ILIAS\MediaCast\InternalDomainService\learningProgress(), ilObjCmiXapi\load(), ilObjLTIConsumer\load(), ilObjTest\loadFromDb(), ilObjQuestionPool\loadFromDb(), ilIndividualAssessmentSettingsStorageDB\loadInfoSettings(), ilIndividualAssessmentMembersStorageDB\loadMember(), ilIndividualAssessmentMembersStorageDB\loadMembers(), ilIndividualAssessmentSettingsStorageDB\loadSettings(), ilCalendarCategories\lookupRelevantTalkSeriesIds(), ILIAS\Mail\UserSettings\IncomingMail\mailOptionsFor(), ILIAS\Mail\UserSettings\NewMailNotification\mailOptionsFor(), ilObjForum\markAllThreadsRead(), ilObjForum\markPostRead(), MDUpdateListener(), ILIAS\MediaCast\InternalDomainService\mediaCast(), ilForum\moveThreads(), ILIAS\User\Settings\StartingPoint\Repository\onRoleDeleted(), ilObjExerciseGUI\outCertificateObject(), ilBiblFileReaderBase\parseContentToEntries(), ilObjQuestionPool\pasteFromClipboard(), ILIAS\Chatroom\UserSettings\AllowOnScreenChatConversations\persistUserInput(), ilObjQuestionPool\populateQuestionSkillAssignmentsXml(), ilMailFolderGUI\printMail(), ilObjFolder\putInTree(), putInTree(), ilObject2GUI\putObjectInTree(), ilObjectGUI\putObjectInTree(), ilObjLearningSequence\raiseEvent(), ilObjRoleFolder\read(), ilObjBookingPool\read(), ilContainerReference\read(), ilObjCourse\read(), ilObjCourseReference\read(), ilObjEmployeeTalk\read(), ilObjFolder\read(), ilObjGlossary\read(), ilObjGroup\read(), ilObjFileBasedLM\read(), ilObjMediaCast\read(), ilObjMediaPool\read(), ilObjSAHSLearningModule\read(), ilObjSession\read(), ilObjMediaCast\readItems(), ilObjSCORM2004LearningModule\readObject(), ilObjMediaCast\readOrder(), ilObjCourse\register(), ilPageObject\releasePageLock(), ilObjSystemFolder\removeHeaderTitleTranslations(), ilIndividualAssessmentMembersStorageDB\removeMembersRecord(), ilObjTest\removeQuestionWithResults(), ilObjOrgUnit\removeTranslations(), ilObjRootFolder\removeTranslations(), ilObjWorkspaceRootFolder\removeTranslations(), ilObjPortfolioBaseGUI\renderFullscreenHeader(), ilCourseObjectiveResult\resetTestForUser(), ILIAS\Test\Results\Data\Factory\retrieveResultData(), ILIAS\Calendar\UserSettings\DateFormat\retrieveValueFromUser(), ILIAS\User\Profile\Fields\Standard\Avatar\retrieveValueFromUser(), ILIAS\User\Profile\Fields\Standard\Roles\retrieveValueFromUser(), shibUser\returnNewLoginName(), ILIAS\Survey\Execution\DomainService\run(), ilObjCmiXapi\save(), ilObjLTIConsumer\save(), ilObjPoll\saveAnswer(), ilObjForum\saveData(), ilObjBookingPoolGUI\saveNotificationObject(), ilObjMediaCast\saveOrder(), ilObjQuestionPool\saveToDb(), ilObjTest\saveToDb(), ilObjPoll\saveVote(), ilObjFile\sendFile(), ilAccountRegistrationMail\sendLanguageVariableBasedAccountMail(), ilECSAppEventListener\sendNotification(), ilObjDataCollection\sendRecordNotification(), ilObjSCORMLearningModule\setLearningProgressSettingsAtUpload(), ilQTIParser\setTestObject(), ilObjExerciseGUI\showOverviewObject(), ilStudyProgrammeDIC\specificDicFor(), ilObjExerciseGUI\startAssignmentObject(), ILIAS\Survey\Participants\DomainService\status(), ilObjStudyProgramme\storeAutomaticContentCategory(), ilObjStudyProgramme\storeAutomaticMembershipSource(), ilObjCourse\syncMembersStatusWithLP(), ilMembershipNotifications\toggleUser(), ilObjContentPage\trackProgress(), ilAccountRegistrationMail\trySendingUserDefinedAccountMail(), ilObjBookingPool\update(), ilContainerReference\update(), ilObjCourse\update(), ilObjCourseReference\update(), ilObjGroup\update(), update(), ilObjMediaCast\update(), ilObjOrgUnit\update(), ilObjSAHSLearningModule\update(), ilObjStudyProgramme\update(), ilObjFileBasedLM\update(), ilObjSession\update(), ilOnlineTracking\updateAccess(), ilObjMediaCastGUI\updateCastItemObject(), ilCalendarAppEventListener\updateCategory(), ilECSAppEventListener\updateEnrolmentStatus(), ilRemoteObjectBase\updateFromECSContent(), updateMetaData(), ilObjForum\updateModificationUserId(), ilObjFile\updateObjectFromRevision(), updateOwner(), ilObjCourse\updateSettings(), ilObjOrgUnit\updateTranslation(), ilObjPoll\uploadImage(), ilIndividualAssessmentMembers\userAllreadyMember(), ilIndividualAssessmentMembers\withAdditionalUser(), ilIndividualAssessmentMembers\withoutPresentUser(), and ilObjOrgUnit\writePath().

+ Here is the caller graph for this function:

◆ getImportId()

ilObject::getImportId ( )
final

Definition at line 405 of file class.ilObject.php.

405 : string
406 {
407 return $this->import_id;
408 }

References $import_id.

Referenced by create().

+ Here is the caller graph for this function:

◆ getLastUpdateDate()

ilObject::getLastUpdateDate ( )
final

Get last update date in YYYY-MM-DD HH-MM-SS format.

Definition at line 535 of file class.ilObject.php.

535 : string
536 {
537 return $this->last_update;
538 }

References $last_update.

◆ getLongDescription()

ilObject::getLongDescription ( )

◆ getLongDescriptions()

static ilObject::getLongDescriptions ( array  $obj_ids)
static

Definition at line 2012 of file class.ilObject.php.

2012 : array
2013 {
2014 global $DIC;
2015 $db = $DIC->database();
2016
2017 $sql =
2018 "SELECT obj_id, description" . PHP_EOL
2019 . "FROM object_description" . PHP_EOL
2020 . "WHERE " . $db->in("obj_id", $obj_ids, false, "integer") . PHP_EOL
2021 ;
2022 $result = $db->query($sql);
2023
2024 $all = [];
2025 while ($row = $db->fetchAssoc($result)) {
2026 $all[$row["obj_id"]] = $row["description"];
2027 }
2028 return $all;
2029 }

References $DIC, ilDBInterface\fetchAssoc(), ilDBInterface\in(), and ilDBInterface\query().

Referenced by ILIAS\Container\Content\ItemSetManager\getCompleteDescriptions(), and ilContainer\getCompleteDescriptions().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getObjectProperties()

ilObject::getObjectProperties ( )

Definition at line 148 of file class.ilObject.php.

148 : Properties
149 {
150 if ($this->object_properties === null) {
151 $this->object_properties = $this->properties_aggregator->getFor($this->id, $this->type);
152 }
154 }
Properties $object_properties

References $object_properties.

Referenced by ILIAS\Container\Page\PageManager\__construct(), ILIAS\LearningModule\Export\LMHtmlExport\__construct(), ilCourseXMLParser\__construct(), ilMediaPoolImportGUI\__construct(), ilObjContentPageGUI\afterSave(), ilObjLearningSequenceSettingsGUI\buildFormElements(), ilObjLearningSequence\cloneActivation(), create(), delete(), ilObjFile\doCloneObject(), ilObjBibliographic\doCloneObject(), ilObjContentPage\doCloneObject(), ilObjItemGroup\doCloneObject(), ilObjBibliographic\doCreate(), ilObjContentPage\doCreate(), ilObjFile\doCreate(), ilObjItemGroup\doCreate(), ilObjContentPage\doUpdate(), ilObjItemGroup\doUpdate(), ILIAS\Repository\Provider\RepositoryOpenGraphExposer\exposeObjectOpenGraphMetaData(), getOfflineStatus(), ILIAS\Repository\Provider\RepositoryOpenGraphExposer\getPresentationImage(), ilObjContentPage\initTranslationService(), ilObjTest\removeQuestionWithResults(), setDescription(), setImportId(), ilContentPageKioskModeView\setObject(), setOfflineStatus(), setTitle(), update(), and ilObjLearningSequenceSettingsGUI\update().

+ Here is the caller graph for this function:

◆ getOfflineStatus()

ilObject::getOfflineStatus ( )

Definition at line 454 of file class.ilObject.php.

454 : bool
455 {
456 return !$this->getObjectProperties()->getPropertyIsOnline()->getIsOnline();
457 }

References getObjectProperties().

Referenced by ilObjCourse\cloneSettings(), ilObjContentPage\doCloneObject(), ilObjCourse\isActivated(), ilPollStateInfo\isOfflineOrUnavailable(), ilObjCourse\prepareAppointments(), and ilObjCourse\updateSettings().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getOwner()

ilObject::getOwner ( )
final

Definition at line 483 of file class.ilObject.php.

483 : int
484 {
485 return $this->owner;
486 }

References $owner.

Referenced by ilObjChatroomGUI\afterImport(), ilObjChatroomGUI\afterSave(), ilObjForum\cloneAutoGeneratedRoles(), create(), getOwnerName(), ilObjForum\setPermissions(), and updateOwner().

+ Here is the caller graph for this function:

◆ getOwnerName()

ilObject::getOwnerName ( )
final

get full name of object owner

Definition at line 491 of file class.ilObject.php.

491 : string
492 {
493 return ilObject::_lookupOwnerName($this->getOwner());
494 }
static _lookupOwnerName(int $owner_id)
Lookup owner name for owner id.

References _lookupOwnerName(), and getOwner().

+ Here is the call graph for this function:

◆ getPossibleSubObjects()

ilObject::getPossibleSubObjects ( bool  $filter = true)

get all possible sub objects of this type the object can decide which types of sub objects are possible jut in time overwrite if the decision distinguish from standard model

Parameters
boolfilter disabled objects? ($a_filter = true)
Returns
array list of allowed object types

Definition at line 2147 of file class.ilObject.php.

2147 : array
2148 {
2149 return $this->obj_definition->getSubObjects($this->type, $filter);
2150 }

◆ getPresentationTitle()

ilObject::getPresentationTitle ( )

get presentation title Normally same as title Overwritten for sessions

Reimplemented in ilObjRole, ilObjRoleTemplate, ilObjAdministrativeNotification, ilContainerReference, ilObjFile, ilObjFileServices, ilObjMainMenu, ilObjSession, and ilObjWebDAV.

Definition at line 340 of file class.ilObject.php.

340 : string
341 {
342 return $this->getTitle();
343 }

References getTitle().

Referenced by ILIAS\Repository\Provider\RepositoryOpenGraphExposer\exposeObjectOpenGraphMetaData().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getRefId()

ilObject::getRefId ( )
final

Definition at line 320 of file class.ilObject.php.

320 : int
321 {
322 return $this->ref_id ?? 0;
323 }

Referenced by ilObjectMetaDataGUI\__construct(), ilConditionHandlerGUI\__construct(), ILIAS\Glossary\Export\GlossaryHtmlExport\__construct(), ILIAS\LearningModule\Export\LMHtmlExport\__construct(), ILIAS\Wiki\Export\WikiHtmlExport\__construct(), ILIAS\Survey\Code\CodeManager\__construct(), ilContainerStartObjectsContentGUI\__construct(), ilBiblFactoryFacade\__construct(), ilBiblAdminLibraryFacade\__construct(), ilBiblAdminFactoryFacade\__construct(), ilBookingReservationsGUI\__construct(), ilRegistrationGUI\__construct(), ilContainerStartObjectsGUI\__construct(), ilExerciseMembers\__construct(), ilIndividualAssessmentMembersGUI\__construct(), ilSurveyExecutionGUI\__construct(), ILIAS\Survey\Participants\StatusManager\__construct(), ILIAS\Survey\Evaluation\EvaluationManager\__construct(), ilObjCourse\__getLocalRoles(), ilObjCourseGrouping\_checkGroupingDependencies(), ilObjCourseGrouping\_getGroupingItems(), ILIAS\Survey\Mode\AbstractUIModifier\addExportAndPrintButton(), ilObjStudyProgrammeCache\addInstance(), ilObjStudyProgramme\addNode(), ilSoapObjectAdministration\addReferences(), ilObjFileBasedLMGUI\afterImport(), ilObjExerciseGUI\afterSave(), ilObjBookingPoolGUI\afterSave(), ilObjCategoryGUI\afterSave(), ilObjChatroomGUI\afterSave(), ilContainerReferenceGUI\afterSave(), ilObjCourseGUI\afterSave(), ilObjFolderGUI\afterSave(), ilObjForumGUI\afterSave(), ilObjIndividualAssessmentGUI\afterSave(), ilObjContentObjectGUI\afterSave(), ilObjLearningSequenceGUI\afterSave(), ilObjMediaCastGUI\afterSave(), ilObjMediaPoolGUI\afterSave(), ilObjOrgUnitGUI\afterSave(), ilObjectPluginGUI\afterSave(), ilObjStudyProgrammeGUI\afterSave(), ilObjSurveyGUI\afterSave(), ilObjSurveyQuestionPoolGUI\afterSave(), ilObjTestGUI\afterSave(), ilObjQuestionPoolGUI\afterSave(), ilObjLinkResourceGUI\afterSave(), ilObjWikiGUI\afterSave(), ilObjGroupGUI\afterSave(), ilObjItemGroupGUI\afterSaveCallback(), ilObjSessionGUI\afterSaveCallback(), ilObjLearningSequence\announceLSOOnline(), applyDidacticTemplate(), ilObjOrgUnit\assignUsersToEmployeeRole(), ilObjOrgUnit\assignUsersToSuperiorRole(), ilObjOrgUnit\assignUserToLocalRole(), ilDidacticTemplateBlockRoleAction\blockRole(), ilObjCourse\cloneAutoGeneratedRoles(), ilObjGroup\cloneAutoGeneratedRoles(), ilObjLearningSequence\cloneAutoGeneratedRoles(), ilObjForum\cloneAutoGeneratedRoles(), ilObjGroup\cloneDependencies(), ilObjItemGroup\cloneDependencies(), ilObjCourse\cloneDependencies(), ilObjFolder\cloneDependencies(), ilTestFixedQuestionSetConfig\cloneQuestionSetRelatedData(), ilECSCourseCreationHandler\createCourseReference(), ilWebDAVObjFactory\createDAVObject(), ilObjChatroom\createDefaultRole(), ilDidacticTemplateLocalPolicyAction\createLocalPolicy(), ilObjOrgUnit\deassignUserFromEmployeeRole(), ilObjOrgUnit\deassignUserFromLocalRole(), ilObjOrgUnit\deassignUserFromSuperiorRole(), ilObjRoleFolder\delete(), delete(), ilObjLearningSequence\delete(), ilObjOrgUnit\delete(), ilObjSurvey\delete(), ilDidacticTemplateBlockRoleAction\deleteLocalPolicy(), ilObjLearningSequence\deletePostConditionsForSubObjects(), ilObjDataCollection\doCloneObject(), ilMailSearchCoursesGUI\doesExposeMembers(), ilMailSearchGroupsGUI\doesExposeMembers(), ilMailSearchObjectGUI\doesExposeMembers(), ilObjPoll\doUpdate(), ILIAS\Repository\Provider\RepositoryOpenGraphExposer\exposeObjectOpenGraphMetaData(), ilDidacticTemplateAction\filterRoles(), ilCmiXapiUser\generateRegistration(), ilStudyProgrammeExpandableProgressListGUI\getAccordionContentCoursesHTML(), ilObjForum\getAllForumParticipants(), ilObjSAHSLearningModule\getApiStudentId(), ilOrgUnitExporter\getAttributesForOrgu(), ilObjStudyProgramme\getChildren(), ilObjEmployeeTalkSeries\getChildTalks(), ilObjGroup\getDefaultAdminRole(), ilObjCourse\getDefaultCourseRoles(), ilObjGroup\getDefaultGroupRoles(), ilObjGroup\getDefaultMemberRole(), ILIAS\Test\Results\Toplist\TestTopListRepository\getGeneralToplist(), ilObjGroup\getGroupAdminIds(), ilSoapStructureObjectFactory\getInstanceForObject(), ilObjCmiXapi\getLaunchData(), ilObjCourse\getLocalCourseRoles(), ilObjGroup\getLocalGroupRoles(), ilObjStudyProgramme\getLPChildren(), ilObjLearningSequence\getLSActivation(), ilObjLearningSequence\getLSItems(), ilObjLearningSequence\getLSLearnerItems(), ilIndividualAssessmentAccessHandler\getMemberRoleIdForObj(), ilObjStudyProgramme\getParent(), ilObjStudyProgrammeReference\getParent(), ilIndividualAssessmentAccessHandler\getRoleTitleByObj(), ILIAS\Survey\Settings\SettingsFormGUI\getTutorIdsFromForm(), ILIAS\Survey\Settings\SettingsFormGUI\getTutorResIdsFromForm(), ILIAS\Test\Results\Toplist\TestTopListRepository\getUserToplistByPercentage(), ILIAS\Test\Results\Toplist\TestTopListRepository\getUserToplistByWorkingtime(), ilObjCourse\handleAutoFill(), ilLSEventHandler\handleClonedObject(), ilObjEmployeeTalkSeries\hasChildren(), ilLSLocalDI\init(), ilObjCourse\initDefaultRoles(), ilObjForum\initDefaultRoles(), ilObjSession\initDefaultRoles(), ilIndividualAssessmentAccessHandler\initDefaultRolesForObject(), ilObjSurvey\initServices(), ILIAS\Survey\Participants\StatusManager\isExternalRater(), ilObjForum\isParentMembershipEnabledContainer(), ilStudyProgrammeDashboardViewGUI\isReadable(), ilOrgUnitExportGUI\listExportFiles(), MDUpdateListener(), ilObjStudyProgramme\moveTo(), ilObjForum\parentParticipants(), ilObjCourse\prepareAppointments(), ilObjFolder\putInTree(), putInTree(), ilObject2GUI\putObjectInTree(), ilObjectGUI\putObjectInTree(), ilObjLearningSequence\read(), ilObjCourse\register(), ilTestRandomQuestionSetConfig\registerClonedSourcePoolDefinitionIdMapping(), ilObjStudyProgramme\removeNode(), ilObjPortfolioBaseGUI\renderFullscreenHeader(), ilDidacticTemplateLocalPolicyAction\revertLocalPolicy(), ILIAS\Exercise\TutorFeedbackFile\TutorFeedbackZipManager\saveMultiFeedbackFiles(), ilObjDataCollection\sendRecordNotification(), ilObjLearningSequence\setEffectiveOnlineStatus(), ilContentPageKioskModeView\setObject(), ilObjCourse\setParentRolePermissions(), setParentRolePermissions(), ilObjForum\setPermissions(), ilObjContentPage\trackProgress(), update(), ilObjLearningSequenceSettingsGUI\update(), ilLOEditorGUI\updateMaterialAssignments(), and ilObjOrgUnit\writePath().

+ Here is the caller graph for this function:

◆ getTitle()

ilObject::getTitle ( )

Reimplemented in ilObjTalkTemplateAdministration, and ilObjOrgUnit.

Definition at line 345 of file class.ilObject.php.

345 : string
346 {
347 return $this->title;
348 }

References $title.

Referenced by ilConditionHandlerGUI\__construct(), ilObjectDataDeletionLog\add(), ilObjChatroomGUI\afterImport(), ilObjLTIConsumerGUI\afterSave(), ilObjChatroomGUI\afterSave(), ilObjContentPageGUI\afterSave(), ilObjFile\beforeUpdate(), ilObjFileComponentBuilder\buildConfirmDeleteSpecificVersionsModal(), ilObjLearningSequenceSettingsGUI\buildFormElements(), create(), ilObjFileBasedLM\create(), ilCalendarAppEventListener\createCategory(), ilWebDAVObjFactory\createDAVObject(), createMetaData(), ilObjBlogGUI\createPosting(), delete(), ilObjSurvey\delete(), ilObjFile\doCloneObject(), ilObjTaxonomy\doCloneObject(), ilObjDataCollection\doCreate(), ilMailSearchObjectGUI\doesExposeMembers(), ilObjContentPage\doUpdate(), ilObjItemGroup\doUpdate(), ilObjMediaPoolGUI\executeCommand(), ilObjSCORMLearningModule\exportSelected(), ilObjQuestionPool\exportTitleAndDescription(), ilStudyProgrammeExpandableProgressListGUI\getAccordionContentCoursesHTML(), ilObjRoleTemplate\getFilterOfInternalTemplate(), ilSoapStructureObjectFactory\getInstanceForObject(), ilObjRoleTemplate\getPresentationTitle(), ilContainerReference\getPresentationTitle(), getPresentationTitle(), ilObjSession\getPresentationTitle(), ilObjSession\getPresentationTitleAppointmentPeriod(), ilObjCmiXapi\getStatementContextActivities(), ilObjCmiXapi\getStatementObject(), ilObjTest\getTitleFilenameCompliant(), ilStudyProgrammeIndividualPlanProgressListGUI\getTitleForItem(), ilStudyProgrammeProgressListGUI\getTitleForItem(), ilObjCourse\handleAutoFill(), ilLTIConsumeProviderSettingsGUI\initMetadata(), ilObjLTIConsumerGUI\initMetadata(), ilObjCmiXapiGUI\initMetadata(), ilObjFile\isHidden(), ilObjRoleTemplate\isInternalTemplate(), ilIndividualAssessmentSettingsStorageDB\loadSettings(), ilObjCourse\prepareAppointments(), ilObjSession\prepareCalendarAppointments(), putInTree(), ilObjForum\saveData(), ilObjMediaCastGUI\showCastItemObject(), ilObjForum\update(), ilCalendarAppEventListener\updateCategory(), ilObjCourse\validate(), and ilObjGroup\validate().

+ Here is the caller graph for this function:

◆ getType()

ilObject::getType ( )

Definition at line 325 of file class.ilObject.php.

325 : string
326 {
327 return $this->type;
328 }

References $type.

Referenced by ilObjectMetaDataGUI\__construct(), ilConditionHandlerGUI\__construct(), ilObjCourseGrouping\_checkGroupingDependencies(), ilObjCourseGrouping\_getGroupingItems(), ilObjectDataDeletionLog\add(), ilObjLTIConsumerGUI\afterSave(), ilObjCmiXapiGUI\afterSave(), ilObjectXMLWriter\appendObjectProperties(), cloneMetaData(), ilObjMediaCast\copyItems(), ilObjEmployeeTalkSeriesGUI\copyTemplateValues(), create(), ilCertificatePathFactory\create(), ilCertificateGUIFactory\create(), ilCalendarAppEventListener\createCategory(), ilWebDAVObjFactory\createDAVObject(), createMetaData(), ilObjForum\delete(), delete(), deleteMetaData(), ilObjContentPage\doCloneObject(), ilObjContentPage\doDelete(), ilObjLinkResource\doMDUpdateListener(), ILIAS\Repository\Provider\RepositoryOpenGraphExposer\exposeObjectOpenGraphMetaData(), ilObjectXMLWriter\getAccessInfo(), ilObjQuestionPool\getExportDirectory(), ILIAS\Export\ExportHandler\Manager\Handler\getExportTargetWithObject(), ILIAS\Survey\InfoScreen\InfoScreenGUI\getInfoScreenGUI(), ilECSObjectSettings\getInstanceByObject(), ilSoapStructureObjectFactory\getInstanceForObject(), ilObjCmiXapi\getLaunchData(), ilObjContentPage\getPageObjIds(), ilObjForum\getPageObjIds(), ilObjectPermissionStatusGUI\getUser(), ilKioskModeService\getViewFor(), ilRemoteObjectBase\importMetadataFromJson(), ilLTIConsumeProviderSettingsGUI\initMetadata(), ilObjLTIConsumerGUI\initMetadata(), ilObjCmiXapiGUI\initMetadata(), MDUpdateListener(), putInTree(), ilObjMediaCast\readItems(), ilObjPortfolioBaseGUI\renderFullscreenHeader(), setParentRolePermissions(), supportsOfflineHandling(), ilObjContentPage\trackProgress(), update(), ilPortfolioPage\updateInternalLinks(), and updateMetaData().

+ Here is the caller graph for this function:

◆ getUntranslatedTitle()

ilObject::getUntranslatedTitle ( )
final

Get untranslated object title WebDAV needs to access the untranslated title of an object.

Definition at line 354 of file class.ilObject.php.

354 : string
355 {
357 }
string $untranslatedTitle

References $untranslatedTitle.

Referenced by ilObjRoleTemplate\getPresentationTitle().

+ Here is the caller graph for this function:

◆ getXMLZip()

ilObject::getXMLZip ( )

Reimplemented in ilObjTest.

Definition at line 1481 of file class.ilObject.php.

1481 : string
1482 {
1483 return "";
1484 }

◆ handleAutoRating()

ilObject::handleAutoRating ( )
protected

Definition at line 1917 of file class.ilObject.php.

1917 : void
1918 {
1919 if ($this->process_auto_reating
1920 && $this->hasAutoRating()
1921 && method_exists($this, "setRating")
1922 ) {
1923 $this->setRating(true);
1924 $this->update();
1925 }
1926 }

Referenced by putInTree().

+ Here is the caller graph for this function:

◆ hasAutoRating()

ilObject::hasAutoRating ( )
protected

Definition at line 1928 of file class.ilObject.php.

1928 : bool
1929 {
1930 $ref_id = $this->getRefId();
1932
1933 if (!$ref_id || !in_array($type, ["file", "lm", "wiki"])) {
1934 return false;
1935 }
1936
1937 return $this->selfOrParentWithRatingEnabled();
1938 }
selfOrParentWithRatingEnabled()

References $ref_id.

◆ initDefaultRoles()

ilObject::initDefaultRoles ( )

init default roles settings Purpose of this function is to create a local role folder and local roles, that are needed depending on the object type.

If you want to set up default local roles you MUST overwrite this method in derived object classes (see ilObjForum for an example).

Reimplemented in ilObjBlog, ilObjChatroom, ilObjCourse, ilObjForum, ilObjGroup, ilObjIndividualAssessment, ilObjLearningSequence, and ilObjSession.

Definition at line 1427 of file class.ilObject.php.

1427 : void
1428 {
1429 }

Referenced by setPermissions().

+ Here is the caller graph for this function:

◆ isTitleUnique()

ilObject::isTitleUnique ( string  $title,
array  $nodes 
)
private

Definition at line 1776 of file class.ilObject.php.

1776 : bool
1777 {
1778 foreach ($nodes as $node) {
1779 if (($title === $node)) {
1780 return false;
1781 }
1782 }
1783 return true;
1784 }

◆ lookupOfflineStatus()

◆ MDUpdateListener()

ilObject::MDUpdateListener ( string  $element)
final

Metadata update listener.

Important note: Do never call create() or update() method of ilObject here. It would result in an endless loop: update object -> update meta -> update object -> ... Use static _writeTitle() ... methods instead.

Definition at line 663 of file class.ilObject.php.

663 : void
664 {
665 if ($this->beforeMDUpdateListener($element)) {
666 $this->app_event_handler->raise(
667 'components/ILIAS/ILIASObject',
668 'update',
669 ['obj_id' => $this->getId(),
670 'obj_type' => $this->getType(),
671 'ref_id' => $this->getRefId()
672 ]
673 );
674
675 // Update Title and description
676 if ($element == 'General') {
677 $paths = $this->lom_services->paths();
678 $reader = $this->lom_services->read(
679 $this->getId(),
680 0,
681 $this->getType(),
682 $paths->custom()->withNextStep('general')->get()
683 );
684
685 $this->setTitle($reader->firstData($paths->title())->value());
686 $this->setDescription($reader->firstData($paths->descriptions())->value());
687
688 $this->update();
689 }
690 $this->doMDUpdateListener($element);
691 }
692 }
doMDUpdateListener(string $a_element)
setTitle(string $title)
beforeMDUpdateListener(string $a_element)
setDescription(string $description)

References beforeMDUpdateListener(), doMDUpdateListener(), getId(), getRefId(), getType(), setDescription(), setTitle(), and update().

+ Here is the call graph for this function:

◆ processAutoRating()

ilObject::processAutoRating ( )
Deprecated:
: This function will be removed asap.

Definition at line 177 of file class.ilObject.php.

177 : void
178 {
179 $this->process_auto_reating = true;
180 }

◆ putInTree()

ilObject::putInTree ( int  $parent_ref_id)

maybe this method should be in tree object!?

Todo:
role/rbac stuff

Reimplemented in ilObjStudyProgrammeReference, ilContainer, ilObjFolder, and ilObjStudyProgramme.

Definition at line 1179 of file class.ilObject.php.

1179 : void
1180 {
1181 $this->tree->insertNode($this->getRefId(), $parent_ref_id);
1182 $this->handleAutoRating();
1183
1184 $log_entry = sprintf(
1185 "ilObject::putInTree(), parent_ref: %s, ref_id: %s, obj_id: %s, type: %s, title: %s",
1186 $parent_ref_id,
1187 $this->getRefId(),
1188 $this->getId(),
1189 $this->getType(),
1190 $this->getTitle()
1191 );
1192
1193 $this->log->write($log_entry);
1194
1195 $this->app_event_handler->raise(
1196 'components/ILIAS/ILIASObject',
1197 'putObjectInTree',
1198 [
1199 'object' => $this,
1200 'obj_type' => $this->getType(),
1201 'obj_id' => $this->getId(),
1202 'parent_ref_id' => $parent_ref_id
1203 ]
1204 );
1205 }

References getId(), getRefId(), getTitle(), getType(), and handleAutoRating().

Referenced by ilSoapObjectAdministration\addReferences(), ilWebDAVObjFactory\createDAVObject(), ilRemoteObjectBase\createFromECSEContent(), ilObject2GUI\putObjectInTree(), and ilObjectGUI\putObjectInTree().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ read()

ilObject::read ( )

Reimplemented in ilObjRole, ilObjRoleFolder, ilObjBookingPool, ilObjComponentSettings, ilContainer, ilContainerReference, ilObjCourse, ilObjCourseReference, ilObjEmployeeTalk, ilObjExercise, ilObjFolder, ilObjGlossary, ilObjGroup, ilObjFileBasedLM, ilObject2, ilObjIndividualAssessment, ilObjContentObject, ilObjLearningSequence, ilObjMediaCast, ilObjMediaObject, ilObjMediaPool, ilObjSAHSLearningModule, ilObjSession, ilObjSkillManagement, ilObjStyleSheet, ilObjSurvey, ilObjSurveyQuestionPool, ilObjTest, ilObjUser, ilObjWebDAV, and ilObjWiki.

Definition at line 182 of file class.ilObject.php.

182 : void
183 {
184 global $DIC;
185 try {
186 $ilUser = $DIC["ilUser"];
187 } catch (InvalidArgumentException $e) {
188 }
189
190 if ($this->referenced) {
191 if (!isset($this->ref_id)) {
192 $message = "ilObject::read(): No ref_id given! (" . $this->type . ")";
193 $this->error->raiseError($message, $this->error->WARNING);
194 }
195
196 // read object data
197 $sql =
198 "SELECT od.obj_id, od.type, od.title, od.description, od.owner, od.create_date," . PHP_EOL
199 . "od.last_update, od.import_id, ore.ref_id, ore.obj_id, ore.deleted, ore.deleted_by" . PHP_EOL
200 . "FROM " . self::TABLE_OBJECT_DATA . " od" . PHP_EOL
201 . "JOIN object_reference ore ON od.obj_id = ore.obj_id" . PHP_EOL
202 . "WHERE ore.ref_id = " . $this->db->quote($this->ref_id, "integer") . PHP_EOL
203 ;
204
205 $result = $this->db->query($sql);
206
207 // check number of records
208 if ($this->db->numRows($result) === 0) {
209 $message = sprintf(
210 "ilObject::read(): Object with ref_id %s not found! (%s)",
211 $this->ref_id,
212 $this->type
213 );
214 $this->error->raiseError($message, $this->error->WARNING);
215 }
216 } else {
217 if (!isset($this->id)) {
218 $message = sprintf("ilObject::read(): No obj_id given! (%s)", $this->type);
219 $this->error->raiseError($message, $this->error->WARNING);
220 }
221
222 $sql =
223 "SELECT obj_id, type, title, description, owner, create_date, last_update, import_id, offline" . PHP_EOL
224 . "FROM " . self::TABLE_OBJECT_DATA . PHP_EOL
225 . "WHERE obj_id = " . $this->db->quote($this->id, "integer") . PHP_EOL
226 ;
227 $result = $this->db->query($sql);
228
229 if ($this->db->numRows($result) === 0) {
230 $message = sprintf("ilObject::read(): Object with obj_id: %s (%s) not found!", $this->id, $this->type);
232 }
233 }
234 $obj = $this->db->fetchAssoc($result);
235
236 $this->id = (int) $obj["obj_id"];
237
238 // check type match (the "xxx" type is used for the unit test)
239 if ($this->type != $obj["type"] && $obj["type"] != "xxx") {
240 $message = sprintf(
241 "ilObject::read(): Type mismatch. Object with obj_id: %s was instantiated by type '%s'. DB type is: %s",
242 $this->id,
243 $this->type,
244 $obj["type"]
245 );
246
247 $this->log->write($message);
249 }
250
251 $this->type = (string) $obj["type"];
252 $this->title = (string) $obj["title"];
253 // BEGIN WebDAV: WebDAV needs to access the untranslated title of an object
254 $this->untranslatedTitle = (string) $obj["title"];
255 // END WebDAV: WebDAV needs to access the untranslated title of an object
256
257 $this->desc = (string) $obj["description"];
258 $this->owner = (int) $obj["owner"];
259 $this->create_date = (string) $obj["create_date"];
260 $this->last_update = (string) $obj["last_update"];
261 $this->import_id = (string) $obj["import_id"];
262
263 if ($this->obj_definition->isRBACObject($this->getType())) {
264 $sql =
265 "SELECT obj_id, description" . PHP_EOL
266 . "FROM object_description" . PHP_EOL
267 . "WHERE obj_id = " . $this->db->quote($this->id, 'integer') . PHP_EOL
268 ;
269
270 $res = $this->db->query($sql);
271
272 $this->long_desc = '';
273 while ($row = $res->fetchRow(ilDBConstants::FETCHMODE_OBJECT)) {
274 if (($row->description ?? '') !== '') {
275 $this->setDescription($row->description);
276 }
277 }
278 }
279
280 // multilingual support system objects (sys) & categories (db)
281 $translation_type = $this->obj_definition->getTranslationType($this->type);
282
283 if ($translation_type == "sys") {
284 $this->title = $this->lng->txt("obj_" . $this->type);
285 $this->setDescription($this->lng->txt("obj_" . $this->type . "_desc"));
286 } elseif ($translation_type == "db") {
287 $sql =
288 "SELECT title, description" . PHP_EOL
289 . "FROM object_translation" . PHP_EOL
290 . "WHERE obj_id = " . $this->db->quote($this->id, 'integer') . PHP_EOL
291 . "AND lang_code = " . $this->db->quote($ilUser->getCurrentLanguage(), 'text') . PHP_EOL
292 ;
293 $r = $this->db->query($sql);
294 $row = $r->fetchRow(ilDBConstants::FETCHMODE_OBJECT);
295 if ($row) {
296 $this->title = (string) $row->title;
297 $this->setDescription((string) $row->description);
298 }
299 }
300
301 $this->object_properties = null;
302 }

References $DIC, Vendor\Package\$e, $message, $res, error(), ilDBConstants\FETCHMODE_OBJECT, ILIAS\Repository\int(), ILIAS\Repository\lng(), and setDescription().

Referenced by updateOwner().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ selfOrParentWithRatingEnabled()

ilObject::selfOrParentWithRatingEnabled ( )

Definition at line 1940 of file class.ilObject.php.

1940 : bool
1941 {
1943 $ref_id = $this->getRefId();
1944 $parent_ref_id = $tree->checkForParentType($ref_id, "grp");
1945 if (!$parent_ref_id) {
1946 $parent_ref_id = $tree->checkForParentType($ref_id, "crs");
1947 }
1948 if ($parent_ref_id) {
1949 // get auto rate setting
1950 $parent_obj_id = ilObject::_lookupObjId($parent_ref_id);
1952 $parent_obj_id,
1954 );
1955 }
1956 return false;
1957 }
static _lookupContainerSetting(int $a_id, string $a_keyword, ?string $a_default_value=null)
static _lookupObjId(int $ref_id)
checkForParentType(int $a_ref_id, string $a_type, bool $a_exclude_source_check=false)
Check for parent type e.g check if a folder (ref_id 3) is in a parent course obj => checkForParentTyp...

References $ref_id, ilContainer\_lookupContainerSetting(), _lookupObjId(), ilObjectServiceSettingsGUI\AUTO_RATING_NEW_OBJECTS, and ilTree\checkForParentType().

+ Here is the call graph for this function:

◆ setDeletedDates()

static ilObject::setDeletedDates ( array  $ref_ids,
int  $user_id 
)
static
Parameters
int[]$ref_ids

Definition at line 966 of file class.ilObject.php.

966 : void
967 {
968 global $DIC;
969 $db = $DIC->database();
970
971 $sql =
972 "UPDATE object_reference" . PHP_EOL
973 . "SET deleted = " . $db->now() . ", " . PHP_EOL
974 . "deleted_by = " . $db->quote($user_id, "integer") . PHP_EOL
975 . "WHERE " . $db->in("ref_id", $ref_ids, false, "integer") . PHP_EOL;
976
977 $db->manipulate($sql);
978 }
manipulate(string $query)
Run a (write) Query on the database.

References $db, $DIC, $user_id, ilDBInterface\in(), ilDBInterface\manipulate(), ilDBInterface\now(), and ilDBInterface\quote().

Referenced by ilTree\moveToTrash().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setDescription()

ilObject::setDescription ( string  $description)
final

Definition at line 378 of file class.ilObject.php.

378 : void
379 {
380 $property = $this->getObjectProperties()
381 ->getPropertyTitleAndDescription()->withDescription($description);
382
383 $this->object_properties = $this->getObjectProperties()->withPropertyTitleAndDescription($property);
384
385 // Shortened form is storted in object_data. Long form is stored in object_description
386 $this->desc = $property->getDescription();
387 $this->long_desc = $property->getLongDescription();
388 }

References getObjectProperties().

Referenced by ilObjStudyProgrammeSettingsGUI\buildForm(), ilObjBibliographic\cloneStructure(), ilObjEmployeeTalkSeriesGUI\copyTemplateValues(), shibUser\createFields(), ilObjItemGroup\doCloneObject(), ilObjTaxonomy\doCloneObject(), ilLTIConsumerSettingsFormGUI\initObject(), ilObjLanguage\install(), MDUpdateListener(), ilObjRoleFolder\read(), read(), ilObjLanguage\refresh(), ilObjLanguageExt\setLocal(), ilObjIndividualAssessment\setSettings(), ilObjLanguage\uninstall(), ilObjLearningSequenceSettingsGUI\update(), ilObjMediaCastGUI\updateCastItemObject(), shibUser\updateFields(), ilRemoteObjectBase\updateFromECSContent(), and ILIAS\Skill\Tree\SkillTreeManager\updateTree().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setId()

ilObject::setId ( int  $id)

Reimplemented in ilObjExercise.

Definition at line 309 of file class.ilObject.php.

309 : void
310 {
311 $this->id = $id;
312 }

References $id.

Referenced by ilObjUser\__construct(), and ilObjBibliographic\__construct().

+ Here is the caller graph for this function:

◆ setImportId()

ilObject::setImportId ( string  $import_id)
final

Definition at line 410 of file class.ilObject.php.

410 : void
411 {
412 $this->object_properties = $this->getObjectProperties()->withImportId($import_id);
413 $this->import_id = $import_id;
414 }

References $import_id, and getObjectProperties().

+ Here is the call graph for this function:

◆ setOfflineStatus()

ilObject::setOfflineStatus ( bool  $status)
Deprecated:
11

Definition at line 444 of file class.ilObject.php.

444 : void
445 {
446 $property_is_online = $this->getObjectProperties()->getPropertyIsOnline()->withOnline();
447 if ($status) {
448 $property_is_online = $property_is_online->withOffline();
449 }
450
451 $this->object_properties = $this->getObjectProperties()->withPropertyIsOnline($property_is_online);
452 }

References getObjectProperties().

Referenced by ilObjCourse\cloneObject(), ilObjCourse\cloneSettings(), ilObjSurvey\create(), ilObjForum\create(), ilObjPoll\doCloneObject(), ilObjContentPage\doCloneObject(), and ilLTIConsumerSettingsFormGUI\initObject().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setOwner()

ilObject::setOwner ( int  $usr_id)
final

Definition at line 519 of file class.ilObject.php.

519 : void
520 {
521 $this->owner = $usr_id;
522 }

Referenced by ilRemoteObjectBase\beforeCreate(), and create().

+ Here is the caller graph for this function:

◆ setParentRolePermissions()

ilObject::setParentRolePermissions ( int  $parent_ref_id)

Initialize the permissions of parent roles (local roles of categories, global roles...) This method is overwritten in e.g.

courses, groups for building permission intersections with non_member templates.

Reimplemented in ilObjGroup, and ilObjCourse.

Definition at line 1218 of file class.ilObject.php.

1218 : bool
1219 {
1220 $parent_roles = $this->rbac_review->getParentRoleIds($parent_ref_id);
1221 foreach ($parent_roles as $parent_role) {
1222 if ($parent_role['obj_id'] == SYSTEM_ROLE_ID) {
1223 continue;
1224 }
1225 $operations = $this->rbac_review->getOperationsOfRole(
1226 (int) $parent_role['obj_id'],
1227 $this->getType(),
1228 (int) $parent_role['parent']
1229 );
1230 $this->rbac_admin->grantPermission(
1231 (int) $parent_role['obj_id'],
1232 $operations,
1233 $this->getRefId()
1234 );
1235 }
1236 return true;
1237 }
const SYSTEM_ROLE_ID
Definition: constants.php:29

References getRefId(), getType(), and SYSTEM_ROLE_ID.

Referenced by setPermissions().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setPermissions()

ilObject::setPermissions ( int  $parent_ref_id)

Reimplemented in ilObjForum.

Definition at line 1207 of file class.ilObject.php.

1207 : void
1208 {
1209 $this->setParentRolePermissions($parent_ref_id);
1210 $this->initDefaultRoles();
1211 }
initDefaultRoles()
init default roles settings Purpose of this function is to create a local role folder and local roles...
setParentRolePermissions(int $parent_ref_id)
Initialize the permissions of parent roles (local roles of categories, global roles....

References initDefaultRoles(), and setParentRolePermissions().

Referenced by ilSoapObjectAdministration\addReferences(), ilECSCourseCreationHandler\createCourseReference(), ilWebDAVObjFactory\createDAVObject(), ilRemoteObjectBase\createFromECSEContent(), ilObject2GUI\putObjectInTree(), and ilObjectGUI\putObjectInTree().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setRefId()

ilObject::setRefId ( int  $ref_id)
final

Definition at line 314 of file class.ilObject.php.

314 : void
315 {
316 $this->ref_id = $ref_id;
317 $this->referenced = true;
318 }

References $ref_id.

Referenced by ilMailSearchObjectGUI\doesExposeMembers().

+ Here is the caller graph for this function:

◆ setTitle()

ilObject::setTitle ( string  $title)
final

Definition at line 359 of file class.ilObject.php.

359 : void
360 {
361 $property = $this->getObjectProperties()->getPropertyTitleAndDescription()->withTitle(
362 ilStr::shortenTextExtended($title, $this->max_title ?? self::TITLE_LENGTH, $this->add_dots)
363 );
364
365 $this->object_properties = $this->getObjectProperties()->withPropertyTitleAndDescription($property);
366
367 $this->title = $property->getTitle();
368
369 // WebDAV needs to access the untranslated title of an object
370 $this->untranslatedTitle = $this->title;
371 }

References $title, getObjectProperties(), and ilStr\shortenTextExtended().

Referenced by ilObjLTIConsumerGUI\afterSave(), ilContainerReferenceGUI\afterSave(), ilObjCmiXapiGUI\afterSave(), ilObjFile\beforeUpdate(), ilObjStudyProgrammeSettingsGUI\buildForm(), ilObjBibliographic\cloneStructure(), shibUser\createFields(), ilTestRandomQuestionSetPoolDeriver\createNewPool(), ilObjFile\doCloneObject(), ilObjItemGroup\doCloneObject(), ilObjTaxonomy\doCloneObject(), ilObjFile\handleChangedObjectTitle(), ilLTIConsumerSettingsFormGUI\initObject(), MDUpdateListener(), ilObjRoleFolder\read(), ilObjLanguage\refresh(), ilObjIndividualAssessment\setSettings(), ilObjLanguage\uninstall(), ilObjLearningSequenceSettingsGUI\update(), ilObjMediaCastGUI\updateCastItemObject(), ilRemoteObjectBase\updateFromECSContent(), ilObjFile\updateObjectFromRevision(), and ILIAS\Skill\Tree\SkillTreeManager\updateTree().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setType()

ilObject::setType ( string  $type)
final

Definition at line 330 of file class.ilObject.php.

330 : void
331 {
332 $this->type = $type;
333 }

References $type.

Referenced by ilObjEmployeeTalk\__construct(), ilObjEmployeeTalkSeries\__construct(), ilObjTalkTemplate\__construct(), and ilObjBibliographic\cloneStructure().

+ Here is the caller graph for this function:

◆ supportsOfflineHandling()

ilObject::supportsOfflineHandling ( )

Definition at line 459 of file class.ilObject.php.

459 : bool
460 {
461 return $this->obj_definition->supportsOfflineHandling($this->getType());
462 }

References getType().

Referenced by create().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ update()

ilObject::update ( )

Reimplemented in ilObjRole, ilObjBookingPool, ilObjComponentSettings, ilContainer, ilContainerReference, ilObjCourse, ilObjCourseReference, ilObjExercise, ilObjForum, ilObjGlossary, ilObjGroup, ilObject2, ilObjIndividualAssessment, ilObjContentObject, ilObjLearningSequence, ilObjMediaCast, ilObjMediaPool, ilObjOrgUnit, ilObjSAHSLearningModule, ilObjSearchSettings, ilObjSkillManagement, ilObjStudyProgramme, ilObjStyleSheet, ilObjSurveyQuestionPool, ilObjTest, ilObjQuestionPool, ilObjUser, ilObjWebDAV, and ilObjLinkResource.

Definition at line 637 of file class.ilObject.php.

637 : bool
638 {
639 $this->getObjectProperties()->storeCoreProperties();
640
641 $this->app_event_handler->raise(
642 'components/ILIAS/ILIASObject',
643 'update',
644 [
645 'obj_id' => $this->getId(),
646 'obj_type' => $this->getType(),
647 'ref_id' => $this->getRefId()
648 ]
649 );
650
651 return true;
652 }

References getId(), getObjectProperties(), getRefId(), and getType().

Referenced by ilObjLTIConsumerGUI\afterSave(), ilObjBookingPoolGUI\afterSave(), ilContainerReferenceGUI\afterSave(), ilObjCourseGUI\afterSave(), ilObjContentObjectGUI\afterSave(), ilObjWikiGUI\afterSave(), ilObjGroupGUI\afterSave(), ilObjCourse\cloneSettings(), ilObjSurvey\create(), ilObjLanguage\install(), MDUpdateListener(), ilObjStudyProgrammeReferenceGUI\putObjectInTree(), ilObjLanguage\refresh(), ilObjLanguageExt\setLocal(), ilObjLanguage\uninstall(), and ILIAS\Skill\Tree\SkillTreeManager\updateTree().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ updateMetaData()

ilObject::updateMetaData ( )
final

Definition at line 728 of file class.ilObject.php.

728 : void
729 {
730 if ($this->beforeUpdateMetaData()) {
731 $paths = $this->lom_services->paths();
732
733 $manipulator = $this->lom_services->manipulate($this->getId(), 0, $this->getType())
734 ->prepareCreateOrUpdate($paths->title(), $this->getTitle());
735
736 if ($this->getDescription() !== '') {
737 $manipulator = $manipulator->prepareCreateOrUpdate(
738 $paths->firstDescription(),
739 $this->getLongDescription()
740 );
741 } else {
742 $manipulator = $manipulator->prepareDelete($paths->firstDescription());
743 }
744
745 $manipulator->execute();
746 $this->doUpdateMetaData();
747 }
748 }
beforeUpdateMetaData()

References beforeUpdateMetaData(), doUpdateMetaData(), getDescription(), getId(), and getType().

Referenced by ilObjFile\beforeUpdate(), ilObjBlog\doUpdate(), ilObjContentPage\doUpdate(), ilObjDataCollection\doUpdate(), ilObjSurvey\update(), ilObjCourse\update(), ilObjGroup\update(), ilObjIndividualAssessment\update(), ilObjMediaCast\update(), ilObjMediaPool\update(), ilObjSAHSLearningModule\update(), ilObjSurveyQuestionPool\update(), ilObjTest\update(), ilObjQuestionPool\update(), ilObjLinkResource\update(), ilObjFileBasedLM\update(), and ilObjSession\update().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ updateOwner()

ilObject::updateOwner ( )
final

update owner of object in db

Definition at line 779 of file class.ilObject.php.

779 : void
780 {
781 $values = [
782 "owner" => ["integer", $this->getOwner()],
783 "last_update" => [
784 "date",
785 (new DateTimeImmutable('@' . time(), new DateTimeZone('UTC')))
786 ->format(self::DATABASE_DATE_FORMAT)
787 ]
788 ];
789
790 $where = [
791 "obj_id" => ["integer", $this->getId()]
792 ];
793
794 $this->db->update(self::TABLE_OBJECT_DATA, $values, $where);
795
796 // get current values from database so last_update is updated as well
797 $this->read();
798 }

References getId(), getOwner(), and read().

Referenced by ilObjUser\update().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ withReferences()

ilObject::withReferences ( )
final

determines whether objects are referenced or not (got ref ids or not)

Definition at line 167 of file class.ilObject.php.

167 : bool
168 {
169 // both vars could differ. this method should always return true if one of them is true without changing their status
170 return ($this->call_by_reference) ? true : $this->referenced;
171 }
return true

References true.

Referenced by ilObjectMetaDataGUI\__construct(), and ilObjFolder\putInTree().

+ Here is the caller graph for this function:

Field Documentation

◆ $add_dots

bool ilObject::$add_dots = true
protected

Definition at line 66 of file class.ilObject.php.

◆ $app_event_handler

ilAppEventHandler ilObject::$app_event_handler
protected

Definition at line 54 of file class.ilObject.php.

Referenced by ilObjCategory\delete().

◆ $call_by_reference

◆ $create_date

string ilObject::$create_date = ""
protected

Definition at line 73 of file class.ilObject.php.

Referenced by ilObjUser\buildSystemInformationArrayForDB(), and getCreateDate().

◆ $db

ilDBInterface ilObject::$db
protected

Definition at line 50 of file class.ilObject.php.

Referenced by _exists(), _getAllReferences(), ilObjSystemFolder\_getHeaderTitleDescription(), _getIdForImportId(), _getIdsForTitle(), _getLastUpdateOfObjects(), _getObjectsByType(), _getObjectsDataForType(), _lookupDeletedDate(), _lookupImportId(), _lookupObjIdByImportId(), _resetDeletedDate(), _setDeletedDate(), _writeDescription(), _writeImportId(), _writeTitle(), ilObjSystemFolder\addHeaderTitleTranslation(), ilObjSCORM2004LearningModule\convert_1_2_to_2004(), ilObjBookingPool\create(), ilObjMediaCast\create(), ilObjMediaPool\create(), ilObjSession\create(), ilObjCategory\delete(), ilContainerReference\delete(), ilObjMediaCast\delete(), ilObjSession\delete(), ilObjPoll\deleteAllAnswers(), ilObjPoll\deleteAllVotes(), ilObjPoll\deleteAnswer(), ilObjMediaCast\deleteOrder(), ilObjLearningSequence\deletePostConditionsForSubObjects(), ilObjSurvey\deleteSurveyRecord(), ilObjSCORM2004LearningModule\deleteTrackingDataOfUsers(), ilObjBlog\doCreate(), ilObjPoll\doCreate(), ilObjPortfolioBase\doCreate(), ilObjTaxonomy\doCreate(), ilObjBlog\doDelete(), ilObjPoll\doDelete(), ilObjPortfolioBase\doDelete(), ilObjPoll\doRead(), ilObjPortfolioBase\doRead(), ilObjPoll\doUpdate(), ilObjPortfolioBase\doUpdate(), ilObjPoll\getAnswer(), ilObjPoll\getAnswers(), ilObjSCORM2004LearningModule\getAttemptsForUser(), ilObjLearningSequence\getLSItems(), ilObjLearningSequence\getLSLearnerItems(), ilObjSCORM2004LearningModule\getModuleVersionForUser(), ilObjBookingPool\getPoolsWithReminders(), ilObjStudyProgramme\getProgrammesMonitoringCategory(), ilObjStudyProgramme\getProgrammesMonitoringMemberSource(), ilObjTaxonomyAdministration\getRepositoryTaxonomies(), ilObjSCORM2004LearningModule\getTrackedItems(), ilObjSCORM2004LearningModule\getTrackingDataAgg(), ilObjWorkspaceRootFolder\getTranslations(), shibUser\getUsrIdByExtId(), ilObjPoll\getVotesByUsers(), ilObjSCORM2004LearningModule\importSuccess(), shibUser\loginExists(), ilObjCourseReference\lookupMemberUpdateEnabled(), ilObjBookingPool\read(), ilContainerReference\read(), ilObjMediaCast\read(), ilObjMediaPool\read(), ilObjSkillManagement\read(), ilObjMediaCast\readOrder(), ilObjLTIAdministration\readReleaseObjects(), ilObjSystemFolder\removeHeaderTitleTranslations(), ilObjWorkspaceRootFolder\removeTranslations(), ilObjPoll\saveAnswer(), ilObjMediaCast\saveOrder(), setDeletedDates(), ilObjLearningSequence\storeLSItems(), ilObjBookingPool\update(), ilContainerReference\update(), ilObjMediaCast\update(), ilObjMediaPool\update(), ilObjSkillManagement\update(), ilObjSession\update(), ilObjPoll\updateAnswer(), and ilObjPoll\updateAnswerPositions().

◆ $desc

string ilObject::$desc = ""
protected

◆ $error

◆ $ilias

ILIAS ilObject::$ilias
protected

Definition at line 48 of file class.ilObject.php.

Referenced by ilObjTest\_createImportDirectory().

◆ $import_id

string ilObject::$import_id = ""
protected

◆ $last_update

string ilObject::$last_update = ""
protected

◆ $lng

◆ $log

ilLogger ilObject::$log
protected

◆ $lom_services

LOMServices ilObject::$lom_services
protected

Definition at line 59 of file class.ilObject.php.

◆ $long_desc

string ilObject::$long_desc = ""
protected

Definition at line 71 of file class.ilObject.php.

Referenced by getLongDescription().

◆ $max_desc

int ilObject::$max_desc = self::DESC_LENGTH
protected

Definition at line 65 of file class.ilObject.php.

◆ $max_title

int ilObject::$max_title = self::TITLE_LENGTH
protected

Definition at line 64 of file class.ilObject.php.

◆ $obj_definition

ilObjectDefinition ilObject::$obj_definition
protected

Definition at line 49 of file class.ilObject.php.

Referenced by _writeDescription().

◆ $obj_log

ilLogger ilObject::$obj_log
protected

Definition at line 47 of file class.ilObject.php.

◆ $object_properties

Properties ilObject::$object_properties = null
private

Definition at line 45 of file class.ilObject.php.

Referenced by getObjectProperties(), and ilObjTest\removeQuestionWithResults().

◆ $objectList

array ilObject::$objectList

Definition at line 84 of file class.ilObject.php.

◆ $owner

int ilObject::$owner = 0
protected

Definition at line 72 of file class.ilObject.php.

Referenced by _getObjectsByType(), _lookupOwnerName(), create(), and getOwner().

◆ $process_auto_reating

bool ilObject::$process_auto_reating = false
private

Definition at line 78 of file class.ilObject.php.

◆ $properties_aggregator

Aggregator ilObject::$properties_aggregator
private

Definition at line 60 of file class.ilObject.php.

◆ $rbac_admin

ilRbacAdmin ilObject::$rbac_admin
protected

Definition at line 55 of file class.ilObject.php.

Referenced by delete().

◆ $rbac_review

ilRbacReview ilObject::$rbac_review
protected

Definition at line 56 of file class.ilObject.php.

◆ $ref_id

◆ $register

bool ilObject::$register = false
protected

Definition at line 76 of file class.ilObject.php.

◆ $title

◆ $translations_repository

TranslationsRepository ilObject::$translations_repository
private

Definition at line 61 of file class.ilObject.php.

◆ $tree

◆ $type

◆ $untranslatedTitle

string ilObject::$untranslatedTitle

Definition at line 88 of file class.ilObject.php.

Referenced by getUntranslatedTitle().

◆ $user

◆ DATABASE_DATE_FORMAT

const ilObject::DATABASE_DATE_FORMAT = 'Y-m-d H:i:s'
private

Definition at line 43 of file class.ilObject.php.

◆ DESC_LENGTH

◆ LONG_DESC_LENGTH

const ilObject::LONG_DESC_LENGTH = 4000

◆ TABLE_OBJECT_DATA

const ilObject::TABLE_OBJECT_DATA = "object_data"

Definition at line 42 of file class.ilObject.php.

Referenced by ilObjectTest\testCreationDeletion().

◆ TITLE_LENGTH


The documentation for this class was generated from the following file: