ILIAS  trunk Revision v12.0_alpha-1540-g00f839d5fa1
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 1459 of file class.ilObject.php.

1459 : bool
1460 {
1461 global $DIC;
1462 $db = $DIC->database();
1463
1464 if ($reference) {
1465 $sql =
1466 "SELECT object_data.obj_id" . PHP_EOL
1467 . "FROM " . self::TABLE_OBJECT_DATA . PHP_EOL
1468 . "LEFT JOIN object_reference ON object_reference.obj_id = object_data.obj_id " . PHP_EOL
1469 . "WHERE object_reference.ref_id= " . $db->quote($id, "integer") . PHP_EOL
1470 ;
1471 } else {
1472 $sql =
1473 "SELECT object_data.obj_id" . PHP_EOL
1474 . "FROM " . self::TABLE_OBJECT_DATA . PHP_EOL
1475 . "WHERE obj_id = " . $db->quote($id, "integer") . PHP_EOL
1476 ;
1477 }
1478
1479 if ($type) {
1480 $sql .= " AND object_data.type = " . $db->quote($type, "text") . PHP_EOL;
1481 }
1482
1483 $result = $db->query($sql);
1484
1485 return (bool) $db->numRows($result);
1486 }
$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(), ilPCFileList\afterPageUpdate(), ILIAS\Course\Grouping\Table\GroupingRetrieval\buildLinkToObject(), ilExAssTypePortfolioGUI\buildSubmissionPropertiesAndActions(), ilExAssTypeWikiTeamGUI\buildSubmissionPropertiesAndActions(), ilSoapAdministration\checkObjectAccess(), ilExAssTypeWikiTeamGUI\createWiki(), ilPageObject\delete(), ilNewsItem\delete(), ilDclBaseRecordModel\deleteFile(), ILIAS\MetaData\OERHarvester\RepositoryObjects\Handler\deleteReference(), ilObjSCORMLearningModuleGUI\deleteTrackingForUser(), ILIAS\User\Profile\PublicProfileGUI\deliverVCard(), ILIAS\MetaData\OERHarvester\RepositoryObjects\Handler\doesReferenceExist(), ilForum\fetchPostNodeData(), ilAdvancedMDRecordTableGUI\fillRow(), ilLinksTableGUI\fillRow(), ilMediaCastManageTableGUI\fillRow(), ilMediaCastTableGUI\fillRow(), ilPDNewsTableGUI\fillRow(), ilWikiContributorsTableGUI\fillRow(), 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(), ILIAS\LearningModule\Search\SubitemPropertiesReader\getSubitemProperties(), ILIAS\Wiki\Search\SubitemPropertiesReader\getSubitemProperties(), 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(), ilSCORM2004TrackingItemsPerUserFilterGUI\parse(), ilSCORMTrackingItemsPerUserFilterGUI\parse(), ilDclMobRecordRepresentation\parseFormInput(), ilNewsTimelineItemGUI\render(), ilExAssTypeWikiTeamGUI\renderOverviewContent(), ILIAS\OrgUnit\Webservices\SOAP\AddUserIdToPositionInOrgUnit\run(), ILIAS\OrgUnit\Webservices\SOAP\RemoveUserIdFromPositionInOrgUnit\run(), ilEmployeeTalkTableGUI\setTalkData(), ilPageObjectGUI\showPage(), ilObjSCORM2004LearningModuleGUI\showTrackingItems(), ilObjSCORMLearningModuleGUI\showTrackingItems(), ILIAS\COPage\History\HistoryTableBuilder\transformRow(), 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 833 of file class.ilObject.php.

833 : array
834 {
835 global $DIC;
836 $db = $DIC->database();
837
838 $sql =
839 "SELECT ref_id" . PHP_EOL
840 . "FROM object_reference" . PHP_EOL
841 . "WHERE obj_id = " . $db->quote($id, 'integer') . PHP_EOL
842 ;
843
844 $result = $db->query($sql);
845
846 $ref = [];
847 while ($row = $db->fetchAssoc($result)) {
848 $ref[(int) $row["ref_id"]] = (int) $row["ref_id"];
849 }
850
851 return $ref;
852 }
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(), ILIAS\MediaObjects\OverviewGUI\Table\Retrieval\addExternalData(), 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(), ilObjDataCollectionAccess\checkAccessForDataCollectionId(), ilObjDataCollectionAccess\checkActionForObjId(), ilSearchAutoComplete\checkObjectPermission(), ilMDCopyrightUsageTableGUI\collectData(), ilAppointmentPresentationCourseGUI\collectPropertiesAndActions(), ilAppointmentPresentationEmployeeTalkGUI\collectPropertiesAndActions(), ilAppointmentPresentationGroupGUI\collectPropertiesAndActions(), ilAppointmentPresentationSessionGUI\collectPropertiesAndActions(), ilLORandomTestQuestionPools\copy(), ilObjCronGUI\create(), 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(), 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(), ilAppointmentCourseFileHandler\getFiles(), ilTestQuestionSetConfig\getFirstQuestionPoolRefIdByObjId(), ilForumDraftsDerivedTaskProvider\getFirstRefIdWithPermission(), ilMediaPoolPageUsagesTableGUI\getFirstWritableRefId(), ilSoapGroupAdministration\getGroupsForUser(), ilCalendarAppointmentPanelGUI\getHTML(), ilDidacticTemplateIconFactory\getIconPathForObject(), ILIAS\Wiki\Page\ImportResolver\getIdForImportId(), 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\News\Domain\UserContextResolver\getMembershipContexts(), 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(), 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(), ILIAS\MetaData\OERHarvester\RepositoryObjects\Handler\isOnlyReference(), 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(), 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 1915 of file class.ilObject.php.

1920 : string {
1921 return self::getIconForReference(0, $obj_id, $size, $type, $offline);
1922 }

Referenced by ilCourseContentGUI\__renderUserItem(), ilContainerStartObjectsGUI\askDeleteStarter(), ILIAS\Search\Presentation\Result\Object\PropertiesAggregatorImpl\buildIconPath(), ilObjWorkspaceFolderGUI\buildObjectType(), ilTestLearningObjectivesStatusGUI\buildStatusItems(), ilObjUserFolderGUI\confirmDeleteExportFileObject(), ilLTIConsumerAdministrationGUI\confirmDeleteProviders(), ilAdministrationCommandGUI\delete(), ilObjWorkspaceFolderGUI\deleteConfirmation(), ilObjMapsGUI\executeCommand(), ilObjectPluginGUI\executeCommand(), ilSearchGUI\fillHeaderAndTabs(), 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(), 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(), ilLocatorGUI\getHTML(), ilTaggingGUI\getHTML(), ilPathGUI\getHTML(), ilObjLTIConsumerListGUI\getIconHref(), ilStudyProgrammeProgressListGUI\getIconPath(), ilLSItemsDB\getIconPathForType(), ilRepositoryExplorer\getImage(), ilUtil\getImageTagByType(), ilContainerContentGUI\getIntroduction(), ilLPObjectStatisticsTypesTableGUI\getItems(), ilDashboardBlockGUI\getManageFields(), ilNewsForContextBlockGUI\getNewsForId(), ilAdministrationExplorerGUI\getNodeIcon(), ilForumExplorerGUI\getNodeIcon(), ilOrgUnitExplorerGUI\getNodeIcon(), ilRepositoryExplorerGUI\getNodeIcon(), ilRepositorySelectorExplorerGUI\getNodeIcon(), ILIAS\StaticURL\Shortlinks\UI\TreeSelectNodeRetrieval\getObjectIcon(), ilNoteGUI\getOriginHeader(), ilTrMatrixTableGUI\getSelectableColumns(), ilObjStudyProgrammeReferenceListGUI\getTypeIcon(), ilLPListOfSettingsGUI\handleLPUsageInfo(), ilCourseObjectivesGUI\initFormLimits(), ilPCResourcesGUI\insertResourcesIntoPageContent(), ilDashboardBlockGUI\manually(), ilLuceneUserSearchGUI\prepareOutput(), ilFavouritesListGUI\render(), ilNewsTimelineItemGUI\render(), ILIAS\Repository\Provider\RepositoryMainBarProvider\renderLastVisited(), ilTaggingSlateContentGUI\renderResourcesForTag(), ilObjContentPageGUI\setTitleAndDescription(), ilObjectGUI\setTitleAndDescription(), ilObjQuestionPoolGUI\setTitleAndDescription(), and ilObjGlossaryGUI\showSelectedGlossariesForCollection().

+ Here is the caller graph for this function:

◆ _getIdForImportId()

static ilObject::_getIdForImportId ( string  $import_id)
staticfinal

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

807 : int
808 {
809 global $DIC;
810 $db = $DIC->database();
811 $db->setLimit(1, 0);
812
813 $sql =
814 "SELECT obj_id" . PHP_EOL
815 . "FROM " . self::TABLE_OBJECT_DATA . PHP_EOL
816 . "WHERE import_id = " . $db->quote($import_id, "text") . PHP_EOL
817 . "ORDER BY create_date DESC" . PHP_EOL
818 ;
819
820 $result = $db->query($sql);
821
822 if ($row = $db->fetchAssoc($result)) {
823 return (int) $row["obj_id"];
824 }
825
826 return 0;
827 }
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 881 of file class.ilObject.php.

881 : array
882 {
883 global $DIC;
884 $db = $DIC->database();
885
886 $where = "title = " . $db->quote($title, "text");
887 if ($partial_match) {
888 $where = $db->like("title", "text", '%' . $title . '%');
889 }
890
891 $sql =
892 "SELECT obj_id" . PHP_EOL
893 . "FROM " . self::TABLE_OBJECT_DATA . PHP_EOL
894 . "WHERE " . $where . PHP_EOL
895 ;
896
897 if ($type != '') {
898 $sql .= " AND type = " . $db->quote($type, "text");
899 }
900
901 $result = $db->query($sql);
902
903 $object_ids = [];
904 while ($row = $db->fetchAssoc($result)) {
905 $object_ids[] = (int) $row['obj_id'];
906 }
907
908 return $object_ids;
909 }
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 930 of file class.ilObject.php.

930 : string
931 {
932 global $DIC;
933 $db = $DIC->database();
934
935 $sql =
936 "SELECT MAX(last_update) as last_update" . PHP_EOL
937 . "FROM " . self::TABLE_OBJECT_DATA . PHP_EOL
938 . "WHERE " . $db->in("obj_id", $obj_ids, false, "integer") . PHP_EOL
939 ;
940
941 $result = $db->query($sql);
942 $row = $db->fetchAssoc($result);
943
944 return (string) $row["last_update"];
945 }
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 1497 of file class.ilObject.php.

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

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(), ILIAS\Help\GuidedTour\Tour\TourManager\getAll(), ilObjAuthSettings\getAuthSettingsRefId(), ilObjLanguage\getInstalledLanguages(), ilObjLanguage\getLangKeysOfInstalledLanguages(), 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 1153 of file class.ilObject.php.

1153 : array
1154 {
1155 global $DIC;
1156 $db = $DIC->database();
1157
1158 $sql =
1159 "SELECT obj_id, type, title, description, owner, create_date, last_update, import_id, offline" . PHP_EOL
1160 . "FROM " . self::TABLE_OBJECT_DATA . PHP_EOL
1161 . "WHERE type = " . $db->quote($type, "text") . PHP_EOL
1162 ;
1163 $result = $db->query($sql);
1164
1165 $objects = [];
1166 while ($row = $db->fetchAssoc($result)) {
1167 if ((!$omit_trash) || ilObject::_hasUntrashedReference((int) $row["obj_id"])) {
1168 $objects[$row["title"] . "." . $row["obj_id"]] = [
1169 "id" => $row["obj_id"],
1170 "type" => $row["type"],
1171 "title" => $row["title"],
1172 "description" => $row["description"]
1173 ];
1174 }
1175 }
1176 ksort($objects);
1177 return $objects;
1178 }
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(), and ilObjCronGUI\create().

+ 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 2159 of file class.ilObject.php.

2159 : ?int
2160 {
2161 if (!$ilDB) {
2162 global $DIC;
2163 $ilDB = $DIC->database();
2164 }
2165
2166 $sql =
2167 "SELECT obj_id FROM object_data" . PHP_EOL
2168 . "WHERE type = 'typ'" . PHP_EOL
2169 . "AND title = " . $ilDB->quote($type, 'text') . PHP_EOL
2170 ;
2171
2172 $res = $ilDB->query($sql);
2173 if ($ilDB->numRows($res) == 0) {
2174 return null;
2175 }
2176
2177 $row = $ilDB->fetchAssoc($res);
2178 return (int) $row['obj_id'] ?? null;
2179 }
$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

◆ _isInTrash()

static ilObject::_isInTrash ( int  $ref_id)
staticfinal

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

1119 : bool
1120 {
1121 global $DIC;
1122 return $DIC->repositoryTree()->isDeleted($ref_id);
1123 }

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(), ILIAS\MetaData\OERHarvester\RepositoryObjects\Handler\isOnlyReference(), 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 2131 of file class.ilObject.php.

2131 : string
2132 {
2133 global $DIC;
2134 $db = $DIC->database();
2135
2136 $sql =
2137 "SELECT create_date" . PHP_EOL
2138 . "FROM " . self::TABLE_OBJECT_DATA . PHP_EOL
2139 . "WHERE obj_id = " . $db->quote($obj_id, "integer") . PHP_EOL
2140 ;
2141 $result = $db->query($sql);
2142 $rec = $db->fetchAssoc($result);
2143 return $rec["create_date"];
2144 }

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

Referenced by ILIAS\Help\Module\ModuleDBRepository\getHelpModules(), and ILIAS\Search\Presentation\Result\Object\PropertiesAggregatorImpl\lookupCreationDate().

+ 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 1004 of file class.ilObject.php.

1004 : ?string
1005 {
1006 global $DIC;
1007 $db = $DIC->database();
1008
1009 $sql =
1010 "SELECT deleted" . PHP_EOL
1011 . "FROM object_reference" . PHP_EOL
1012 . "WHERE ref_id = " . $db->quote($ref_id, "integer") . PHP_EOL
1013 ;
1014 $result = $db->query($sql);
1015 $row = $db->fetchAssoc($result);
1016
1017 return $row["deleted"] ?? null;
1018 }

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 471 of file class.ilObject.php.

471 : string
472 {
473 global $DIC;
474
475 $db = $DIC->database();
476
477 $sql =
478 "SELECT import_id" . PHP_EOL
479 . "FROM " . self::TABLE_OBJECT_DATA . PHP_EOL
480 . "WHERE obj_id = " . $db->quote($obj_id, "integer") . PHP_EOL
481 ;
482
483 $res = $db->query($sql);
484 while ($row = $res->fetchRow(ilDBConstants::FETCHMODE_OBJECT)) {
485 return (string) $row->import_id;
486 }
487 return '';
488 }
const FETCHMODE_OBJECT

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 917 of file class.ilObject.php.

917 : string
918 {
919 global $DIC;
920
921 $last_update = $DIC["ilObjDataCache"]->lookupLastUpdate($obj_id);
922
923 if ($formatted) {
925 }
926
927 return (string) $last_update;
928 }
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 1140 of file class.ilObject.php.

1140 : int
1141 {
1142 global $DIC;
1143 return $DIC["ilObjDataCache"]->lookupObjId($ref_id);
1144 }

References $DIC, and $ref_id.

Referenced by ilSCORM13PlayerGUI\__construct(), ILIAS\Glossary\Flashcard\FlashcardManager\__construct(), ilGlossaryAdvMetaDataAdapter\__construct(), ilGlossaryTermGUI\__construct(), ilLOXmlWriter\__construct(), ilObject2GUI\__construct(), ILIAS\Exercise\Object\ObjectManager\__construct(), ilDclDetailedViewDefinitionGUI\__construct(), ILIAS\WebDAV\Mount\ObjectInstructions\__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(), ilRecommendedContentRoleTableGUI\getItems(), ilBookingReservationsTableGUI\getItems(), ilLPProgressBlockGUI\getLegacyContent(), ILIAS\StaticURL\Shortlinks\UI\TreeSelectNodeRetrieval\getObjectIcon(), ilPRGAssignmentDBRepository\getObjIdFor(), ilOrgUnitPositionAccess\getObjIdForRefId(), ilSoapObjectAdministration\getObjIdsByRefIds(), ilTrQuery\getParticipantsForObject(), ilLPCollectionOfLMChapters\getPossibleItems(), ilSoapSCORMAdministration\getSCORMCompletionStatus(), ilBookingReservationsTableGUI\getSelectableUserColumns(), ilDclReferenceFieldRepresentation\getSortedRecords(), 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(), ilAuthProviderLTI\lookupConsumer(), ilPollCommentsHandler\lookupObjectId(), ilObjForum\lookupStatisticsByRefId(), ilObjSCORMLearningModuleGUI\newModuleVersion(), ILIAS\AccessControl\Log\Table\parseChangesFaPa(), ilSoapWebLinkAdministration\readWebLink(), ilContainerGUI\redrawListItemObject(), ilCmiXapiAppEventListener\removeMembers(), 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 947 of file class.ilObject.php.

947 : int
948 {
949 global $DIC;
950 return $DIC["ilObjDataCache"]->lookupObjId($ref_id);
951 }

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(), ilBookingObjectServiceGUI\__construct(), ilTimingCache\__construct(), ILIAS\Style\Content\Object\ObjectFacade\__construct(), ILIAS\Container\Content\ItemSetManager\__construct(), ilObjectContentStyleSettingsGUI\__construct(), ILIAS\Style\Content\Object\ObjectManager\__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(), ilObjectPluginGUI\_goto(), ilObjBookingPoolGUI\_goto(), ilObjCategoryGUI\_goto(), ilObjCategoryReferenceGUI\_goto(), ilObjCmiXapiGUI\_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\StaticURL\Shortlinks\TargetLinkResolver\buildName(), 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(), 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(), 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(), ILIAS\Skill\Table\LevelResourcesTable\getComponent(), ilConditionHandler\getConditionController(), ILIAS\Skill\Table\LevelResourcesTable\getDataRetrieval(), ilParticipants\getDefaultMemberRole(), ilObjWikiGUI\getGotoLink(), ilObjTest\getGroupData(), ilCalendarAppointmentPanelGUI\getHTML(), ilADTInternalLinkPresentationBridge\getHTML(), ilLocatorGUI\getHTML(), ilPathGUI\getHTML(), ilDidacticTemplateIconFactory\getIconPathForReference(), ilContainerSortingSettings\getInheritedSettings(), ilParticipants\getInstance(), ILIAS\Container\Content\ItemBlock\ItemBlockSequenceGenerator\getItemGroupItemRefIds(), ilNavigationHistory\getItems(), ilUserRoleStartingPointTableGUI\getItems(), ilTrSummaryTableGUI\getItems(), ilLMPageObjectGUI\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(), ilObjStudyProgrammeReferenceListGUI\getTypeIcon(), ilSoapUserAdministration\getUsersForContainer(), ilObjFolder\getViewMode(), ilObjGroup\getViewMode(), ilItemGroupDataSet\getXmlRecord(), ilSessionDataSet\getXmlRecord(), ilECSCourseCreationHandler\handle(), ILIAS\StaticURL\Handler\LegacyGotoHandler\handle(), ilLOTestAssignmentTableGUI\handleCommands(), ilLPListOfSettingsGUI\handleLPUsageInfo(), ilECSCategoryMapping\handleUpdate(), ILIAS\Style\Content\Object\ObjectManager\inheritFromParent(), ilCourseReferencePathInfo\init(), ilObjectCopyGUI\init(), ilTrashTableGUI\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(), ILIAS\MetaData\OERHarvester\RepositoryObjects\Handler\isOnlyReference(), ilTestAccess\isParticipantAllowed(), ilCourseObjectivesGUI\isRandomTestType(), ilLOSettings\isRandomTestType(), ilBookingEntry\isTargetObjectVisible(), ilAdministrationGUI\jump(), ilMediaCreationGUI\listPoolItems(), ilPCQuestionGUI\listPoolQuestions(), ilContainerReferenceGUI\loadPropertiesFromSettingsForm(), 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(), ilBookingGatewayGUI\showPoolSelector(), ilAdministrationExplorerGUI\sortChilds(), ilRepositoryExplorerGUI\sortChilds(), ilRepositorySelectorExplorerGUI\sortChilds(), ilBadgeManagementGUI\splitBadgeAndUserIdsFromString(), ilAdvancedMDRecord\toXML(), ilObjGroup\translateViewMode(), ilObjStudyProgrammeReferenceGUI\tryingToCreateCircularReference(), ilConditionsImporter\updateConditionsWithMapping(), ilLOTestQuestionAdapter\updateFixedQuestions(), ilConditionsImporter\updateInfosWithMapping(), 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 426 of file class.ilObject.php.

426 : int
427 {
428 global $DIC;
429 $db = $DIC->database();
430
431 $sql =
432 "SELECT obj_id" . PHP_EOL
433 . "FROM " . self::TABLE_OBJECT_DATA . PHP_EOL
434 . "WHERE import_id = " . $db->quote($import_id, "text") . PHP_EOL
435 . "ORDER BY create_date DESC" . PHP_EOL
436 ;
437 $result = $db->query($sql);
438
439 if ($db->numRows($result) == 0) {
440 return 0;
441 }
442
443 $row = $db->fetchObject($result);
444
445 return (int) $row->obj_id;
446 }
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 872 of file class.ilObject.php.

872 : int
873 {
874 global $DIC;
875 return (int) $DIC["ilObjDataCache"]->lookupOwner($obj_id);
876 }

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 506 of file class.ilObject.php.

506 : string
507 {
508 global $DIC;
509 $lng = $DIC->language();
510
511 $owner = null;
512 if ($owner_id != -1) {
513 if (ilObjUser::userExists([$owner_id])) {
514 $owner = new ilObjUser($owner_id);
515 }
516 }
517
518 $own_name = $lng->txt("unknown");
519 if (is_object($owner)) {
520 $own_name = $owner->getFullname();
521 }
522
523 return $own_name;
524 }
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.
static userExists(array $a_usr_ids=[])
ilLanguage $lng

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

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 854 of file class.ilObject.php.

854 : string
855 {
856 global $DIC;
857 return (string) $DIC["ilObjDataCache"]->lookupTitle($obj_id);
858 }

References $DIC.

Referenced by ilLMGlossaryTableGUI\__construct(), ilRecommendedContentRoleTableGUI\__construct(), ilObjectFeedWriter\__construct(), ilTaxSelectInputGUI\__construct(), ilAttendanceList\__construct(), ilMediaPoolTableGUI\__construct(), ILIAS\WebDAV\Mount\ObjectInstructions\__construct(), ilObjStyleSheet\_getClonableContentStyles(), ilForum\_getModerators(), ilLPStatusEvent\_getStatusInfo(), ilObjFileGUI\_goto(), ilObjForumGUI\_goto(), ilObjCourseGUI\_goto(), ilObjChatroomGUI\_goto(), ilObjTestGUI\_goto(), ilObjectPluginGUI\_goto(), ilObjBookingPoolGUI\_goto(), ilObjCategoryGUI\_goto(), ilObjCmiXapiGUI\_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(), ILIAS\MediaObjects\OverviewGUI\Table\Retrieval\addExternalData(), 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\StaticURL\Shortlinks\TargetLinkResolver\buildName(), 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(), 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(), 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(), 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(), ilTaggingGUI\getHTML(), ilExcRepoObjAssignmentInfo\getInfo(), assQuestion\getInstances(), ILIAS\MediaObjects\OverviewGUI\Table\Retrieval\getInternalData(), 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(), ilNewsForContextBlockGUI\getNewsForId(), ilTaxonomyClassificationExplorerGUI\getNodeContent(), ilTaxonomyExplorerGUI\getNodeContent(), ilMailNotification\getObjectTitle(), ilNoteGUI\getOriginHeader(), ilSessionParticipantsTableGUI\getParentLocalRoles(), ilBadge\getParentMeta(), ilAdvancedMDSettingsGUI\getParsedRecordObjects(), ilObjUser\getProfileAsString(), 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(), ilDclReferenceFieldRepresentation\getSortedRecords(), ilNoteGUI\getTarget(), ILIAS\Survey\Tasks\DerivedTaskProvider\getTasks(), ILIAS\COPage\PC\Question\CopySelfAssQuestionTableBuilder\getTitle(), 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(), ilAuthProviderLTI\lookupConsumer(), ilObjectPluginGUI\lookupParentTitleInCreationMode(), ILIAS\Search\Presentation\Result\Object\PropertiesAggregatorImpl\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(), 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(), 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(), ilPageObjectGUI\showPage(), ilBookingGatewayGUI\showPoolSelector(), ilPageEditorGUI\showSnippetInfo(), ilShibbolethRoleAssignmentRules\updateAssignments(), 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 1108 of file class.ilObject.php.

1108 : string
1109 {
1110 global $DIC;
1111
1112 if ($reference) {
1113 return $DIC["ilObjDataCache"]->lookupType($DIC["ilObjDataCache"]->lookupObjId($id));
1114 }
1115
1116 return $DIC["ilObjDataCache"]->lookupType($id);
1117 }

References $DIC, and $id.

Referenced by ilObjCourseGrouping\__addCondition(), ilClassificationBlockGUI\__construct(), ilTrObjectUsersPropsTableGUI\__construct(), ilTrSummaryTableGUI\__construct(), ilTrUserObjectsPropsTableGUI\__construct(), ilTrMatrixTableGUI\__construct(), ILIAS\Skill\Access\SkillTreeAccess\__construct(), ilNoteGUI\__construct(), ilRegistrationGUI\__construct(), ilObjCourseGroupingGUI\__construct(), ilObjectCustomUserFieldsGUI\__construct(), ilRepositoryObjectDetailSearch\__construct(), ilMemberAgreementGUI\__construct(), ilMemberExportGUI\__construct(), ilObjectFeedWriter\__construct(), ilMemberExport\__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(), ilExport\_createExportDirectory(), ilExport\_generateIndexFile(), ilPCMediaObjectGUI\_getCharacteristics(), ilPCParagraphGUI\_getCharacteristics(), ilPCSectionGUI\_getCharacteristics(), 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(), ILIAS\MediaObjects\OverviewGUI\Table\Retrieval\addExternalData(), ilLPXmlWriter\addLPInformation(), ilAppointmentPresentationGUI\addObjectLinks(), ilBookingParticipantGUI\addParticipantObject(), ilCalendarCategoryGUI\addReferenceLinks(), ilBlockGUI\addRepoCommands(), ilRepositorySearchGUI\addRole(), ilSoapRBACAdministration\addRoleFromTemplate(), ilCalendarPresentationGUI\addStandardTabs(), ilExportContainer\addSubitems(), ilPCFileList\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(), ilObjGroupListGUI\checkCommandAccess(), 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(), ILIAS\COPage\PC\FileList\FileListRetrieval\collectData(), 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(), ilContainerGUI\downloadObject(), 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(), ilMediaPoolPageUsagesTableGUI\fillRow(), ilMediaPoolTableGUI\fillRow(), ilPDNewsTableGUI\fillRow(), ilWorkspaceShareTableGUI\fillRow(), ilRepDependenciesTableGUI\fillRow(), ilSkillLevelTableGUI\fillRow(), ilLPObjectStatisticsDailyTableGUI\fillRow(), ilLPObjectStatisticsLPTableGUI\fillRow(), ilLPObjectStatisticsTableGUI\fillRow(), ilRoleAssignmentTableGUI\fillRow(), ilECSImportedContentTableGUI\fillRow(), ilUnitCategoryTableGUI\fillRow(), 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(), ilConditionHandler\getConditionController(), ilLTIViewGUI\getContextId(), ilObjItemGroupGUI\getCreatableObjectTypes(), ilObjSessionGUI\getCreatableObjectTypes(), ilObjStudyProgramme\getCreatableSubObjects(), ilObjectLP\getCurrentMode(), ilGuidedTourGUI\getData(), 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(), ilObjGlossary\getGlossariesForCollection(), ilNoteGUI\getGlyph(), ilWorkspaceAccessHandler\getGotoLink(), ilPDNotesGUI\getGui(), ilObjectListGUI\getHeaderAction(), ILIAS\Help\Module\ModuleDBRepository\getHelpModules(), ilRepositorySelectorInputGUI\getHighlightedNode(), ilCalendarAppointmentPanelGUI\getHTML(), ilLocatorGUI\getHTML(), ilNewsForContextBlockGUI\getHTML(), ilPathGUI\getHTML(), ilDidacticTemplateIconFactory\getIconPathForObject(), ilDidacticTemplateIconFactory\getIconPathForReference(), 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(), ilObjectRolePermissionTableGUI\getObjType(), ilObjectRoleTemplatePermissionTableGUI\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(), ILIAS\MetaData\OERHarvester\RepositoryObjects\Handler\getTypeOfObject(), 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(), 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(), ILIAS\Search\Presentation\Result\Object\PropertiesAggregatorImpl\lookupType(), ilCertificateObjectHelper\lookupType(), ilObjSessionGUI\materialsObject(), ilCmiXapiAppEventListener\onServiceObjectDeleteOrToTrash(), ilStudyProgrammeAppEventListener\onServiceObjectDeleteOrToTrash(), ilLearningSequenceAppEventListener\onServiceTrackingUpdateStatus(), ilStudyProgrammeAppEventListener\onServiceTreeInsertNode(), ilStudyProgrammeAppEventListener\onServiceTreeMoveTree(), ilCalendarManageTableGUI\parse(), ilObjectCopyProgressTableGUI\parse(), ilObjectTableGUI\parse(), ilCourseObjectivesTableGUI\parse(), ilDclMobRecordRepresentation\parseFormInput(), 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(), 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(), 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(), 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 1538 of file class.ilObject.php.

1542 : array {
1543 global $DIC;
1544
1545 $db = $DIC->database();
1546 $lng = $DIC->language();
1547 $obj_definition = $DIC["objDefinition"];
1548
1549 $sql =
1550 "SELECT obj_data.title obj_title, path_data.title path_title, child" . PHP_EOL
1551 . "FROM tree " . PHP_EOL
1552 . "JOIN object_reference obj_ref ON child = obj_ref.ref_id " . PHP_EOL
1553 . "JOIN object_data obj_data ON obj_ref.obj_id = obj_data.obj_id " . PHP_EOL
1554 . "JOIN object_reference path_ref ON parent = path_ref.ref_id " . PHP_EOL
1555 . "JOIN object_data path_data ON path_ref.obj_id = path_data.obj_id " . PHP_EOL
1556 . "WHERE " . $db->in("child", $ref_ids, false, "integer") . PHP_EOL
1557 . "ORDER BY obj_data.title" . PHP_EOL
1558 ;
1559 $res = $db->query($sql);
1560
1561 if (!$obj_definition->isPlugin($new_type)) {
1562 $options[0] = $lng->txt('obj_' . $new_type . '_select');
1563 } else {
1564 $options[0] = ilObjectPlugin::lookupTxtById($new_type, "obj_" . $new_type . "_select");
1565 }
1566
1567 while ($row = $db->fetchObject($res)) {
1568 if (mb_strlen($title = $row->obj_title) > 40) {
1569 $title = mb_substr($title, 0, 40) . '...';
1570 }
1571
1572 if ($show_path) {
1573 if (mb_strlen($path = $row->path_title) > 40) {
1574 $path = mb_substr($path, 0, 40) . '...';
1575 }
1576
1577 $title .= ' (' . $lng->txt('path') . ': ' . $path . ')';
1578 }
1579
1580 $options[$row->child] = $title;
1581 }
1582 return $options ?: [];
1583 }
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, ILIAS\UI\Implementation\Component\Input\Field\$options, 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 987 of file class.ilObject.php.

987 : void
988 {
989 global $DIC;
990 $db = $DIC->database();
991
992 $values = [
993 "deleted" => ["timestamp", null],
994 "deleted_by" => ["integer", 0]
995 ];
996
997 $where = [
998 "ref_id" => ["integer", $ref_id]
999 ];
1000
1001 $db->update("object_reference", $values, $where);
1002 }
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 953 of file class.ilObject.php.

953 : void
954 {
955 global $DIC;
956 $db = $DIC->database();
957
958 $values = [
959 "deleted" => ["date", $db->now()],
960 "deleted_by" => ["integer", $deleted_by]
961 ];
962
963 $where = [
964 "ref_id" => ["integer", $ref_id]
965 ];
966
967 $db->update("object_reference", $values, $where);
968 }

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 1043 of file class.ilObject.php.

1043 : void
1044 {
1045 global $DIC;
1046
1047 $db = $DIC->database();
1048 $obj_definition = $DIC["objDefinition"];
1049
1050 $desc = ilStr::shortenTextExtended($desc, self::DESC_LENGTH, true);
1051
1052 $values = [
1053 "description" => ["text", $desc],
1054 "last_update" => ["date", $db->now()]
1055 ];
1056
1057 $where = [
1058 "obj_id" => ["integer", $obj_id]
1059 ];
1060
1061 $db->update(self::TABLE_OBJECT_DATA, $values, $where);
1062
1063
1065 // Update long description
1066 $sql =
1067 "SELECT obj_id, description" . PHP_EOL
1068 . "FROM object_description" . PHP_EOL
1069 . "WHERE obj_id = " . $db->quote($obj_id, 'integer') . PHP_EOL
1070 ;
1071 $result = $db->query($sql);
1072
1073 if ($result->numRows()) {
1074 $values = [
1075 "description" => ["clob", $desc]
1076 ];
1077 $db->update("object_description", $values, $where);
1078 } else {
1079 $values = [
1080 "description" => ["clob",$desc],
1081 "obj_id" => ["integer",$obj_id]
1082 ];
1083 $db->insert("object_description", $values);
1084 }
1085 }
1086 }
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 1091 of file class.ilObject.php.

1091 : void
1092 {
1093 global $DIC;
1094 $db = $DIC->database();
1095
1096 $values = [
1097 "import_id" => ["text", $import_id],
1098 "last_update" => ["date", $db->now()]
1099 ];
1100
1101 $where = [
1102 "obj_id" => ["integer", $obj_id]
1103 ];
1104
1105 $db->update(self::TABLE_OBJECT_DATA, $values, $where);
1106 }

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 1023 of file class.ilObject.php.

1023 : void
1024 {
1025 global $DIC;
1026 $db = $DIC->database();
1027
1028 $values = [
1029 "title" => ["text", $title],
1030 "last_update" => ["date", $db->now()]
1031 ];
1032
1033 $where = [
1034 "obj_id" => ["integer", $obj_id]
1035 ];
1036
1037 $db->update(self::TABLE_OBJECT_DATA, $values, $where);
1038 }

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 1689 of file class.ilObject.php.

1693 : string {
1694 $cp_options = ilCopyWizardOptions::_getInstance($copy_id);
1695 if (!$cp_options->isRootNode($this->getRefId())) {
1696 return $this->getTitle();
1697 }
1698
1699
1700 $obj_translations = $this->getObjectProperties()->clonePropertyTranslations($new_obj_id);
1701
1702 $other_children_of_same_type = $this->tree->getChildsByType($target_id, $this->type);
1703
1704 if ($obj_translations->getLanguages() === []) {
1705 $existing_titles = array_map(
1706 fn(array $child): string => $child['title'],
1707 $other_children_of_same_type
1708 );
1709
1710 return $this->appendNumberOfCopiesToTitle(
1711 $this->getTitle(),
1712 $existing_titles
1713 );
1714 }
1715
1716 return $this->appendCopyInfoToTranslations($obj_translations, $other_children_of_same_type);
1717 }
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 1719 of file class.ilObject.php.

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

◆ appendNumberOfCopiesToTitle()

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

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

1769 : string {
1770 $title_without_suffix = $this->buildTitleWithoutCopySuffix($title);
1771 if ($this->isTitleUnique($title_without_suffix, $other_titles_for_lang)) {
1772 return $title_without_suffix;
1773 }
1774
1775 for ($i = 1; true; $i++) {
1776 $title_with_suffix = "{$title_without_suffix} ({$i})";
1777 if ($this->isTitleUnique($title_with_suffix, $other_titles_for_lang)) {
1778 return $title_with_suffix;
1779 }
1780 }
1781 }
buildTitleWithoutCopySuffix(string $title)
isTitleUnique(string $title, array $nodes)

◆ applyDidacticTemplate()

ilObject::applyDidacticTemplate ( int  $tpl_id)

Reimplemented in ilObjGroup.

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

1438 : void
1439 {
1440 ilLoggerFactory::getLogger('obj')->debug('Applying didactic template with id: ' . $tpl_id);
1441 if ($tpl_id) {
1442 foreach (ilDidacticTemplateActionFactory::getActionsByTemplateId($tpl_id) as $action) {
1443 $action->setRefId($this->getRefId());
1444 $action->apply();
1445 }
1446 }
1447
1449 }
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 730 of file class.ilObject.php.

730 : bool
731 {
732 return true;
733 }

Referenced by createMetaData().

+ Here is the caller graph for this function:

◆ beforeDeleteMetaData()

ilObject::beforeDeleteMetaData ( )
protected

Reimplemented in ilObjMediaObject.

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

778 : bool
779 {
780 return true;
781 }

Referenced by deleteMetaData().

+ Here is the caller graph for this function:

◆ beforeMDUpdateListener()

ilObject::beforeMDUpdateListener ( string  $a_element)
protected

Reimplemented in ilObjMediaObject.

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

705 : bool
706 {
707 return true;
708 }

Referenced by MDUpdateListener().

+ Here is the caller graph for this function:

◆ beforeUpdateMetaData()

ilObject::beforeUpdateMetaData ( )
protected

Reimplemented in ilObjMediaObject.

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

761 : bool
762 {
763 return true;
764 }

Referenced by updateMetaData().

+ Here is the caller graph for this function:

◆ buildTitleWithoutCopySuffix()

ilObject::buildTitleWithoutCopySuffix ( string  $title)
private

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

1793 : string
1794 {
1795 if (preg_match('/ \‍((\d+)\‍)$/', $title, $matches)) {
1796 return mb_substr($title, 0, -strlen($matches[0]));
1797 }
1798
1799 return $title;
1800 }

◆ 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 1809 of file class.ilObject.php.

1809 : bool
1810 {
1811 ilConditionHandler::cloneDependencies($this->getRefId(), $target_id, $copy_id);
1812
1814 if ($tpl_id) {
1815 $factory = new ilObjectFactory();
1816 $obj = $factory->getInstanceByRefId($target_id, false);
1817 if ($obj instanceof ilObject) {
1818 $obj->applyDidacticTemplate($tpl_id);
1819 }
1820 }
1821 return true;
1822 }
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 1827 of file class.ilObject.php.

1827 : bool
1828 {
1829 $this->lom_services->derive()
1830 ->fromObject($this->getId(), 0, $this->getType())
1831 ->forObject($target_obj->getId(), 0, $target_obj->getType());
1832 return true;
1833 }

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 1969 of file class.ilObject.php.

1975 : void {
1976 global $DIC;
1977
1978 $objDefinition = $DIC["objDefinition"];
1979 $tree = $DIC->repositoryTree();
1980
1981 if ($depth == 0) {
1982 $deps["dep"] = [];
1983 }
1984
1985 $deps["del_ids"][$obj_id] = $obj_id;
1986
1987 if (!$objDefinition->isPluginTypeName($type)) {
1988 $class_name = "ilObj" . $objDefinition->getClassName($type);
1989 $odeps = call_user_func([$class_name, "getDeletionDependencies"], $obj_id);
1990 if (is_array($odeps)) {
1991 foreach ($odeps as $id => $message) {
1992 $deps["dep"][$id][$obj_id][] = $message;
1993 }
1994 }
1995
1996 // get deletion dependency of children
1997 foreach ($tree->getChilds($ref_id) as $c) {
1998 ilObject::collectDeletionDependencies($deps, (int) $c["child"], (int) $c["obj_id"], (string) $c["type"], $depth + 1);
1999 }
2000 }
2001
2002 // delete all dependencies to objects that will be deleted, too
2003 if ($depth == 0) {
2004 foreach ($deps["del_ids"] as $obj_id) {
2005 unset($deps["dep"][$obj_id]);
2006 }
2007 $deps = $deps["dep"];
2008 }
2009 }
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

◆ countReferences()

ilObject::countReferences ( )
final

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

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

References $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 551 of file class.ilObject.php.

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

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

Referenced by 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 710 of file class.ilObject.php.

710 : void
711 {
712 if ($this->beforeCreateMetaData()) {
713 global $DIC;
714 $ilUser = $DIC["ilUser"];
715
716 $this->lom_services->derive()->fromBasicProperties(
717 $this->getTitle(),
718 $this->getLongDescription(),
719 $ilUser->getPref('language') ?? ''
720 )->forObject($this->getId(), 0, $this->getType());
721
722 $this->doCreateMetaData();
723 }
724 }
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 1249 of file class.ilObject.php.

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

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

Referenced by ilSoapExerciseAdministration\addExercise(), ilObjStudyProgramme\addNode(), ilSoapObjectAdministration\addReferences(), ilECSCourseCreationHandler\createCourseReference(), 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, ilObjTaxonomyAdministration, ilObjTest, ilObjQuestionPool, ilObjUserFolder, ilObjLinkResource, ilObjWebResourceAdministration, and ilObjWiki.

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

1298 : bool
1299 {
1300 global $DIC;
1301 $rbac_admin = $DIC["rbacadmin"];
1302
1303 $remove = false;
1304
1305 // delete object_data entry
1306 if ((!$this->referenced) || ($this->countReferences() == 1)) {
1307 $type = ilObject::_lookupType($this->getId());
1308 if ($this->type != $type) {
1309 $log_entry = sprintf(
1310 "ilObject::delete(): Type mismatch. Object with obj_id: %s was instantiated by type '%s'. DB type is: %s",
1311 $this->id,
1312 $this->type,
1313 $type
1314 );
1315
1316 $this->log->write($log_entry);
1317 $this->error->raiseError(
1318 sprintf("ilObject::delete(): Type mismatch. (%s/%s)", $this->type, $this->id),
1319 $this->error->WARNING
1320 );
1321 }
1322
1323 $this->app_event_handler->raise('components/ILIAS/ILIASObject', 'beforeDeletion', ['object' => $this]);
1324
1325 $this->getObjectProperties()->deletePropertyTranslations();
1326
1327 $sql =
1328 "DELETE FROM " . self::TABLE_OBJECT_DATA . PHP_EOL
1329 . "WHERE obj_id = " . $this->db->quote($this->getId(), "integer") . PHP_EOL
1330 ;
1331 $this->db->manipulate($sql);
1332
1333 $sql =
1334 "DELETE FROM object_description" . PHP_EOL
1335 . "WHERE obj_id = " . $this->db->quote($this->getId(), "integer") . PHP_EOL
1336 ;
1337 $this->db->manipulate($sql);
1338
1339 $this->log->write(
1340 sprintf(
1341 "ilObject::delete(), deleted object, obj_id: %s, type: %s, title: %s",
1342 $this->getId(),
1343 $this->getType(),
1344 $this->getTitle()
1345 )
1346 );
1347
1348 // keep log of core object data
1350
1351 // remove news
1352 $news_item = new ilNewsItem();
1353 $news_item->deleteNewsOfContext($this->getId(), $this->getType());
1355
1357
1358 // BEGIN WebDAV: Delete WebDAV properties
1359 $sql =
1360 "DELETE FROM dav_property" . PHP_EOL
1361 . "WHERE obj_id = " . $this->db->quote($this->getId(), 'integer') . PHP_EOL
1362 ;
1363 $this->db->manipulate($sql);
1364 // END WebDAV: Delete WebDAV properties
1365
1366 ilECSImportManager::getInstance()->_deleteByObjId($this->getId());
1369
1370 $remove = true;
1371 } else {
1372 $this->log->write(
1373 sprintf(
1374 "ilObject::delete(), object not deleted, number of references: %s, obj_id: %s, type: %s, title: %s",
1375 $this->countReferences(),
1376 $this->getId(),
1377 $this->getType(),
1378 $this->getTitle()
1379 )
1380 );
1381 }
1382
1383 // delete object_reference entry
1384 if ($this->referenced) {
1386
1387 $this->app_event_handler->raise('components/ILIAS/ILIASObject', 'deleteReference', ['ref_id' => $this->getRefId()]);
1388
1389 $sql =
1390 "DELETE FROM object_reference" . PHP_EOL
1391 . "WHERE ref_id = " . $this->db->quote($this->getRefId(), 'integer') . PHP_EOL
1392 ;
1393 $this->db->manipulate($sql);
1394
1395 $this->log->write(
1396 sprintf(
1397 "ilObject::delete(), reference deleted, ref_id: %s, obj_id: %s, type: %s, title: %s",
1398 $this->getRefId(),
1399 $this->getId(),
1400 $this->getType(),
1401 $this->getTitle()
1402 )
1403 );
1404
1405 // DELETE PERMISSION ENTRIES IN RBAC_PA
1406 // DONE: method overwritten in ilObjRole & ilObjUser.
1407 // this call only applies for objects in rbac (not usr,role,rolt)
1408 // TODO: Do this for role templates too
1409 $rbac_admin->revokePermission($this->getRefId(), 0, false);
1410
1411 ilRbacLog::delete($this->getRefId());
1412
1413 // Remove applied didactic template setting
1415 }
1416
1417 // remove conditions
1418 if ($this->referenced) {
1419 $ch = new ilConditionHandler();
1420 $ch->delete($this->getRefId());
1421 unset($ch);
1422 }
1423
1424 return $remove;
1425 }
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 726 of file class.ilObject.php.

726 : void
727 {
728 }

Referenced by createMetaData().

+ Here is the caller graph for this function:

◆ doDeleteMetaData()

ilObject::doDeleteMetaData ( )
protected

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

774 : void
775 {
776 }

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 701 of file class.ilObject.php.

701 : void
702 {
703 }

Referenced by MDUpdateListener().

+ Here is the caller graph for this function:

◆ doUpdateMetaData()

ilObject::doUpdateMetaData ( )
protected

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

757 : void
758 {
759 }

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 2084 of file class.ilObject.php.

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

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 2038 of file class.ilObject.php.

2038 : array
2039 {
2040 global $DIC;
2041
2042 $db = $DIC->database();
2043 $obj_definition = $DIC["objDefinition"];
2044
2045 // restrict to repository
2046 $types = array_keys($obj_definition->getSubObjectsRecursively("root"));
2047
2048 $sql =
2049 "SELECT od.obj_id, od.type, od.title" . PHP_EOL
2050 . "FROM object_data od" . PHP_EOL
2051 . "JOIN object_reference oref ON(oref.obj_id = od.obj_id)" . PHP_EOL
2052 . "JOIN tree ON (tree.child = oref.ref_id)" . PHP_EOL
2053 ;
2054
2055 if ($user_id) {
2056 $sql .= "WHERE od.owner = " . $db->quote($user_id, "integer") . PHP_EOL;
2057 } else {
2058 $sql .=
2059 "LEFT JOIN usr_data ud ON (ud.usr_id = od.owner)" . PHP_EOL
2060 . "WHERE (od.owner < " . $db->quote(1, "integer") . PHP_EOL
2061 . "OR od.owner IS NULL OR ud.login IS NULL)" . PHP_EOL
2062 . "AND od.owner <> " . $db->quote(-1, "integer") . PHP_EOL
2063 ;
2064 }
2065
2066 $sql .=
2067 "AND " . $db->in("od.type", $types, false, "text") . PHP_EOL
2068 . "AND tree.tree > " . $db->quote(0, "integer") . PHP_EOL
2069 ;
2070
2071 $res = $db->query($sql);
2072
2073 $all = [];
2074 while ($row = $db->fetchAssoc($res)) {
2075 $all[$row["type"]][$row["obj_id"]] = $row["title"];
2076 }
2077
2078 return $all;
2079 }
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 1752 of file class.ilObject.php.

1752 : callable
1753 {
1754 return function (array $npl, ?Translations $nt): array {
1755 $langs = $nt->getLanguages();
1756 foreach ($langs as $lang) {
1757 if (!array_key_exists($lang->getLanguageCode(), $npl)) {
1758 $npl[$lang->getLanguageCode()] = [];
1759 }
1760 $npl[$lang->getLanguageCode()][] = $lang->getTitle();
1761 }
1762 return $npl;
1763 };
1764 }

◆ getCreateDate()

ilObject::getCreateDate ( )
final

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

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

534 : string
535 {
536 return $this->create_date;
537 }
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 2014 of file class.ilObject.php.

2014 : array
2015 {
2016 return [];
2017 }

◆ getDescription()

◆ getHTMLDirectory()

ilObject::getHTMLDirectory ( )

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

1492 : bool
1493 {
1494 return false;
1495 }

◆ getIconForType()

static ilObject::getIconForType ( string  $type)
static

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

1889 : string
1890 {
1891 global $DIC;
1892 $objDefinition = $DIC['objDefinition'];
1893 if (!$objDefinition->isPluginTypeName($type)) {
1894 return ilUtil::getImagePath("standard/icon_{$type}.svg");
1895 }
1896
1897 if ($objDefinition->getClassName($type) !== '') {
1898 $class_name = "il{$objDefinition->getClassName($type)}Plugin";
1899 $location = $objDefinition->getLocation($type);
1900 if (is_file($location . "/class.{$class_name}.php")) {
1901 return call_user_func([$class_name, '_getIcon'], $type);
1902 }
1903 }
1904 return ilUtil::getImagePath('standard/icon_cmps.svg');
1905 }
$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 311 of file class.ilObject.php.

311 : int
312 {
313 return $this->id;
314 }

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(), ilCertificateSettingsLTIConsumerFormRepository\__construct(), ILIAS\Exercise\Certificate\CertificateSettingsExerciseRepository\__construct(), ilExerciseMembers\__construct(), ilAssignmentPresentationGUI\__construct(), ilExerciseXMLParser\__construct(), ilLMObject\__construct(), ilPollAnswersHandler\__construct(), ilMailingList\__construct(), ilObjBlog\__construct(), ilBookBulkCreationGUI\__construct(), ILIAS\BookingManager\BookingProcess\ProcessUtilGUI\__construct(), ilBookingReservationsTableGUI\__construct(), ilLOMemberTestResultTableGUI\__construct(), ILIAS\LearningModule\Editing\EditSubObjectsGUI\__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(), 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(), ilIndividualAssessmentSettingsStorageDB\deleteSettings(), ilObjSurvey\deleteSurveyRecord(), ilObjTest\deleteTest(), ilObjSCORM2004LearningModule\deleteTrackingDataOfUsers(), ilObjOrgUnit\deleteTranslation(), ilObjRootFolder\deleteTranslation(), ilObjMediaCastGUI\determinePlaytimeObject(), ilLMNavigationStatus\determineStatus(), ilObjStudyProgramme\disableAutomaticMembershipSource(), ilADNDismiss\dismiss(), ILIAS\Registration\DualOptIn\Service\DualOptInServiceImpl\distributeMailsOnRegistration(), 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(), ILIAS\News\Domain\UserContextResolver\filterContexts(), ilCmiXapiUser\generateRegistration(), ILIAS\News\Domain\UserContextResolver\getAccessibleContexts(), 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(), ILIAS\News\Domain\UserContextResolver\getMembershipContexts(), ilObjSCORM2004LearningModule\getModuleVersionForUser(), ilObjSCORMLearningModule\getModuleVersionForUser(), ilObjSCORMLearningModule\getModuleVersionForUsers(), ilMailGlobalServices\getNewMailsData(), ILIAS\News\Domain\NewsCollectionService\getNewsForUser(), ILIAS\COPage\PC\InteractiveImage\IIMManager\getOverlayThumbnailPath(), ILIAS\COPage\PC\InteractiveImage\IIMManager\getOverlayWebPath(), ilPortfolioTemplatePageGUI\getPageContentUserId(), ilObjContentPage\getPageObjIds(), ilObjForum\getPageObjIds(), ILIAS\News\Domain\UserContextResolver\getPersonalDesktopContexts(), 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(), ILIAS\Exercise\Assignment\DomainService\mandatoryAssignments(), 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(), ILIAS\Exercise\Assignment\DomainService\randomAssignments(), 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(), ilIndividualAssessmentMembersStorageDB\removeMembersRecord(), ilObjTest\removeQuestionWithResults(), ilObjOrgUnit\removeTranslations(), ilObjRootFolder\removeTranslations(), ilObjWorkspaceRootFolder\removeTranslations(), ilObjPortfolioBaseGUI\renderFullscreenHeader(), ilCourseObjectiveResult\resetTestForUser(), ILIAS\Test\Results\Data\Factory\retrieveResultData(), 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 412 of file class.ilObject.php.

412 : string
413 {
414 return $this->import_id;
415 }

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 542 of file class.ilObject.php.

542 : string
543 {
544 return $this->last_update;
545 }

References $last_update.

◆ getLongDescription()

ilObject::getLongDescription ( )

get object long description (stored in object_description)

Reimplemented in ilObjAdministrativeNotification, ilObjFileServices, ilObjLanguageExt, ilObjMainMenu, ilObjOrgUnit, ilObjStaticUrlService, and ilObjWebDAV.

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

400 : string
401 {
402 if ($this->long_desc !== '') {
403 return $this->long_desc;
404 }
405
406 if ($this->desc !== '') {
407 return $this->desc;
408 }
409 return '';
410 }
string $long_desc

References $desc, and $long_desc.

Referenced by ilObjectDataDeletionLog\add(), create(), createMetaData(), ilObjContentPage\doUpdate(), ilObjItemGroup\doUpdate(), ILIAS\Repository\Provider\RepositoryOpenGraphExposer\exposeObjectOpenGraphMetaData(), ilObjExerciseGUI\getEditFormCustomValues(), ilSoapStructureObjectFactory\getInstanceForObject(), ilObjCourse\prepareAppointments(), and ilObjSession\prepareCalendarAppointments().

+ Here is the caller graph for this function:

◆ getLongDescriptions()

static ilObject::getLongDescriptions ( array  $obj_ids)
static

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

2019 : array
2020 {
2021 global $DIC;
2022 $db = $DIC->database();
2023
2024 $sql =
2025 "SELECT obj_id, description" . PHP_EOL
2026 . "FROM object_description" . PHP_EOL
2027 . "WHERE " . $db->in("obj_id", $obj_ids, false, "integer") . PHP_EOL
2028 ;
2029 $result = $db->query($sql);
2030
2031 $all = [];
2032 while ($row = $db->fetchAssoc($result)) {
2033 $all[$row["obj_id"]] = $row["description"];
2034 }
2035 return $all;
2036 }

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(), 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 461 of file class.ilObject.php.

461 : bool
462 {
463 return !$this->getObjectProperties()->getPropertyIsOnline()->getIsOnline();
464 }

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 490 of file class.ilObject.php.

490 : int
491 {
492 return $this->owner;
493 }

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 498 of file class.ilObject.php.

498 : string
499 {
500 return ilObject::_lookupOwnerName($this->getOwner());
501 }
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 2154 of file class.ilObject.php.

2154 : array
2155 {
2156 return $this->obj_definition->getSubObjects($this->type, $filter);
2157 }

◆ getPresentationTitle()

ilObject::getPresentationTitle ( )

get presentation title Normally same as title Overwritten for sessions

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

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

347 : string
348 {
349 return $this->getTitle();
350 }

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 327 of file class.ilObject.php.

327 : int
328 {
329 return $this->ref_id ?? 0;
330 }

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(), ILIAS\Test\GUIFactory\__construct(), ilObjCourse\__getLocalRoles(), ilObjCourseGrouping\_checkGroupingDependencies(), ilObjCourseGrouping\_getGroupingItems(), ilSoapExerciseAdministration\addExercise(), 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(), 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\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(), ilObjDataCollection\sendRecordNotification(), ilObjLearningSequence\setEffectiveOnlineStatus(), ilContentPageKioskModeView\setObject(), ilObjCourse\setParentRolePermissions(), setParentRolePermissions(), ilObjForum\setPermissions(), ilObjContentPage\trackProgress(), 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 352 of file class.ilObject.php.

352 : string
353 {
354 return $this->title;
355 }

References $title.

Referenced by ilConditionHandlerGUI\__construct(), ilObjectDataDeletionLog\add(), ilObjChatroomGUI\afterImport(), ilObjLTIConsumerGUI\afterSave(), ilObjChatroomGUI\afterSave(), ilObjContentPageGUI\afterSave(), ilObjFile\beforeUpdate(), ilObjFileComponentBuilder\buildConfirmDeleteSpecificVersionsModal(), create(), ilObjFileBasedLM\create(), ilCalendarAppEventListener\createCategory(), createMetaData(), ilObjBlogGUI\createPosting(), delete(), ilObjSurvey\delete(), ilObjFile\doCloneObject(), ilObjTaxonomy\doCloneObject(), 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 332 of file class.ilObject.php.

332 : string
333 {
334 return $this->type;
335 }

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(), 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 361 of file class.ilObject.php.

361 : string
362 {
364 }
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 1488 of file class.ilObject.php.

1488 : string
1489 {
1490 return "";
1491 }

◆ handleAutoRating()

ilObject::handleAutoRating ( )
protected

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

1924 : void
1925 {
1926 if ($this->process_auto_reating
1927 && $this->hasAutoRating()
1928 && method_exists($this, "setRating")
1929 ) {
1930 $this->setRating(true);
1931 $this->update();
1932 }
1933 }

Referenced by putInTree().

+ Here is the caller graph for this function:

◆ hasAutoRating()

ilObject::hasAutoRating ( )
protected

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

1935 : bool
1936 {
1937 $ref_id = $this->getRefId();
1939
1940 if (!$ref_id || !in_array($type, ["file", "lm", "wiki"])) {
1941 return false;
1942 }
1943
1944 return $this->selfOrParentWithRatingEnabled();
1945 }
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 1434 of file class.ilObject.php.

1434 : void
1435 {
1436 }

Referenced by setPermissions().

+ Here is the caller graph for this function:

◆ isTitleUnique()

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

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

1783 : bool
1784 {
1785 foreach ($nodes as $node) {
1786 if (($title === $node)) {
1787 return false;
1788 }
1789 }
1790 return true;
1791 }

◆ 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 670 of file class.ilObject.php.

670 : void
671 {
672 if ($this->beforeMDUpdateListener($element)) {
673 $this->app_event_handler->raise(
674 'components/ILIAS/ILIASObject',
675 'update',
676 ['obj_id' => $this->getId(),
677 'obj_type' => $this->getType(),
678 'ref_id' => $this->getRefId()
679 ]
680 );
681
682 // Update Title and description
683 if ($element == 'General') {
684 $paths = $this->lom_services->paths();
685 $reader = $this->lom_services->read(
686 $this->getId(),
687 0,
688 $this->getType(),
689 $paths->custom()->withNextStep('general')->get()
690 );
691
692 $this->setTitle($reader->firstData($paths->title())->value());
693 $this->setDescription($reader->firstData($paths->descriptions())->value());
694
695 $this->update();
696 }
697 $this->doMDUpdateListener($element);
698 }
699 }
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 1186 of file class.ilObject.php.

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

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

Referenced by ilSoapExerciseAdministration\addExercise(), ilSoapObjectAdministration\addReferences(), 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);
231 throw new ilObjectNotFoundException($message);
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);
248 throw new ilObjectTypeMismatchException($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 $this->object_properties = null;
281
282 // multilingual support system objects (sys) & categories (db)
283 $translation_type = $this->obj_definition->getTranslationType($this->type);
284
285 if ($translation_type === 'sys') {
286 $this->title = $this->lng->txt("obj_{$this->type}");
287 $this->setDescription($this->lng->txt("obj_{$this->type}_desc"));
288 return;
289 }
290
291 if ($translation_type !== 'db') {
292 return;
293 }
294
295 $translation = $this->translations_repository->getFor($this->id);
296
297 $language = $translation->getLaguageForCode(
298 $ilUser->getCurrentLanguage()
299 ) ?? $translation->getLaguageForCode(
300 $translation->getDefaultLanguage()
301 );
302
303 if ($language === null) {
304 return;
305 }
306
307 $this->title = $language->getTitle();
308 $this->setDescription($language->getDescription());
309 }

References $DIC, Vendor\Package\$e, $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 1947 of file class.ilObject.php.

1947 : bool
1948 {
1950 $ref_id = $this->getRefId();
1951 $parent_ref_id = $tree->checkForParentType($ref_id, "grp");
1952 if (!$parent_ref_id) {
1953 $parent_ref_id = $tree->checkForParentType($ref_id, "crs");
1954 }
1955 if ($parent_ref_id) {
1956 // get auto rate setting
1957 $parent_obj_id = ilObject::_lookupObjId($parent_ref_id);
1959 $parent_obj_id,
1961 );
1962 }
1963 return false;
1964 }
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 973 of file class.ilObject.php.

973 : void
974 {
975 global $DIC;
976 $db = $DIC->database();
977
978 $sql =
979 "UPDATE object_reference" . PHP_EOL
980 . "SET deleted = " . $db->now() . ", " . PHP_EOL
981 . "deleted_by = " . $db->quote($user_id, "integer") . PHP_EOL
982 . "WHERE " . $db->in("ref_id", $ref_ids, false, "integer") . PHP_EOL;
983
984 $db->manipulate($sql);
985 }
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 385 of file class.ilObject.php.

385 : void
386 {
387 $property = $this->getObjectProperties()
388 ->getPropertyTitleAndDescription()->withDescription($description);
389
390 $this->object_properties = $this->getObjectProperties()->withPropertyTitleAndDescription($property);
391
392 // Shortened form is storted in object_data. Long form is stored in object_description
393 $this->desc = $property->getDescription();
394 $this->long_desc = $property->getLongDescription();
395 }

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(), 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 316 of file class.ilObject.php.

316 : void
317 {
318 $this->id = $id;
319 }

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 417 of file class.ilObject.php.

417 : void
418 {
419 $this->object_properties = $this->getObjectProperties()->withImportId($import_id);
420 $this->import_id = $import_id;
421 }

References $import_id, and getObjectProperties().

+ Here is the call graph for this function:

◆ setOfflineStatus()

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

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

451 : void
452 {
453 $property_is_online = $this->getObjectProperties()->getPropertyIsOnline()->withOnline();
454 if ($status) {
455 $property_is_online = $property_is_online->withOffline();
456 }
457
458 $this->object_properties = $this->getObjectProperties()->withPropertyIsOnline($property_is_online);
459 }

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 526 of file class.ilObject.php.

526 : void
527 {
528 $this->owner = $usr_id;
529 }

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 1225 of file class.ilObject.php.

1225 : bool
1226 {
1227 $parent_roles = $this->rbac_review->getParentRoleIds($parent_ref_id);
1228 foreach ($parent_roles as $parent_role) {
1229 if ($parent_role['obj_id'] == SYSTEM_ROLE_ID) {
1230 continue;
1231 }
1232 $operations = $this->rbac_review->getOperationsOfRole(
1233 (int) $parent_role['obj_id'],
1234 $this->getType(),
1235 (int) $parent_role['parent']
1236 );
1237 $this->rbac_admin->grantPermission(
1238 (int) $parent_role['obj_id'],
1239 $operations,
1240 $this->getRefId()
1241 );
1242 }
1243 return true;
1244 }
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 1214 of file class.ilObject.php.

1214 : void
1215 {
1216 $this->setParentRolePermissions($parent_ref_id);
1217 $this->initDefaultRoles();
1218 }
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 ilSoapExerciseAdministration\addExercise(), ilSoapObjectAdministration\addReferences(), ilECSCourseCreationHandler\createCourseReference(), 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 321 of file class.ilObject.php.

321 : void
322 {
323 $this->ref_id = $ref_id;
324 $this->referenced = true;
325 }

References $ref_id.

Referenced by ilMailSearchObjectGUI\doesExposeMembers().

+ Here is the caller graph for this function:

◆ setTitle()

ilObject::setTitle ( string  $title)
final

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

366 : void
367 {
368 $property = $this->getObjectProperties()->getPropertyTitleAndDescription()->withTitle(
369 ilStr::shortenTextExtended($title, $this->max_title ?? self::TITLE_LENGTH, $this->add_dots)
370 );
371
372 $this->object_properties = $this->getObjectProperties()->withPropertyTitleAndDescription($property);
373
374 $this->title = $property->getTitle();
375
376 // WebDAV needs to access the untranslated title of an object
377 $this->untranslatedTitle = $this->title;
378 }

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(), 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 337 of file class.ilObject.php.

337 : void
338 {
339 $this->type = $type;
340 }

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 466 of file class.ilObject.php.

466 : bool
467 {
468 return $this->obj_definition->supportsOfflineHandling($this->getType());
469 }

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 644 of file class.ilObject.php.

644 : bool
645 {
646 $this->getObjectProperties()->storeCoreProperties();
647
648 $this->app_event_handler->raise(
649 'components/ILIAS/ILIASObject',
650 'update',
651 [
652 'obj_id' => $this->getId(),
653 'obj_type' => $this->getType(),
654 'ref_id' => $this->getRefId()
655 ]
656 );
657
658 return true;
659 }

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 735 of file class.ilObject.php.

735 : void
736 {
737 if ($this->beforeUpdateMetaData()) {
738 $paths = $this->lom_services->paths();
739
740 $manipulator = $this->lom_services->manipulate($this->getId(), 0, $this->getType())
741 ->prepareCreateOrUpdate($paths->title(), $this->getTitle());
742
743 if ($this->getDescription() !== '') {
744 $manipulator = $manipulator->prepareCreateOrUpdate(
745 $paths->firstDescription(),
746 $this->getLongDescription()
747 );
748 } else {
749 $manipulator = $manipulator->prepareDelete($paths->firstDescription());
750 }
751
752 $manipulator->execute();
753 $this->doUpdateMetaData();
754 }
755 }
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 786 of file class.ilObject.php.

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

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(), _getIdForImportId(), _getIdsForTitle(), _getLastUpdateOfObjects(), _getObjectsByType(), _getObjectsDataForType(), _lookupDeletedDate(), _lookupImportId(), _lookupObjIdByImportId(), _resetDeletedDate(), _setDeletedDate(), _writeDescription(), _writeImportId(), _writeTitle(), 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(), 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

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

Referenced by ilObjSCORM2004LearningModule\convert_1_2_to_2004().

◆ $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: