ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilObject Class Reference

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

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

Public Member Functions

 __construct ($a_id=0, $a_reference=true)
 Constructor public. More...
 
 withReferences ()
 determines wehter objects are referenced or not (got ref ids or not) More...
 
 read ()
 read object data from db into object More...
 
 getId ()
 get object id public More...
 
 setId ($a_id)
 set object id public More...
 
 setRefId ($a_id)
 set reference id public More...
 
 getRefId ()
 get reference id public More...
 
 getType ()
 get object type public More...
 
 setType ($a_type)
 set object type public More...
 
 getPresentationTitle ()
 get presentation title Normally same as title Overwritten for sessions More...
 
 getTitle ()
 get object title public More...
 
 getUntranslatedTitle ()
 get untranslated object title public More...
 
 setTitle ($a_title)
 set object title More...
 
 getDescription ()
 get object description More...
 
 setDescription ($a_desc)
 set object description More...
 
 getLongDescription ()
 get object long description (stored in object_description) More...
 
 getImportId ()
 get import id More...
 
 setImportId ($a_import_id)
 set import id More...
 
 getOwner ()
 get object owner More...
 
 getOwnerName ()
 
 setOwner ($a_owner)
 set object owner More...
 
 getCreateDate ()
 get create date public More...
 
 getLastUpdateDate ()
 get last update date public More...
 
 getDiskUsage ()
 Gets the disk usage of the object in bytes. More...
 
 create ()
 create More...
 
 update ()
 update object in db More...
 
 MDUpdateListener ($a_element)
 Meta data update listener. More...
 
 createMetaData ()
 create meta data entry More...
 
 updateMetaData ()
 update meta data entry More...
 
 deleteMetaData ()
 delete meta data entry More...
 
 updateOwner ()
 update owner of object in db More...
 
 putInTree ($a_parent_ref)
 maybe this method should be in tree object!? More...
 
 setPermissions ($a_parent_ref)
 set permissions of object More...
 
 setParentRolePermissions ($a_parent_ref)
 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. More...
 
 createReference ()
 creates reference for object More...
 
 countReferences ()
 count references of object 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 If you want to setup default local roles you MUST overwrite this method in derived object classes (see ilObjForum for an example) public More...
 
 applyDidacticTemplate ($a_tpl_id)
 Apply template. More...
 
 setRegisterMode ($a_bool)
 
 isUserRegistered ($a_user_id=0)
 
 requireRegistration ()
 
 getXMLZip ()
 
 getHTMLDirectory ()
 
 appendCopyInfo ($a_target_id, $a_copy_id)
 Prepend Copy info if object with same name exists in that container. More...
 
 cloneDependencies ($a_target_id, $a_copy_id)
 Clone object dependencies. More...
 
 cloneMetaData ($target_obj)
 Copy meta data. More...
 
 getPossibleSubObjects ($a_filter=true)
 get all possible subobjects of this type the object can decide which types of subobjects are possible jut in time overwrite if the decision distinguish from standard model More...
 

Static Public Member Functions

static _lookupObjIdByImportId ($a_import_id)
 
static _lookupImportId ($a_obj_id)
 
static _lookupOwnerName ($a_owner_id)
 lookup owner name for owner id More...
 
static _getIdForImportId ($a_import_id)
 get current object id for import id (static) More...
 
static _getAllReferences ($a_id)
 get all reference ids of object More...
 
static _lookupTitle ($a_id)
 lookup object title More...
 
static _lookupOwner ($a_id)
 lookup object owner More...
 
static _getIdsForTitle ($title, $type='', $partialmatch=false)
 
static _lookupDescription ($a_id)
 lookup object description More...
 
static _lookupLastUpdate ($a_id, $a_as_string=false)
 lookup last update More...
 
static _getLastUpdateOfObjects ($a_objs)
 Get last update for a set of media objects. More...
 
static _lookupObjId ($a_id)
 
static _setDeletedDate ($a_ref_id)
 only called in ilTree::saveSubTree More...
 
static setDeletedDates ($a_ref_ids)
 Set deleted date type $ilDB. More...
 
static _resetDeletedDate ($a_ref_id)
 only called in ilObjectGUI::insertSavedNodes More...
 
static _lookupDeletedDate ($a_ref_id)
 only called in ilObjectGUI::insertSavedNodes More...
 
static _writeTitle ($a_obj_id, $a_title)
 write title to db (static) More...
 
static _writeDescription ($a_obj_id, $a_desc)
 write description to db (static) More...
 
static _writeImportId ($a_obj_id, $a_import_id)
 write import id to db (static) More...
 
static _lookupType ($a_id, $a_reference=false)
 lookup object type More...
 
static _isInTrash ($a_ref_id)
 checks wether object is in trash More...
 
static _hasUntrashedReference ($a_obj_id)
 checks wether an object has at least one reference that is not in trash More...
 
static _lookupObjectId ($a_ref_id)
 lookup object id More...
 
static _getObjectsDataForType ($a_type, $a_omit_trash=false)
 get all objects of a certain type More...
 
static _exists ($a_id, $a_reference=false, $a_type=null)
 checks if an object exists in object_data More...
 
static _getObjectsByType ($a_obj_type="", $a_owner="")
 Get objects by type. More...
 
static _prepareCloneSelection ($a_ref_ids, $new_type, $show_path=true)
 Prepare copy wizard object selection. More...
 
static _getIcon ( $a_obj_id="", $a_size="big", $a_type="", $a_offline=false)
 Get icon for repository item. More...
 
static collectDeletionDependencies (&$deps, $a_ref_id, $a_obj_id, $a_type, $a_depth=0)
 Collect deletion dependencies. More...
 
static getDeletionDependencies ($a_obj_id)
 Get deletion dependencies. More...
 
static getLongDescriptions (array $a_obj_ids)
 Get long description data. More...
 
static getAllOwnedRepositoryObjects ($a_user_id)
 Get all ids of objects user owns. More...
 
static fixMissingTitles ($a_type, array &$a_obj_title_map)
 Try to fix missing object titles. More...
 
static _lookupCreationDate ($a_id)
 Lookup creation date. More...
 
static hasAutoRating ($a_type, $a_ref_id)
 Check if auto rating is active for parent group/course. More...
 

Data Fields

const TITLE_LENGTH = 255
 max length of object title More...
 
const DESC_LENGTH = 128
 
 $lng
 
 $id
 
 $ref_id
 
 $type
 
 $title
 
 $untranslatedTitle
 
 $desc
 
 $long_desc
 
 $owner
 
 $create_date
 
 $last_update
 
 $import_id
 
 $register = false
 
 $referenced
 
 $objectList
 
 $max_title
 
 $max_desc
 
 $add_dots
 

Protected Attributes

 $objDefinition
 
 $db
 
 $log
 
 $error
 
 $tree
 
 $app_event_handler
 
 $rbacadmin
 
 $rbacreview
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilObject::__construct (   $a_id = 0,
  $a_reference = true 
)

Constructor public.

Parameters
integerreference_id or object_id
booleantreat the id as reference_id (true) or object_id (false)

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

References $DIC, $objDefinition, DEBUG, and read().

129  {
130  global $DIC;
131 
132 
133  $this->ilias = $DIC["ilias"];
134 
135  $this->db = $DIC->database();
136  $this->log = $DIC["ilLog"];
137  $this->error = $DIC["ilErr"];
138  $this->tree = $DIC->repositoryTree();
139  $this->app_event_handler = $DIC["ilAppEventHandler"];
140  $objDefinition = $DIC["objDefinition"];
141 
142  if (DEBUG) {
143  echo "<br/><font color=\"red\">type(" . $this->type . ") id(" . $a_id . ") referenced(" . $a_reference . ")</font>";
144  }
145 
146  if (isset($DIC["lng"])) {
147  $this->lng = $DIC["lng"];
148  }
149  $this->objDefinition = $objDefinition;
150 
151  $this->max_title = self::TITLE_LENGTH;
152  $this->max_desc = self::DESC_LENGTH;
153  $this->add_dots = true;
154 
155  $this->referenced = $a_reference;
156  $this->call_by_reference = $a_reference;
157 
158  if ($a_id == 0) {
159  $this->referenced = false; // newly created objects are never referenced
160  } // they will get referenced if createReference() is called
161 
162  if ($this->referenced) {
163  $this->ref_id = $a_id;
164  } else {
165  $this->id = $a_id;
166  }
167  // read object data
168  if ($a_id != 0) {
169  $this->read();
170  }
171  }
global $DIC
Definition: saml.php:7
read()
read object data from db into object
const DEBUG
redirection script todo: (a better solution should control the processing via a xml file) ...
+ Here is the call graph for this function:

Member Function Documentation

◆ _exists()

static ilObject::_exists (   $a_id,
  $a_reference = false,
  $a_type = null 
)
static

checks if an object exists in object_data

public

Parameters
integerobject id or reference id
booleantrue if id is a reference, else false (default)
stringrestrict on a certain type.
Returns
boolean true if object exists

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

References $a_type, $DIC, $ilDB, and $r.

Referenced by ilObjectFeedWriter\__construct(), _lookupOwnerName(), ilNavigationHistory\addItem(), ilPCFileList\afterPageUpdate(), ilPCMediaObject\afterPageUpdate(), ilPCFileList\beforePageDelete(), ilPCMediaObject\beforePageDelete(), ilSoapAdministration\checkObjectAccess(), ilPageObject\collectMediaObjects(), ilNewsItem\delete(), ilPageObject\delete(), ilObjSCORMLearningModuleGUI\deleteTrackingForUser(), ilPublicUserProfileGUI\deliverVCard(), ilExerciseManagementGUI\downloadAllObject(), ilSCORM2004Asset\exportFileItems(), ilObjContentObject\exportHTML(), ilCOPageHTMLExport\exportPageElements(), ilForum\fetchPostNodeData(), ilPageHistoryTableGUI\fillRow(), ilMediaCastTableGUI\fillRow(), ilLinksTableGUI\fillRow(), ilWikiContributorsTableGUI\fillRow(), ilPDNewsTableGUI\fillRow(), ilPageObject\getContentObject(), ilObjStyleSheet\getContentStylePath(), ilSoapCourseAdministration\getCoursesForUser(), ilPublicUserProfileGUI\getEmbeddable(), ilSCORM2004ScoGUI\getExportResources(), ilSoapGroupAdministration\getGroupsForUser(), ilGoogleMapGUI\getHtml(), ilOpenLayersMapGUI\getHtml(), ilObjMediaObject\getLinkedMediaObjects(), ilNoteGUI\getNoteListHTML(), ilTagging\getObjectsForTagAndUser(), ilExSubmissionObjectGUI\getOverviewContentPortfolio(), ilGoogleMapGUI\getUserListHtml(), ilOpenLayersMapGUI\getUserListHtml(), ilSoapObjectAdministration\getXMLTree(), ilAdvancedMDRecordParser\handlerBeginTag(), ilAdvancedMDFieldDefinitionInternalLink\importValueFromXML(), ilCalendarRemoteAccessHandler\initUser(), ilIndividualAssessmentSettingsStorageDB\loadInfoSettings(), ilIndividualAssessmentSettingsStorageDB\loadSettings(), ilSCORMTrackingItemsPerUserFilterGUI\parse(), ilSCORM2004TrackingItemsPerUserFilterGUI\parse(), ilNewsTimelineItemGUI\render(), ilNewsForContextBlockGUI\showNews(), ilPageObjectGUI\showPage(), ilObjSCORMLearningModuleGUI\showTrackingItems(), ilObjSCORM2004LearningModuleGUI\showTrackingItems(), ilObjSCORMLearningModuleGUI\stopUserOfflineMode(), ilObjectTest\testCreationDeletion(), ilSCORMTrackingItems\userDataArrayForExport(), ilIndividualAssessmentMembers\userExists(), and ilContObjectManifestBuilder\writeResources().

1603  {
1604  global $DIC;
1605 
1606  $ilDB = $DIC->database();
1607 
1608  if ($a_reference) {
1609  $q = "SELECT * FROM object_data " .
1610  "LEFT JOIN object_reference ON object_reference.obj_id=object_data.obj_id " .
1611  "WHERE object_reference.ref_id= " . $ilDB->quote($a_id, "integer");
1612  } else {
1613  $q = "SELECT * FROM object_data WHERE obj_id=" . $ilDB->quote($a_id, "integer");
1614  }
1615 
1616  if ($a_type) {
1617  $q .= " AND object_data.type = " . $ilDB->quote($a_type, "text");
1618  }
1619 
1620  $r = $ilDB->query($q);
1621 
1622  return $ilDB->numRows($r) ? true : false;
1623  }
global $DIC
Definition: saml.php:7
$a_type
Definition: workflow.php:92
$r
Definition: example_031.php:79
global $ilDB
+ Here is the caller graph for this function:

◆ _getAllReferences()

static ilObject::_getAllReferences (   $a_id)
static

get all reference ids of object

Parameters
int$a_idobject id

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

References $DIC, $ilDB, $query, $res, and array.

Referenced by ilObjectXMLWriter\__appendObject(), ilGroupParticipants\__construct(), ilAdvancedMDRecordGUI\__construct(), ilCourseParticipants\__construct(), ilObjectCustomUserFieldsGUI\__construct(), ilParticipant\__construct(), ilLPListOfProgressGUI\__initDetails(), ilCourseObjectiveMaterials\__read(), ilCourseObjectiveQuestion\__read(), ilObjWikiAccess\_checkGoto(), ilObjGlossaryAccess\_checkGoto(), ilObjContentObjectAccess\_checkGoto(), ilStartUpGUI\_checkGoto(), ilObjStyleSheet\_getClonableContentStyles(), ilGlossaryTerm\_getIdForImportId(), ilInternalLink\_getIdForImportId(), ilLMObject\_getIdForImportId(), ilSessionParticipants\_getInstanceByObjId(), ilObjGroup\_getMembers(), ilNewsItem\_getNewsItemsOfUser(), ilNote\_getRelatedObjectsOfUser(), ilLPStatusCollectionTLT\_getStatusInfo(), ilLPStatusCollectionManual\_getStatusInfo(), ilLPStatusEvent\_getStatusInfo(), ilLMPageObjectGUI\_goto(), ilStructureObjectGUI\_goto(), ilGlossaryTermGUI\_goto(), ilObjWikiGUI\_goto(), ilObjForumGUI\_goto(), ilObjUserTracking\_hasLearningProgressOtherUsers(), _hasUntrashedReference(), ilContainerReferenceAccess\_isAccessible(), ilObjCourseAccess\_isActivated(), ilObjSurveyQuestionPool\_isWriteable(), ilObjQuestionPool\_isWriteable(), ilObjTestSettingsGeneralGUI\addAvailabilityProperties(), ilLPXmlWriter\addLPInformation(), ilInfoScreenGUI\addObjectSections(), ilCalendarCategoryGUI\addReferenceLinks(), ilECSCourseCreationHandler\addUrlEntry(), ilObjGlossaryGUI\addUsagesToInfo(), ilAccountCode\applyRoleAssignments(), ilSoapCourseAdministration\assignCourseMember(), ilSoapGroupAdministration\assignGroupMember(), ilUserImportParser\assignToRole(), ilCalendarExport\buildAppointmentUrl(), ilOrgUnitImporter\buildRef(), ilObjBlogAccess\canBeDelivered(), ilPortfolioAccessHandler\canBeDelivered(), ilMailSearchGroupsGUI\cancel(), ilMailSearchCoursesGUI\cancel(), ilObjMediaObjectAccess\checkAccessObject(), ilPortfolioExerciseGUI\checkExercise(), ilBlogExerciseGUI\checkExercise(), ilSearchAutoComplete\checkObjectPermission(), ilGlossaryTermPermission\checkPermission(), ilDAVLocks\cleanUp(), ilContainerSorting\cloneSorting(), ilAppointmentPresentationGroupGUI\collectPropertiesAndActions(), ilAppointmentPresentationCourseGUI\collectPropertiesAndActions(), ilLORandomTestQuestionPools\copy(), ilECSCourseCreationHandler\createCourseReference(), ilLinkChecker\createPermanentLink(), ilSoapCourseAdministration\deleteCourse(), ilContainerReferenceAppEventListener\deleteReferences(), ilUserImportParser\detachFromRole(), ilObjTestGUI\determineObjectiveOrientedContainer(), ilCalendarAppointmentGUI\distributeNotifications(), ilECSCourseCreationHandler\doAttributeMapping(), ilGroupAppEventListener\doAutoFill(), ilCourseAppEventListener\doAutoFill(), ilECSCourseCreationHandler\doSync(), ilECSEnrolmentStatusCommandQueueHandler\doUpdate(), ilConsultationHoursGUI\edit(), ilSoapCourseAdministration\excludeCourseMember(), ilSoapGroupAdministration\excludeGroupMember(), ilForumPostingDraftsBlockGUI\fillDataSection(), ilECSImportedContentTableGUI\fillRow(), ilTestQuestionsTableGUI\fillRow(), ilLuceneSearchResultFilter\filter(), ilSearchResult\filter(), ilObjCourse\findCoursesWithNotEnoughMembers(), ilObjGroup\findGroupsWithNotEnoughMembers(), ilLPCronObjectStatistics\gatherCourseLPData(), ilChatroomTabGUIFactory\getAdminTabsForCommand(), ilObjPortfolioTemplate\getAvailablePortfolioTemplates(), ilForumAppEventListener\getCachedReferences(), ilCalendarSelectionBlockGUI\getCalendars(), ilAppointmentBaseFileHandler\getCatInfo(), ilTestRandomQuestionSetConfig\getCommaSeparatedSourceQuestionPoolLinks(), ilSoapCourseAdministration\getCoursesForUser(), ilPortfolioPageGUI\getCoursesOfUser(), ilPortfolioExerciseGUI\getExerciseInfo(), ilBlogExerciseGUI\getExerciseInfo(), ilSoapExerciseAdministration\getExerciseXML(), ilAppointmentCourseFileHandler\getFiles(), ilSoapFileAdministration\getFileXML(), ilMediaPoolPageUsagesTableGUI\getFirstWritableRefId(), ilMediaObjectUsagesTableGUI\getFirstWritableRefId(), ilTermUsagesTableGUI\getFirstWritableRefId(), ilObjForumNotificationDataProvider\getForumNotificationRecipients(), ilSoapGroupAdministration\getGroupsForUser(), ilCalendarAppointmentPanelGUI\getHTML(), ilSoapSCORMAdministration\getIMSManifestXML(), ilContainerSortingSettings\getInheritedSettings(), ilAwarenessUserProviderMemberships\getInitialUserSet(), assQuestion\getInstances(), ilAdvancedMDValues\getInstancesForObjectId(), ilStudyProgrammeUserAssignment\getInstancesOfUser(), ilObjectBadgeTableGUI\getItems(), ilLPStatusEvent\getMembers(), ilObjectLP\getMembers(), ilLPStatusCollection\getMembers(), ilNotification\getNotificationsForObject(), ilPDSelectedItemsBlockMembershipsProvider\getObjectsByMembership(), ilOrgUnitType\getOrgUnits(), ilTestQuestionBrowserTableGUI\getQuestionParentObjIds(), ilTestQuestionSetConfig\getQuestionPoolPathString(), ilAppointmentPresentationGUI\getReadableRefIds(), ilSoapObjectAdministration\getRefIdsByImportId(), ilSoapObjectAdministration\getRefIdsByObjId(), ilForumCronNotification\getRefIdsByObjId(), ilObjTestDynamicQuestionSetConfig\getSourceQuestionPoolLink(), ilObjTestDynamicQuestionSetConfig\getSourceQuestionPoolRefIds(), ilStudyProgrammeUserProgress\getStudyProgramme(), ilStudyProgrammeUserAssignment\getStudyProgramme(), ilTrQuery\getSubItemsStatusForUser(), ilSoapTestAdministration\getTestResults(), ilObjForumNotificationDataProvider\getThreadNotificationRecipients(), ilGlossaryExporter\getXmlExportTailDependencies(), ilSurveyQuestionPoolExporter\getXmlRepresentation(), ilContainerReferenceExporter\getXmlRepresentation(), ilGroupExporter\getXmlRepresentation(), ilCategoryExporter\getXmlRepresentation(), ilContainerExporter\getXmlRepresentation(), ilCourseExporter\getXmlRepresentation(), ilRemoteObjectBase\handleDelete(), ilTaggingAppEventListener\handleEvent(), ilSkillAppEventListener\handleEvent(), ilTrackingAppEventListener\handleEvent(), ilObjectLP\handleMove(), ilRepUtilGUI\handleMultiReferences(), ilECSCmsTreeSynchronizer\handleTreeUpdate(), ilECSCategoryMapping\handleUpdate(), ilLTIAppEventListener\handleUpdateStatus(), ilNotification\hasNotification(), ilParticipants\hasParticipantListAccess(), ilSoapTestAdministration\hasWritePermissionForTest(), ilLMPresentationGUI\ilPage(), ilSurveySyncTableGUI\importData(), ilItemGroupDataSet\importRecord(), ilSessionDataSet\importRecord(), ilGroupImporter\importXmlRepresentation(), ilCategoryImporter\importXmlRepresentation(), ilCourseImporter\importXmlRepresentation(), ilContainerReferenceImporter\importXmlRepresentation(), ilObjPollGUI\initEditCustomForm(), ilObjPortfolioTemplateGUI\initEditCustomForm(), ilContainerNewsSettingsGUI\initForm(), ilExSubmissionObjectGUI\initGUIForSubmit(), ilObjGroupReferenceListGUI\initItem(), ilObjCourseReferenceListGUI\initItem(), ilObjCategoryReferenceListGUI\initItem(), ilObjectOwnershipManagementTableGUI\initItems(), ilObjSurveyGUI\initPropertiesForm(), ilObjectServiceSettingsGUI\initServiceSettingsForm(), ilSoapCourseAdministration\isAssignedToCourse(), ilSoapGroupAdministration\isAssignedToGroup(), ilLOTestQuestionAdapter\isQualifiedStartRun(), ilAssQuestionSkillAssignmentsGUI\isSyncOriginalPossibleAndAllowed(), ilGlossaryPresentationGUI\listDefinitions(), ilMailSearchCoursesGUI\mailCourses(), ilMailSearchGroupsGUI\mailGroups(), ilPCContentInclude\modifyPageContentPostXsl(), ilObjTestListGUI\modifyTitleLink(), ilECSReleasedContentTableGUI\parse(), ilCalendarCategoryTableGUI\parse(), ilConsultationHoursTableGUI\parse(), ilCalendarManageTableGUI\parse(), ilSearchResultPresentation\parseResultReferences(), ilLPCollectionOfRepositoryObjects\read(), ilContainerReference\read(), ilCalendarCategoryGUI\readPermissions(), ilCalendarCategories\readSelectedCategories(), ilSoapWebLinkAdministration\readWebLink(), ilSoapObjectAdministration\removeFromSystemByImportId(), ilPDTaggingBlockGUI\removeTagsWithoutAccess(), ilMailGroupAddressType\resolve(), ilObjUserGUI\roleassignmentObject(), ilContainerNewsSettingsGUI\save(), ilAccountRegistrationGUI\saveForm(), ilTrQuery\searchObjects(), ilSystemNotification\sendMail(), ilMembershipCronMinMembers\sendMessage(), ilNote\sendNotifications(), ilObjectCopyCourseGroupSelectionTableGUI\setObjects(), ilObjStudyProgramme\setProgressesCompletedFor(), ilCalendarAppointmentGUI\showInfoScreen(), ilMailSearchGroupsGUI\showMembers(), ilPDTaggingBlockGUI\showResourcesForTag(), ilPageEditorGUI\showSnippetInfo(), ilNoteGUI\showTargets(), ilECSCmsTreeSynchronizer\syncCategory(), SurveyQuestionGUI\syncCopies(), ilECSCourseCreationHandler\syncNodeToTop(), ilObjectTest\testObjectReference(), ilObjectTest\testSetGetLookup(), ilObjGroup\translateViewMode(), ilStudyProgrammeType\updateAssignedStudyProgrammesIcons(), ilSoapCourseAdministration\updateCourse(), ilECSCourseCreationHandler\updateCourseData(), ilSoapExerciseAdministration\updateExercise(), ilSoapFileAdministration\updateFile(), ilSoapObjectAdministration\updateObjects(), ilECSCourseCreationHandler\updateParallelCourses(), ilECSCourseCreationHandler\updateParallelGroups(), ilObjectServiceSettingsGUI\updateServiceSettingsForm(), and ilSoapWebLinkAdministration\updateWebLink().

911  {
912  global $DIC;
913 
914  $ilDB = $DIC->database();
915 
916  $query = "SELECT * FROM object_reference WHERE obj_id = " .
917  $ilDB->quote($a_id, 'integer');
918 
919  $res = $ilDB->query($query);
920  $ref = array();
921  while ($obj_rec = $ilDB->fetchAssoc($res)) {
922  $ref[$obj_rec["ref_id"]] = $obj_rec["ref_id"];
923  }
924 
925  return $ref;
926  }
global $DIC
Definition: saml.php:7
foreach($_POST as $key=> $value) $res
$query
Create styles array
The data for the language used.
global $ilDB
+ Here is the caller graph for this function:

◆ _getIcon()

static ilObject::_getIcon (   $a_obj_id = "",
  $a_size = "big",
  $a_type = "",
  $a_offline = false 
)
static

Get icon for repository item.

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

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

References $a_type, $DIC, $ilSetting, $location, $objDefinition, ilContainer\_getContainerDirectory(), ilContainer\_lookupContainerSetting(), _lookupType(), array, and ilUtil\getImagePath().

Referenced by ilContainerStartObjectsGUI\askDeleteStarterObject(), ilObjUserFolderGUI\confirmDeleteExportFileObject(), ilObjForumGUI\confirmDeleteThreadDraftsObject(), ilRepUtilGUI\confirmRemoveFromSystemObject(), ilPDSelectedItemsBlockGUI\confirmRemoveObject(), ilObjStudyProgrammeTreeGUI\delete(), ilObject2GUI\deleteConfirmation(), ilObjFileGUI\deleteVersions(), ilObjectPluginGUI\executeCommand(), ilRegistrationGUI\fillMembershipLimitation(), ilObjClipboardTableGUI\fillRow(), ilSubItemSelectionTableGUI\fillRow(), ilExportSelectionTableGUI\fillRow(), ilLPCollectionSettingsTableGUI\fillRow(), ilTrashTableGUI\fillRow(), ilSessionMaterialsTableGUI\fillRow(), ilSkillLevelResourcesTableGUI\fillRow(), ilRoleDesktopItemsTableGUI\fillRow(), ilItemGroupItemsTableGUI\fillRow(), ilCourseObjectiveMaterialAssignmentTableGUI\fillRow(), ilSearchResultTableGUI\fillRow(), ilObjectOwnershipManagementTableGUI\fillRow(), ilCourseObjectiveQuestionAssignmentTableGUI\fillRow(), ilCourseObjectivesTableGUI\fillRow(), ilSkillLevelTableGUI\fillRow(), ilObjectCopySelectionTableGUI\fillRow(), ilBadgePersonalTableGUI\fillRow(), ilAdminSubItemsTableGUI\fillRow(), ilLPObjectStatisticsDailyTableGUI\fillRow(), ilModulesTableGUI\fillRow(), ilLPObjectStatisticsTableGUI\fillRow(), ilLPProgressTableGUI\fillRow(), ilBadgeUserTableGUI\fillRow(), ilTrUserObjectsPropsTableGUI\fillRow(), ilWorkspaceShareTableGUI\fillRow(), ilLPObjectStatisticsLPTableGUI\fillRow(), ilNewsForContextBlockGUI\fillRow(), ilTrSummaryTableGUI\fillRow(), ilECSNodeMappingCmsExplorer\formatHeader(), ilECSNodeMappingLocalExplorer\formatHeader(), ilWorkspaceExplorer\formatHeader(), ilPasteIntoMultipleItemsExplorer\formatHeader(), ilRepositoryExplorer\formatHeader(), ilPasteIntoMultipleItemsExplorer\formatObject(), ilAdministrationGUI\getDropDown(), ilNavigationHistoryGUI\getHTML(), ilLocatorGUI\getHTML(), ilObjectAddNewItemGUI\getHTML(), ilTaggingGUI\getHTML(), ilStudyProgrammeProgressListGUI\getIconPath(), ilAdministrationExplorer\getImage(), ilRepositoryExplorer\getImage(), ilUtil\getImageTagByType(), ilContainerContentGUI\getIntroduction(), ilPDSelectedItemsBlockSelectedItemsViewGUI\getIntroductionHtml(), ilPDSelectedItemsBlockMembershipsViewGUI\getIntroductionHtml(), ilObjectBadgeTableGUI\getItems(), ilLPObjectStatisticsTypesTableGUI\getItems(), ilOnScreenChatMenuGUI\getMainMenuHTML(), ilLTIViewGUI\getNavEntries(), ilMaterialExplorer\getNodeIcon(), ilOrgUnitExplorerGUI\getNodeIcon(), ilAdministrationExplorerGUI\getNodeIcon(), ilRepositoryExplorerGUI\getNodeIcon(), ilRepositorySelectorExplorerGUI\getNodeIcon(), ilForumExplorerGUI\getNodeIcon(), ilObjStudyProgrammeTreeExplorerGUI\getNodeIcon(), ilNoteGUI\getNoteListHTML(), ilCourseStartObjectsTableGUI\getPossibleObjects(), ilContainerStartObjectsTableGUI\getPossibleObjects(), ilTrMatrixTableGUI\getSelectableColumns(), ilCourseStartObjectsTableGUI\getStartObjects(), ilContainerStartObjectsTableGUI\getStartObjects(), ilUtil\getTypeIconPath(), ilObjectListGUI\insertIconsAndCheckboxes(), ilPCResourcesGUI\insertResourcesIntoPageContent(), ilSearchBaseGUI\prepareOutput(), ilDragDropFileInputGUI\render(), ilNewsTimelineItemGUI\render(), ilMainMenuGUI\renderEntry(), ilBadgeRenderer\renderModal(), ilConditionHandlerTableGUI\setConditions(), ilObjectGUI\setTitleAndDescription(), ilContainerGUI\setTitleAndDescription(), ilRepUtilGUI\showDeleteConfirmation(), ilNewsForContextBlockGUI\showNews(), ilNoteGUI\showTargets(), and ilRepositoryGUI\showTree().

1919  {
1920  global $DIC;
1921 
1922  $ilSetting = $DIC->settings();
1923  $objDefinition = $DIC["objDefinition"];
1924 
1925  if ($a_obj_id == "" && $a_type == "") {
1926  return "";
1927  }
1928 
1929  if ($a_type == "") {
1930  $a_type = ilObject::_lookupType($a_obj_id);
1931  }
1932 
1933  if ($a_size == "") {
1934  $a_size = "big";
1935  }
1936 
1937  if ($ilSetting->get("custom_icons") &&
1938  in_array($a_type, array("cat","grp","crs", "root", "fold", "prg"))) {
1939  require_once("./Services/Container/classes/class.ilContainer.php");
1940  if (ilContainer::_lookupContainerSetting($a_obj_id, "icon_custom")) {
1941  $cont_dir = ilContainer::_getContainerDirectory($a_obj_id);
1942 
1943  $file_name = $cont_dir . "/icon_custom.svg";
1944  if (is_file($file_name)) {
1945  // prevent caching
1946  return $file_name . "?tmp=" . filemtime($file_name);
1947  }
1948  }
1949  }
1950 
1951  if (!$a_offline) {
1952  if ($objDefinition->isPluginTypeName($a_type)) {
1953  if ($objDefinition->getClassName($a_type) != "") {
1954  $class_name = "il" . $objDefinition->getClassName($a_type) . 'Plugin';
1955  $location = $objDefinition->getLocation($a_type);
1956  if (is_file($location . "/class." . $class_name . ".php")) {
1957  include_once($location . "/class." . $class_name . ".php");
1958  return call_user_func(array($class_name, "_getIcon"), $a_type, $a_size, $a_obj_id);
1959  }
1960  }
1961  return ilUtil::getImagePath("icon_cmps.svg");
1962  }
1963 
1964  return ilUtil::getImagePath("icon_" . $a_type . ".svg");
1965  } else {
1966  return "./images/icon_" . $a_type . ".svg";
1967  }
1968  }
static _getContainerDirectory($a_id)
Get the container directory.
global $DIC
Definition: saml.php:7
$location
Definition: buildRTE.php:44
$a_type
Definition: workflow.php:92
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
Create styles array
The data for the language used.
static _lookupType($a_id, $a_reference=false)
lookup object type
global $ilSetting
Definition: privfeed.php:17
static _lookupContainerSetting($a_id, $a_keyword, $a_default_value=null)
Lookup a container setting.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _getIdForImportId()

static ilObject::_getIdForImportId (   $a_import_id)
static

get current object id for import id (static)

Parameters
int$a_import_idimport id
Returns
int id

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

References $DIC, and $ilDB.

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

888  {
889  global $DIC;
890 
891  $ilDB = $DIC->database();
892 
893  $ilDB->setLimit(1, 0);
894  $q = "SELECT * FROM object_data WHERE import_id = " . $ilDB->quote($a_import_id, "text") .
895  " ORDER BY create_date DESC";
896  $obj_set = $ilDB->query($q);
897 
898  if ($obj_rec = $ilDB->fetchAssoc($obj_set)) {
899  return $obj_rec["obj_id"];
900  } else {
901  return 0;
902  }
903  }
global $DIC
Definition: saml.php:7
global $ilDB
+ Here is the caller graph for this function:

◆ _getIdsForTitle()

static ilObject::_getIdsForTitle (   $title,
  $type = '',
  $partialmatch = false 
)
static

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

References $DIC, $ilDB, $query, $result, $row, $title, $type, and array.

Referenced by ilTestEvaluationData\getParticipants(), ilRoleXmlImporter\importSimpleXml(), ilObjRoleGUI\mailToRoleObject(), and ilObjectTest\testSetGetLookup().

960  {
961  global $DIC;
962 
963  $ilDB = $DIC->database();
964 
965  $query = (!$partialmatch)
966  ? "SELECT obj_id FROM object_data WHERE title = " . $ilDB->quote($title, "text")
967  : "SELECT obj_id FROM object_data WHERE " . $ilDB->like("title", "text", '%' . $title . '%');
968  if ($type != '') {
969  $query .= " AND type = " . $ilDB->quote($type, "text");
970  }
971 
972  $result = $ilDB->query($query);
973 
974  $object_ids = array();
975  while ($row = $ilDB->fetchAssoc($result)) {
976  $object_ids[] = $row['obj_id'];
977  }
978 
979  return is_array($object_ids) ? $object_ids : array();
980  }
$result
global $DIC
Definition: saml.php:7
$query
Create styles array
The data for the language used.
global $ilDB
+ Here is the caller graph for this function:

◆ _getLastUpdateOfObjects()

static ilObject::_getLastUpdateOfObjects (   $a_objs)
static

Get last update for a set of media objects.

Parameters
array

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

References $DIC, $ilDB, and array.

Referenced by ilPageObject\getLastUpdateOfIncludedElements().

1020  {
1021  global $DIC;
1022 
1023  $ilDB = $DIC->database();
1024 
1025  if (!is_array($a_objs)) {
1026  $a_objs = array($a_objs);
1027  }
1028  $types = array();
1029  $set = $ilDB->query("SELECT max(last_update) as last_update FROM object_data " .
1030  "WHERE " . $ilDB->in("obj_id", $a_objs, false, "integer") . " ");
1031  $rec = $ilDB->fetchAssoc($set);
1032 
1033  return ($rec["last_update"]);
1034  }
global $DIC
Definition: saml.php:7
Create styles array
The data for the language used.
global $ilDB
+ Here is the caller graph for this function:

◆ _getObjectsByType()

static ilObject::_getObjectsByType (   $a_obj_type = "",
  $a_owner = "" 
)
static

Get objects by type.

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

References $DIC, $ilDB, $r, $row, and array.

Referenced by ilLanguage\_getInstalledLanguages(), ilObjUserTracking\_hasLearningProgressOtherUsers(), ilObjLanguageFolderGUI\confirmRefreshObject(), ilLPCronObjectStatistics\gatherCourseLPData(), ilChatroomTabGUIFactory\getAdminTabsForCommand(), ilObjPortfolioTemplate\getAvailablePortfolioTemplates(), ilObjLanguage\getInstalledLanguages(), ilObjLanguageFolder\getLanguages(), ilTermsOfServiceAcceptanceHistoryTableGUI\initFilter(), ilObjLanguage\refreshAll(), and ilObjectTest\testSetGetLookup().

1657  {
1658  global $DIC;
1659 
1660  $ilDB = $DIC->database();
1661 
1662  $order = " ORDER BY title";
1663 
1664  // where clause
1665  if ($a_obj_type) {
1666  $where_clause = "WHERE type = " .
1667  $ilDB->quote($a_obj_type, "text");
1668 
1669  if ($a_owner != "") {
1670  $where_clause.= " AND owner = " . $ilDB->quote($a_owner, "integer");
1671  }
1672  }
1673 
1674  $q = "SELECT * FROM object_data " . $where_clause . $order;
1675  $r = $ilDB->query($q);
1676 
1677  $arr = array();
1678  if ($ilDB->numRows($r) > 0) {
1679  while ($row = $ilDB->fetchAssoc($r)) {
1680  $row["desc"] = $row["description"];
1681  $arr[$row["obj_id"]] = $row;
1682  }
1683  }
1684 
1685  return $arr;
1686  }
global $DIC
Definition: saml.php:7
$r
Definition: example_031.php:79
Create styles array
The data for the language used.
global $ilDB
+ Here is the caller graph for this function:

◆ _getObjectsDataForType()

static ilObject::_getObjectsDataForType (   $a_type,
  $a_omit_trash = false 
)
static

get all objects of a certain type

Parameters
string$a_typedesired object type
boolean$a_omit_trashomit objects, that are in trash only (default: false)
Returns
array array of object data arrays ("id", "title", "type", "description")

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

References $a_type, $DIC, $ilDB, _hasUntrashedReference(), and array.

Referenced by ilObjStyleSheet\_addMissingStyleClassesToAllStyles().

1268  {
1269  global $DIC;
1270 
1271  $ilDB = $DIC->database();
1272 
1273  $q = "SELECT * FROM object_data WHERE type = " . $ilDB->quote($a_type, "text");
1274  $obj_set = $ilDB->query($q);
1275 
1276  $objects = array();
1277  while ($obj_rec = $ilDB->fetchAssoc($obj_set)) {
1278  if ((!$a_omit_trash) || ilObject::_hasUntrashedReference($obj_rec["obj_id"])) {
1279  $objects[$obj_rec["title"] . "." . $obj_rec["obj_id"]] = array("id" => $obj_rec["obj_id"],
1280  "type" => $obj_rec["type"], "title" => $obj_rec["title"],
1281  "description" => $obj_rec["description"]);
1282  }
1283  }
1284  ksort($objects);
1285  return $objects;
1286  }
static _hasUntrashedReference($a_obj_id)
checks wether an object has at least one reference that is not in trash
global $DIC
Definition: saml.php:7
$a_type
Definition: workflow.php:92
Create styles array
The data for the language used.
global $ilDB
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _hasUntrashedReference()

static ilObject::_hasUntrashedReference (   $a_obj_id)
static

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

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

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

Referenced by ilLMObject\_getAllObjectsForImportId(), ilGlossaryTerm\_getIdForImportId(), ilSCORM2004Node\_getIdForImportId(), ilLMObject\_getIdForImportId(), _getObjectsDataForType(), ilObjSurveyQuestionPool\_isWriteable(), ilObjQuestionPool\_isWriteable(), ilOrgUnitImporter\buildRef(), ilMailSearchGroupsGUI\cancel(), ilMailSearchCoursesGUI\cancel(), ilChatroomAdminViewGUI\forcePublicRoom(), ilSoapObjectAdministration\getObjIdsByRefIds(), ilObjSAHSLearningModule\getScormModulesForGlossary(), ilTaggingAppEventListener\handleEvent(), ilOrgUnitSimpleImport\simpleImportElement(), and ilObjectTest\testTreeTrash().

1232  {
1233  $ref_ids = ilObject::_getAllReferences($a_obj_id);
1234  foreach ($ref_ids as $ref_id) {
1235  if (!ilObject::_isInTrash($ref_id)) {
1236  return true;
1237  }
1238  }
1239 
1240  return false;
1241  }
static _isInTrash($a_ref_id)
checks wether object is in trash
static _getAllReferences($a_id)
get all reference ids of object
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _isInTrash()

static ilObject::_isInTrash (   $a_ref_id)
static

checks wether object is in trash

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

References $DIC, and $tree.

Referenced by _hasUntrashedReference(), ilSoapCourseAdministration\addCourse(), ilSoapExerciseAdministration\addExercise(), ilSoapFileAdministration\addFile(), ilSoapGroupAdministration\addGroup(), ilSoapRBACAdministration\addRole(), ilSoapRBACAdministration\addRoleFromTemplate(), ilOrgUnitImporter\buildRef(), ilSoapAdministration\checkObjectAccess(), ilSoapWebLinkAdministration\createWebLink(), ilObjFolder\downloadFolder(), ilContainerGUI\downloadMultipleObjects(), ilBasicSkillGUI\editLevelTrigger(), ilSoapDataCollectionAdministration\exportDataCollectionContent(), ilSoapCourseAdministration\getCoursesForUser(), ilSoapExerciseAdministration\getExerciseXML(), ilSoapFileAdministration\getFileXML(), ilSoapGroupAdministration\getGroup(), ilSoapGroupAdministration\getGroupsForUser(), ilSoapSCORMAdministration\getIMSManifestXML(), ilSoapObjectAdministration\getObjectByReference(), ilSoapRBACAdministration\getObjectTreeOperations(), ilOrgUnitType\getOrgUnits(), ilSoapObjectAdministration\getPathForRefId(), ilSoapTestAdministration\getTestResults(), ilSoapObjectAdministration\getXMLTree(), ilCopyWizardSettingsXMLParser\handlerBeginTag(), ilSoapSCORMAdministration\hasSCORMCertificate(), ilSoapObjectAdministration\moveObject(), ilSoapWebLinkAdministration\readWebLink(), ilObjFolder\recurseFolder(), ilContainerGUI\recurseFolder(), ilSoapTestAdministration\removeTestResults(), ilObjectTest\testTreeTrash(), ilSoapExerciseAdministration\updateExercise(), ilSoapFileAdministration\updateFile(), ilSoapGroupAdministration\updateGroup(), ilSoapObjectAdministration\updateObjects(), ilSoapWebLinkAdministration\updateWebLink(), and ilFolderDownloadBackgroundTaskHandler\validateAccess().

1220  {
1221  global $DIC;
1222 
1223  $tree = $DIC->repositoryTree();
1224 
1225  return $tree->isSaved($a_ref_id);
1226  }
global $DIC
Definition: saml.php:7
+ Here is the caller graph for this function:

◆ _lookupCreationDate()

static ilObject::_lookupCreationDate (   $a_id)
static

Lookup creation date.

Parameters

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

References $DIC, and $ilDB.

Referenced by ilSearchResultTableGUI\fillRow(), and ilObjHelpSettings\getHelpModules().

2144  {
2145  global $DIC;
2146 
2147  $ilDB = $DIC->database();
2148 
2149  $set = $ilDB->query("SELECT create_date FROM object_data " .
2150  " WHERE obj_id = " . $ilDB->quote($a_id, "integer"));
2151  $rec = $ilDB->fetchAssoc($set);
2152  return $rec["create_date"];
2153  }
global $DIC
Definition: saml.php:7
global $ilDB
+ Here is the caller graph for this function:

◆ _lookupDeletedDate()

static ilObject::_lookupDeletedDate (   $a_ref_id)
static

only called in ilObjectGUI::insertSavedNodes

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

References $DIC, $ilDB, and $query.

Referenced by ilObjectTest\testObjectReference(), and ilObjectTest\testSetGetLookup().

1097  {
1098  global $DIC;
1099 
1100  $ilDB = $DIC->database();
1101 
1102  $query = "SELECT deleted FROM object_reference" .
1103  " WHERE ref_id = " . $ilDB->quote($a_ref_id, "integer");
1104  $set = $ilDB->query($query);
1105  $rec = $ilDB->fetchAssoc($set);
1106 
1107  return $rec["deleted"];
1108  }
global $DIC
Definition: saml.php:7
$query
global $ilDB
+ Here is the caller graph for this function:

◆ _lookupDescription()

static ilObject::_lookupDescription (   $a_id)
static

lookup object description

Parameters
int$a_idobject id

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

References $DIC.

Referenced by ilLPStatusEvent\_getStatusInfo(), ilObjUser\_lookupDesktopItems(), ilDidacticTemplateLocalRoleAction\apply(), ilECSSettingsGUI\exportImported(), ilECSSettingsGUI\exportReleased(), ilTaxonomyListTableGUI\fillRow(), ilObjTest\getGroupData(), ilCourseGroupingAssignmentTableGUI\getItems(), ilObjCategoryGUI\getObjectMetadataGUI(), ilObjTest\getRoleData(), ilCourseObjectivesGUI\initFormLimits(), ilObjGroupReferenceListGUI\initItem(), ilObjCourseReferenceListGUI\initItem(), ilObjCategoryReferenceListGUI\initItem(), ilSearchResultPresentation\lookupDescription(), ilRoleSelectionTableGUI\parse(), ilCalendarSharedRoleListTableGUI\parse(), ilObjectCopyProgressTableGUI\parse(), ilCalendarSharedListTableGUI\parse(), ilCourseObjectiveQuestionsTableGUI\parse(), ilRepositoryObjectResultTableGUI\parseObjectIds(), ilObjectCopySearchResultTableGUI\parseSearchResults(), ilDclRecordEditGUI\parseSearchResults(), ilScorm2004DataSet\readData(), ilMediaObjectDataSet\readData(), ilConditionHandlerTableGUI\setConditions(), ilObjTaxonomyGUI\setTabs(), ilPDTaggingBlockGUI\showResourcesForTag(), ilObjectTest\testSetGetLookup(), ilSCORMOfflineMode\tracking2sop(), and ilRoleXmlExport\writeRole().

988  {
989  global $DIC;
990 
991  $ilObjDataCache = $DIC["ilObjDataCache"];
992 
993  return $ilObjDataCache->lookupDescription($a_id);
994  }
global $DIC
Definition: saml.php:7
+ Here is the caller graph for this function:

◆ _lookupImportId()

static ilObject::_lookupImportId (   $a_obj_id)
static

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

References $DIC, $ilDB, $query, $res, and $row.

Referenced by ilMediaObjectDataSet\readData(), and ilPageObject\resolveMediaAliases().

491  {
492  global $DIC;
493 
494  $ilDB = $DIC->database();
495 
496  $query = "SELECT import_id FROM object_data " .
497  "WHERE obj_id = " . $ilDB->quote($a_obj_id, "integer");
498  $res = $ilDB->query($query);
499  $row = $ilDB->fetchObject($res);
500  return $row->import_id;
501  }
global $DIC
Definition: saml.php:7
foreach($_POST as $key=> $value) $res
$query
global $ilDB
+ Here is the caller graph for this function:

◆ _lookupLastUpdate()

static ilObject::_lookupLastUpdate (   $a_id,
  $a_as_string = false 
)
static

lookup last update

Parameters
int$a_idobject id

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

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

Referenced by ilObjectTest\testSetGetLookup().

1002  {
1003  global $DIC;
1004 
1005  $ilObjDataCache = $DIC["ilObjDataCache"];
1006 
1007  if ($a_as_string) {
1008  return ilDatePresentation::formatDate(new ilDateTime($ilObjDataCache->lookupLastUpdate($a_id), IL_CAL_DATETIME));
1009  } else {
1010  return $ilObjDataCache->lookupLastUpdate($a_id);
1011  }
1012  }
const IL_CAL_DATETIME
global $DIC
Definition: saml.php:7
static formatDate(ilDateTime $date, $a_skip_day=false, $a_include_wd=false)
Format a date public.
Date and time handling
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _lookupObjectId()

static ilObject::_lookupObjectId (   $a_ref_id)
static

lookup object id

Parameters
int$a_idobject id

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

References $DIC.

Referenced by ilMailMemberSearchTableGUI\__construct(), ilGlossaryAdvMetaDataAdapter\__construct(), ilLOXmlWriter\__construct(), ilSCORMOfflineMode\__construct(), ilObject2GUI\__construct(), ilGlossaryTermGUI\__construct(), ilSCORM13Player\__construct(), ilObjSurveyQuestionPool\_getAvailableQuestionpools(), ilObjForumGUI\_goto(), ilAppointmentPresentationGUI\addContainerInfo(), ilModulesCourseTasks\assignAdminsToCourse(), ilModulesGroupTasks\assignAdminsToGroup(), ilModulesCourseTasks\assignLearnersToCourse(), ilModulesGroupTasks\assignMembersToGroup(), ilModulesCourseTasks\assignTutorsToCourse(), ilCtrl\checkLPSettingsForward(), ilContainerSorting\cloneSorting(), ilPDSelectedItemsBlockGUI\confirmRemoveObject(), ilObjStudyProgrammeTreeGUI\createNewLeaf(), ilObjPortfolioGUI\createPortfolioFromAssignment(), ilExSubmissionObjectGUI\createPortfolioFromAssignmentObject(), ilObjStudyProgrammeTreeGUI\delete(), ilContainerGUI\editPageContentObject(), ilSAHSEditGUI\executeCommand(), ilSAHSPresentationGUI\executeCommand(), ilSCORMOfflineModeGUI\executeCommand(), ilObjSAHSLearningModuleGUI\exportModule(), ilBaseViewGUI\findEffectiveRefId(), ilLTIViewGUI\findEffectiveRefId(), ilSoapExerciseAdministration\getExerciseXML(), ilOrgUnitExporter\getExternalId(), ilSoapFileAdministration\getFileXML(), ilSoapSCORMAdministration\getIMSManifestXML(), ilNotification\getNotificationsForObject(), ilSoapObjectAdministration\getObjIdsByRefIds(), ilTrQuery\getParticipantsForObject(), ilLPCollectionOfLMChapters\getPossibleItems(), ilSoapSCORMAdministration\getSCORMCompletionStatus(), ilTrQuery\getSummaryDataForObject(), ilGlossaryTerm\getTermList(), ilSoapTestAdministration\getTestResults(), ilTrQuery\getUserDataForObject(), ilBadgeHandler\getUserIds(), ilTrQuery\getUserObjectMatrix(), ilMembershipRegistrationCodeUtils\handleCode(), ilTestExpressPageObjectGUI\handleToolbarCommand(), ilSoapSCORMAdministration\hasSCORMCertificate(), ilLTIViewGUI\initGUI(), ilObjContentObjectGUI\initMenuEntryForm(), ilRepositoryExplorer\isClickable(), ilRepositoryExplorerGUI\isNodeClickable(), ilObjAssessmentFolderGUI\logAdminObject(), ilObjForum\lookupStatisticsByRefId(), assTextQuestionGUI\magicAfterTestOutput(), ilForum\moveThreads(), ilObjSCORMLearningModuleGUI\newModuleVersion(), ilRbacLogTableGUI\parseChangesFaPa(), ilModulesCourseTasks\readAdminsFromCourse(), ilModulesGroupTasks\readAdminsFromGroup(), ilModulesCourseTasks\readLearnersFromCourse(), ilModulesGroupTasks\readMembersFromGroup(), ilModulesCourseTasks\readTutorsFromCourse(), ilSoapWebLinkAdministration\readWebLink(), ilObjGlossary\removeOfflineGlossaries(), ilNewsTimelineGUI\save(), ilLPTableBaseGUI\sendMail(), ilSAHSPresentationGUI\setInfoTabs(), ilLPListOfProgressGUI\show(), ilObjStudyProgrammeTreeGUI\storeTreeOrder(), ilObjectTest\testSetGetLookup(), ilNewsTimelineGUI\update(), ilSoapExerciseAdministration\updateExercise(), ilSoapFileAdministration\updateFile(), ilSoapObjectAdministration\updateObjects(), and ilSoapWebLinkAdministration\updateWebLink().

1249  {
1250  global $DIC;
1251 
1252  $ilObjDataCache = $DIC["ilObjDataCache"];
1253 
1254  return (int) $ilObjDataCache->lookupObjId($a_ref_id);
1255  }
global $DIC
Definition: saml.php:7
+ Here is the caller graph for this function:

◆ _lookupObjId()

static ilObject::_lookupObjId (   $a_id)
static

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

References $DIC.

Referenced by ilTrSummaryTableGUI\__construct(), ilMainMenuSearchGUI\__construct(), ilSessionParticipants\__construct(), ilTrMatrixTableGUI\__construct(), ilObjectFeedWriter\__construct(), ilUserFeedWriter\__construct(), ilClassificationBlockGUI\__construct(), ilTrObjectUsersPropsTableGUI\__construct(), ilObjNotificationSettingsGUI\__construct(), ilAdvancedMDSettingsGUI\__construct(), ilCalendarSelectionBlockGUI\__construct(), LTI\ilMainMenuGUI\__construct(), ilCopySelfAssQuestionTableGUI\__construct(), ilObjRoleGUI\__construct(), ilSessionOverviewGUI\__construct(), ilItemGroupItems\__construct(), ilAuthShibbolethSettingsGUI\__construct(), ilPreviewGUI\__construct(), ilRepositoryExplorerGUI\__construct(), ilBadgeManagementGUI\__construct(), ilRegistrationGUI\__construct(), ilLMTracker\__construct(), ilCalendarVisibility\__construct(), ilParticipants\__construct(), ilObjForumNotificationDataProvider\__construct(), ilTimingCache\__construct(), ilCalendarCategoryGUI\__construct(), ilInternalLinkGUI\__construct(), ilContainerContentGUI\__forwardToColumnGUI(), ilCourseContentGUI\__forwardToColumnGUI(), ilLearningProgressGUI\__getNextClass(), ilCourseContentGUI\__renderItem(), ilCourseContentGUI\__renderUserItem(), ilLearningProgressBaseGUI\__showEditUser(), ilLinkChecker\__validateLinks(), ilStartUpGUI\_checkGoto(), ilCourseObjectiveMaterials\_getAssignableMaterials(), ilObjQuestionPool\_getAvailableQuestionpools(), ilObjTest\_getAvailableTests(), ilLPStatusCollection\_getInProgress(), ilObjContentObjectAccess\_getLastAccessedPage(), ilNewsItem\_getNewsItemsOfUser(), ilAdvancedMDRecord\_getSelectedRecordsByObject(), ilLPStatusEvent\_getStatusInfo(), ilObjChatroomGUI\_goto(), ilObjGroupReferenceGUI\_goto(), ilObjCourseReferenceGUI\_goto(), ilObjCategoryReferenceGUI\_goto(), ilObjItemGroupGUI\_goto(), ilObjSessionGUI\_goto(), ilRemoteObjectBaseGUI\_goto(), ilObjectPluginGUI\_goto(), ilObjMailGUI\_goto(), ilObjPollGUI\_goto(), ilObjExerciseGUI\_goto(), ilObjFileBasedLMGUI\_goto(), ilObjSAHSLearningModuleGUI\_goto(), ilObjFileGUI\_goto(), ilObjSurveyQuestionPoolGUI\_goto(), ilObjWikiGUI\_goto(), ilObjForumGUI\_goto(), ilObjBookingPoolGUI\_goto(), ilObjGroupGUI\_goto(), ilObjMediaCastGUI\_goto(), ilObjGlossaryGUI\_goto(), ilObjCategoryGUI\_goto(), ilObjLinkResourceGUI\_goto(), ilObjMediaPoolGUI\_goto(), ilObjQuestionPoolGUI\_goto(), ilObjSurveyGUI\_goto(), ilObjSystemFolderGUI\_goto(), ilObjUserFolderGUI\_goto(), ilObjCourseGUI\_goto(), ilObjContentObjectGUI\_goto(), ilObjTestGUI\_goto(), ilContainerReferenceAccess\_isAccessible(), ilSessionParticipants\_isParticipant(), ilChangeEvent\_recordReadEvent(), ilObjectActivation\addAdditionalSubItemInformation(), ilObjRoleTemplateGUI\addAdminLocatorItems(), ilObjRoleGUI\addAdminLocatorItems(), ilObjStyleSheetGUI\addAdminLocatorItems(), ilObjUserGUI\addAdminLocatorItems(), ilNavigationHistory\addItem(), ilObjContentObjectGUI\addLocations(), ilForumModeratorsGUI\addModerator(), ilAppointmentPresentationGUI\addObjectLinks(), ilCalendarCategoryGUI\addReferenceLinks(), ilExportContainer\addSubitems(), ilContainerReferenceGUI\afterSave(), ilObjCategoryGUI\afterSave(), ilContainerStartObjectsGUI\askDeleteStarterObject(), ilSoapCourseAdministration\assignCourseMember(), ilSoapGroupAdministration\assignGroupMember(), ilRbacAdmin\assignUser(), ilTemplate\buildLoginTarget(), ilFolderDownloadBackgroundTaskHandler\calculateRecursive(), ilLearningProgressAccess\checkAccess(), ilAccess\checkAccessOfUser(), ilSurveyEvaluationGUI\checkAnonymizedEvaluationAccess(), ilChatroom\checkPermissions(), ilLOEditorStatus\checkTestOnline(), ilECSMappingSettingsGUI\cInitMappingForm(), ilLPCollectionOfMediaObjects\cloneCollection(), ilLPCollection\cloneCollection(), ilLPCollectionOfSCOs\cloneCollection(), ilLPCollectionOfRepositoryObjects\cloneCollection(), ilObjCategory\cloneDependencies(), ilObjCourse\cloneDependencies(), ilConditionHandler\cloneDependencies(), ilContainerSorting\cloneSorting(), ilAppointmentPresentationConsultationHoursGUI\collectPropertiesAndActions(), ilGroupAddToGroupActionGUI\confirmAddUser(), ilLOEditorGUI\confirmDeleteTest(), ilLOEditorGUI\confirmDeleteTests(), ilPDSelectedItemsBlockGUI\confirmedUnsubscribe(), ilBasicSkillGUI\confirmLevelResourcesRemoval(), ilRepUtilGUI\confirmRemoveFromSystemObject(), ilObjectCopyGUI\copyContainer(), ilContainerGUI\copyObject(), ilECSCourseCreationHandler\createCourseReferenceObjects(), ilGroupAddToGroupActionGUI\createGroup(), assQuestion\createNewQuestion(), ilECSCourseCreationHandler\createParallelCourse(), ilObjRole\createPermissionIntersection(), ilObjectRolePermissionTableGUI\createTooltip(), ilContainerGUI\cutObject(), ilRbacAdmin\deassignUser(), ilAdministrationCommandGUI\delete(), ilSoapCourseAdministration\deleteCourse(), ilObjRole\deleteLocalPolicies(), ilRepUtil\deleteObjects(), ilObjBlog\deliverRSS(), ilForumModeratorsGUI\detachModeratorRole(), ilLMEditorGUI\displayLocator(), ilECSMappingSettingsGUI\dMap(), ilECSCourseCreationHandler\doAttributeMapping(), ilLTIAppEventListener\doCronUpdate(), ilSCORMPresentationGUI\downloadCertificate(), ilPCResourcesGUI\edit(), ilLearningProgressGUI\editManual(), ilCourseContentGUI\editTimings(), ilCourseLPBadge\evaluate(), ilSoapCourseAdministration\excludeCourseMember(), ilSoapGroupAdministration\excludeGroupMember(), ilObjectPluginGUI\executeCommand(), ilWikiHandlerGUI\executeCommand(), ilWikiPageGUI\executeCommand(), ilSurveyEditorGUI\executeCopyQuestionsToPoolObject(), ilSurveyEditorGUI\executeCreateQuestionObject(), ilSkillProfileGUI\exportProfiles(), ilSkillTreeNodeGUI\exportSelectedNodes(), ilStudyProgrammeRepositorySearchGUI\fillAutoCompleteToolbar(), ilRepositorySearchGUI\fillAutoCompleteToolbar(), ilWikiImportantPagesBlockGUI\fillDataSection(), ilRegistrationGUI\fillMembershipLimitation(), ilSysStyleCatAssignmentTableGUI\fillRow(), ilExportSelectionTableGUI\fillRow(), ilAdvancedMDRecordTableGUI\fillRow(), ilECSImportedContentTableGUI\fillRow(), ilContentStylesTableGUI\fillRow(), ilLinksTableGUI\fillRow(), ilSkillLevelResourcesTableGUI\fillRow(), ilDidacticTemplateSettingsTableGUI\fillRow(), ilCourseObjectivesTableGUI\fillRow(), ilSkillLevelTableGUI\fillRow(), ilSystemStylesTableGUI\fillRow(), ilPDNewsTableGUI\fillRow(), ilObjectCopySelectionTableGUI\fillRow(), ilNewsForContextBlockGUI\fillRow(), ilUserTableGUI\fillRow(), ilObjectLP\findMembershipsByPath(), ilObjItemGroup\fixContainerItemGroupRefsAfterCloning(), ilChatroomAdminViewGUI\forcePublicRoom(), ilObjFolderGUI\forwardToTimingsView(), ilCourseObjectiveMaterialAssignmentTableGUI\getAllSubObjects(), ilContainerGUI\getAsynchItemListObject(), ilObjectGUI\getCenterColumnHTML(), ilRepositoryExplorerGUI\getChildsOfNode(), ilContainer\getCompleteDescriptions(), ilParticipants\getDefaultMemberRole(), ilScormMailTemplateLPContext\getDescription(), ilObjWikiGUI\getGotoLink(), ilObjTest\getGroupData(), ilHelp\getHelpLMId(), ilHelpMapping\getHelpSectionsForId(), ilADTInternalLinkPresentationBridge\getHTML(), ilNavigationHistoryGUI\getHTML(), ilFileUploadGUI\getHTML(), ilCalendarAppointmentPanelGUI\getHTML(), ilPathGUI\getHTML(), ilLocatorGUI\getHTML(), ilContainerSortingSettings\getInheritedSettings(), ilParticipants\getInstance(), ilFolderDownloadBackgroundTaskHandler\getInstanceFromTask(), ilCourseGroupingAssignmentTableGUI\getItems(), ilUserRoleStartingPointTableGUI\getItems(), ilBadgeUserTableGUI\getItems(), ilNavigationHistory\getItems(), ilTrSummaryTableGUI\getItems(), ilLMPageObjectGUI\getLinkXML(), ilGlossaryPresentationGUI\getLinkXML(), ilLMPresentationGUI\getLinkXML(), ilContainerObjectiveGUI\getMainContent(), ilImageMapEditorGUI\getMapAreaLinkString(), ilLPStatusEvent\getMembers(), ilObjectLP\getMembers(), ilLPStatusCollection\getMembers(), ilLTIViewGUI\getNavEntries(), ilNewsItem\getNewsForRefId(), ilMaterialExplorer\getNodeIcon(), ilOrgUnitExplorerGUI\getNodeIcon(), ilAdministrationExplorerGUI\getNodeIcon(), ilRepositoryExplorerGUI\getNodeIcon(), ilRepositorySelectorExplorerGUI\getNodeIcon(), ilObjStudyProgrammeTreeExplorerGUI\getNodeIcon(), ilObjSurvey\getNotificationTargetUserIds(), ilTrQuery\getObjectIds(), ilOrgUnitPermissionTableGUI\getObjId(), ilObjectRolePermissionTableGUI\getObjId(), ilObjectRoleTemplatePermissionTableGUI\getObjId(), ilBlogPostingGUI\getParentObjId(), ilMembershipNotifications\getParticipants(), ilObjSurvey\getQuestionblocksTable(), ilContainerContentGUI\getRightColumnHTML(), ilCourseContentGUI\getRightColumnHTML(), ilObjectGUI\getRightColumnHTML(), ilUserStartingPointGUI\getRoleStartingPointForm(), ilDclIliasReferenceRecordRepresentation\getSingleHTML(), ilUserUtil\getStartingPointAsUrl(), ilPersonalSkillsGUI\getSuggestedResources(), ilLOUtils\getTestResultLinkForUser(), ilRepositorySelector2InputGUI\getTitleForNodeId(), ilObjOrgUnitTree\getTitles(), ilLinkInputGUI\getTranslatedValue(), ilSoapUserAdministration\getUsersForContainer(), ilObjFolder\getViewMode(), ilItemGroupDataSet\getXmlRecord(), ilSessionDataSet\getXmlRecord(), ilECSCourseCreationHandler\handle(), ilLPListOfSettingsGUI\handleLPUsageInfo(), ilECSCategoryMapping\handleUpdate(), ilLOUtils\hasActiveRun(), hasAutoRating(), ilBasicSkill\hasRecentSelfEvaluation(), ilLMPresentationGUI\ilLocator(), ilObjSessionGUI\infoScreen(), ilObjectCopyGUI\init(), ilSubItemListGUI\init(), ilCourseLPBadgeGUI\initConfigForm(), ilObjSessionGUI\initContainer(), ilSessionParticipantsTableGUI\initFilter(), ilUserTableGUI\initFilter(), ilLOTestAssignmentForm\initForm(), ilCalendarAppointmentGUI\initForm(), ilConditionHandlerGUI\initFormCondition(), ilObjectActivationGUI\initFormEdit(), ilCourseObjectivesGUI\initFormRandom(), ilPersonalSettingsGUI\initGeneralSettingsForm(), ilCalendarCategories\initialize(), ilContainerXmlParser\initItem(), ilMainMenuGUI\initMemberView(), ilWikiPageGUI\initPrintViewSelectionForm(), ilLOTestQuestionAdapter\initTestRun(), ilPCContentIncludeGUI\insertFromPool(), ilPCMediaObjectGUI\insertFromPool(), ilPCQuestionGUI\insertFromPool(), ilPageObject\insertInstIntoIDs(), ilPCResourcesGUI\insertResourcesIntoPageContent(), ilObjectListGUI\insertSubscribeCommand(), ilSoapCourseAdministration\isAssignedToCourse(), ilSoapGroupAdministration\isAssignedToGroup(), ilLOUtils\isCompleted(), ilRepositoryExplorerGUI\isNodeClickable(), ilObjContentObject\isOnlineHelpModule(), ilLOSettings\isRandomTestType(), ilCourseObjectivesGUI\isRandomTestType(), ilBookingEntry\isTargetObjectVisible(), ilAdministrationGUI\jump(), ilSAHSPresentationGUI\launchSahs(), ilSCORMPresentationGUI\launchSahs(), ilLOUtils\lookupObjectiveRequiredPercentage(), ilObjectPluginGUI\lookupParentTitleInCreationMode(), ilLOEditorStatus\lookupQuestionsAssigned(), ilObjGroupGUI\modifyItemGUI(), ilObjSessionGUI\modifyItemGUI(), ilObjFolderGUI\modifyItemGUI(), ilLTIProviderReleasedObjectsTableGUI\parse(), ilLPCollectionSettingsTableGUI\parse(), ilECSCategoryMappingTableGUI\parse(), ilObjectCopyProgressTableGUI\parse(), ilObjectTableGUI\parse(), ilCourseObjectivesTableGUI\parse(), ilLOXmlParser\parseMaterials(), ilLOXmlParser\parseTests(), ilDclIliasReferenceFieldRepresentation\passThroughFilter(), ilAdministrationCommandGUI\paste(), ilContainerGUI\pasteObject(), ilAdministrationCommandGUI\performPasteIntoMultipleObjects(), ilObjWorkspaceFolderGUI\performPasteIntoMultipleObjects(), ilRepositoryObjectSearchGUI\performSearch(), ilObjTest\randomSelectQuestions(), ilCalendarCategories\readAllConsultationHoursCalendarOfContainer(), ilCalendarCategories\readConsultationHoursCalendar(), ilMediaObjectDataSet\readData(), ilBookingScheduleGUI\render(), ilMainMenuGUI\renderEntry(), ilContainerObjectiveGUI\renderObjective(), ilObjWikiGUI\renderSideBlock(), ilContainerObjectiveGUI\renderTest(), ilUtil\replaceLinkProperties(), ilAccountMail\replacePlaceholders(), ilObjectLP\resetLPDataForUserIds(), ilBasicSkill\resetUserSkillLevelStatus(), ilRepUtil\restoreObjects(), ilExportGUI\saveItemSelection(), ilCourseObjectivesGUI\saveRandom(), ilUserStartingPointGUI\saveStartingPoint(), ilObjectCopyGUI\saveTarget(), ilObjSCORM2004LearningModuleGUI\selectGlossary(), ilObjGlossaryGUI\selectGlossary(), ilObjGlossaryGUI\selectGlossaryLink(), ilObjContentObjectGUI\selectLMGlossary(), ilObjContentObjectGUI\selectLMGlossaryLink(), ilMembershipCronNotifications\sendMail(), ilObjBlog\sendNotification(), ilPageObjectGUI\setDefaultLinkXml(), ilContainerContentGUI\setOutput(), ilUserUtil\setPersonalStartingPoint(), ilQuestionEditGUI\setPoolRefId(), ilMailNotification\setRefId(), ilUserUtil\setStartingPoint(), ilObjItemGroupGUI\setTabs(), ilObjectGUI\setTitleAndDescription(), ilDclTreePickInputGUI\setValueByArray(), ilCalendarSubscriptionGUI\show(), ilCalendarBlockGUI\showCalendarSubscription(), ilRepUtilGUI\showDeleteConfirmation(), ilInternalLinkGUI\showLinkHelp(), ilAdministrationCommandGUI\showLinkIntoMultipleObjectsTree(), ilMemberViewGUI\showMemberViewSwitch(), ilAdministrationCommandGUI\showMoveIntoObjectTree(), ilNewsForContextBlockGUI\showNews(), ilNoteGUI\showTargets(), ilRepositoryGUI\showTree(), ilAdministrationExplorerGUI\sortChilds(), ilRepositorySelectorExplorerGUI\sortChilds(), ilRepositoryExplorerGUI\sortChilds(), ilObjSCORMTracking\store(), ilObjectTest\testSetGetLookup(), ilObjectTest\testTreeTrash(), ilAdvancedMDRecord\toXML(), ilObjGroup\translateViewMode(), ilSoapCourseAdministration\updateCourse(), ilLOTestQuestionAdapter\updateFixedQuestions(), ilLearningProgressGUI\updateManual(), ilContainerReferenceGUI\updateObject(), ilLOTestQuestionAdapter\updateRandomQuestions(), ilContainerObjectiveGUI\updateResult(), ilMembershipRegistrationCodeUtils\useCode(), ilECSCategoryMappingRule\validate(), ilLPCollectionOfRepositoryObjects\validateEntry(), ilCourseLPBadgeGUI\validateForm(), ilSoapObjectAdministration\validateReferences(), ilPDNewsGUI\view(), ilObjStudyProgrammeMembersGUI\view(), ilCourseContentGUI\view(), ilContainerXmlWriter\writeSubitems(), and ilBasicSkill\writeUserSkillLevelStatus().

1037  {
1038  global $DIC;
1039 
1040  $ilObjDataCache = $DIC["ilObjDataCache"];
1041 
1042  return (int) $ilObjDataCache->lookupObjId($a_id);
1043  }
global $DIC
Definition: saml.php:7
+ Here is the caller graph for this function:

◆ _lookupObjIdByImportId()

static ilObject::_lookupObjIdByImportId (   $a_import_id)
static

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

References $DIC, $ilDB, $query, $res, and $row.

Referenced by ilOrgUnitImporter\buildRef(), ilOrgUnitSimpleUserImport\buildUserId(), ilSoapObjectAdministration\getObjIdByImportId(), ilSoapObjectAdministration\getRefIdsByImportId(), ilSoapObjectAdministration\getXMLTree(), ilAuthProviderECS\handleLogin(), ilRoleXmlImporter\initRole(), ilAuthContainerECS\loginObserver(), ilSoapObjectAdministration\removeFromSystemByImportId(), ilOrgUnitSimpleImport\simpleImportElement(), and ilObjectTest\testSetGetLookup().

475  {
476  global $DIC;
477 
478  $ilDB = $DIC->database();
479 
480  $query = "SELECT * FROM object_data " .
481  "WHERE import_id = " . $ilDB->quote($a_import_id, "text") . " " .
482  "ORDER BY create_date DESC";
483  $res = $ilDB->query($query);
484  while ($row = $ilDB->fetchObject($res)) {
485  return $row->obj_id;
486  }
487  return 0;
488  }
global $DIC
Definition: saml.php:7
foreach($_POST as $key=> $value) $res
$query
global $ilDB
+ Here is the caller graph for this function:

◆ _lookupOwner()

static ilObject::_lookupOwner (   $a_id)
static

lookup object owner

Parameters
int$a_idobject id

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

References $DIC, and $owner.

Referenced by ilPortfolioPageAction\deletePagesOfBlog(), ilLPTableBaseGUI\getExportMeta(), ilObjBlogGUI\getHTML(), ilObjTest\randomSelectQuestions(), ilObjBlogGUI\renderList(), ilNoteGUI\showTargets(), and ilObjectTest\testSetGetLookup().

950  {
951  global $DIC;
952 
953  $ilObjDataCache = $DIC["ilObjDataCache"];
954 
955  $owner = $ilObjDataCache->lookupOwner($a_id);
956  return $owner;
957  }
global $DIC
Definition: saml.php:7
+ Here is the caller graph for this function:

◆ _lookupOwnerName()

static ilObject::_lookupOwnerName (   $a_owner_id)
static

lookup owner name for owner id

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

References $DIC, $lng, $owner, and _exists().

Referenced by getOwnerName(), ilNoteGUI\showTargets(), and ilObjectTest\testSetGetLookup().

529  {
530  global $DIC;
531 
532  $lng = $DIC->language();
533 
534  if ($a_owner_id != -1) {
535  if (ilObject::_exists($a_owner_id)) {
536  $owner = new ilObjUser($a_owner_id);
537  }
538  }
539 
540  if (is_object($owner)) {
541  $own_name = $owner->getFullname();
542  } else {
543  $own_name = $lng->txt("unknown");
544  }
545 
546  return $own_name;
547  }
global $DIC
Definition: saml.php:7
static _exists($a_id, $a_reference=false, $a_type=null)
checks if an object exists in object_data
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _lookupTitle()

static ilObject::_lookupTitle (   $a_id)
static

lookup object title

Parameters
int$a_idobject id

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

References $DIC.

Referenced by ilLearningProgressBaseGUI\__appendLPDetails(), ilRegistrationSettingsGUI\__buildRoleSelection(), ilLMGlossaryTableGUI\__construct(), ilTaxSelectInputGUI\__construct(), ilBadgeUserTableGUI\__construct(), ilObjectFeedWriter\__construct(), ilUserFeedWriter\__construct(), ilLMChapterImportForm\__construct(), ilGlossaryAutoLinkTableGUI\__construct(), ilMediaPoolTableGUI\__construct(), ilCopySelfAssQuestionTableGUI\__construct(), ilAttendanceList\__construct(), ilRegistrationSettingsGUI\__prepareAutomaticRoleList(), ilExport\_generateIndexFile(), ilObjStyleSheet\_getClonableContentStyles(), ilForum\_getModerators(), ilObjStyleSheet\_getStandardStyles(), ilLPStatusEvent\_getStatusInfo(), ilObjChatroomGUI\_goto(), ilObjItemGroupGUI\_goto(), ilObjSessionGUI\_goto(), ilRemoteObjectBaseGUI\_goto(), ilLMPageObjectGUI\_goto(), ilObjectPluginGUI\_goto(), ilObjMailGUI\_goto(), ilStructureObjectGUI\_goto(), ilObjExerciseGUI\_goto(), ilObjFileBasedLMGUI\_goto(), ilObjSAHSLearningModuleGUI\_goto(), ilGlossaryTermGUI\_goto(), ilObjFileGUI\_goto(), ilObjSurveyQuestionPoolGUI\_goto(), ilObjWikiGUI\_goto(), ilObjForumGUI\_goto(), ilObjBookingPoolGUI\_goto(), ilObjGroupGUI\_goto(), ilObjMediaCastGUI\_goto(), ilObjGlossaryGUI\_goto(), ilObjCategoryGUI\_goto(), ilObjLinkResourceGUI\_goto(), ilObjMediaPoolGUI\_goto(), ilObjQuestionPoolGUI\_goto(), ilObjSurveyGUI\_goto(), ilObjSystemFolderGUI\_goto(), ilObjUserFolderGUI\_goto(), ilObjCourseGUI\_goto(), ilObjContentObjectGUI\_goto(), ilObjTestGUI\_goto(), ilObjUser\_lookupDesktopItems(), ilObjStyleSheetGUI\addAdminLocatorItems(), ilAppointmentPresentationGUI\addContainerInfo(), ilNavigationHistory\addItem(), ilObjContentObjectGUI\addLocations(), ilObjPortfolioBaseGUI\addLocatorItems(), ilAppointmentPresentationGUI\addObjectLinks(), ilCalendarCategoryGUI\addReferenceLinks(), ilContentStyleSettings\addStyle(), ilECSCourseCreationHandler\addUrlEntry(), ilObjGlossaryGUI\addUsagesToInfo(), ilDidacticTemplateLocalRoleAction\apply(), ilConditionHandlerGUI\askDelete(), ilContainerStartObjectsGUI\askDeleteStarterObject(), ilObjTestDynamicQuestionSetConfigGUI\buildTaxonomySelectInputOptionArray(), ilECSMappingSettingsGUI\cInitMappingForm(), ilAppointmentPresentationConsultationHoursGUI\collectPropertiesAndActions(), ilGroupAddToGroupActionGUI\confirmAddUser(), ilContentStyleSettingsGUI\confirmDeleteIndividualStyles(), ilObjRoleFolderGUI\confirmDeleteObject(), ilAuthShibbolethSettingsGUI\confirmDeleteRules(), ilLOEditorGUI\confirmDeleteTest(), ilLOEditorGUI\confirmDeleteTests(), ilBasicSkillGUI\confirmLevelResourcesRemoval(), ilObjPortfolioBaseGUI\confirmPortfolioPageDeletion(), ilObjLanguageFolderGUI\confirmRefreshSelectedObject(), ilPDSelectedItemsBlockGUI\confirmRemoveObject(), ilObjLanguageFolderGUI\confirmUninstallChangesObject(), ilObjLanguageFolderGUI\confirmUninstallObject(), ilPageEditorGUI\copyLinkedMediaToClipboard(), ilContainerGUI\copyObject(), ilECSCourseCreationHandler\createCourseReferenceObjects(), ilGroupAddToGroupActionGUI\createGroup(), ilObjectRolePermissionTableGUI\createTooltip(), ilContainerGUI\cutObject(), ilDidacticTemplateBlockRoleAction\deleteLocalPolicy(), ilObjStyleSheetGUI\deleteObject(), ilRepUtil\deleteObjects(), ilContentStyleSettingsGUI\deleteStyle(), ilObjUser\deleteUserDefinedFieldEntries(), ilUserImportParser\detachFromRole(), ilShibbolethRoleAssignmentRules\doAssignments(), ilAccess\doConditionCheck(), ilBlogExerciseGUI\downloadExcSubFile(), ilPortfolioExerciseGUI\downloadExcSubFile(), ilExSubmission\downloadFiles(), ilBasicSkillGUI\editLevelTrigger(), ilRegistrationSettingsGUI\editRoles(), ilWikiHandlerGUI\executeCommand(), ilSharedResourceGUI\executeCommand(), ilBlogPostingGUI\executeCommand(), ilWikiPageGUI\executeCommand(), ilPageEditorGUI\executeCommand(), ilWikiStatGUI\export(), ilRatingCategoryGUI\export(), ilObjContentObject\exportHTMLGlossaryTerms(), ilObjContentObject\exportHTMLMOB(), ilObjContentObject\exportHTMLPages(), ilECSSettingsGUI\exportImported(), ilExport\exportObject(), ilECSSettingsGUI\exportReleased(), ilStudyProgrammeIndividualPlanTableGUI\fetchData(), ilRegistrationGUI\fillMembershipLimitation(), ilSysStyleCatAssignmentTableGUI\fillRow(), ilAdvancedMDRecordTableGUI\fillRow(), ilNewsForContextTableGUI\fillRow(), ilLMGlossaryTableGUI\fillRow(), ilGlossaryAutoLinkTableGUI\fillRow(), ilHistoryTableGUI\fillRow(), ilPCFileListTableGUI\fillRow(), ilECSImportedContentTableGUI\fillRow(), ilRepDependenciesTableGUI\fillRow(), ilTermUsagesTableGUI\fillRow(), ilContentStylesTableGUI\fillRow(), ilLinksTableGUI\fillRow(), ilSkillLevelResourcesTableGUI\fillRow(), ilMediaPoolPageUsagesTableGUI\fillRow(), ilPageLayoutTableGUI\fillRow(), ilMediaObjectUsagesTableGUI\fillRow(), ilDidacticTemplateSettingsTableGUI\fillRow(), ilSkillAssignMaterialsTableGUI\fillRow(), ilCourseObjectivesTableGUI\fillRow(), ilSkillLevelTableGUI\fillRow(), ilSystemStylesTableGUI\fillRow(), ilPDNewsTableGUI\fillRow(), ilTestQuestionsTableGUI\fillRow(), ilSubscriberTableGUI\fillRow(), ilWaitingListTableGUI\fillRow(), ilPresentationListTableGUI\fillRow(), ilTermListTableGUI\fillRow(), ilWorkspaceShareTableGUI\fillRow(), ilNewsForContextBlockGUI\fillRow(), ilUserTableGUI\fillRow(), ilLPObjectStatisticsDailyTableGUI\fillRowCSV(), ilLPObjectStatisticsTableGUI\fillRowCSV(), ilLPObjectStatisticsDailyTableGUI\fillRowExcel(), ilLPObjectStatisticsTableGUI\fillRowExcel(), ilDidacticTemplateAction\filterRoles(), ilBaseViewGUI\findEffectiveRefId(), ilLTIViewGUI\findEffectiveRefId(), ilPersonalSkillsGUI\getActualGapItem(), ilObjBlog\getAllLocalRoles(), ilObjAuthSettingsGUI\getApacheAuthSettingsForm(), ilLDAPRoleAssignmentRules\getAssignmentsForCreation(), ilLDAPRoleAssignmentRules\getAssignmentsForUpdate(), ilObjUser\getClipboardChilds(), ilObjUser\getClipboardObjects(), ilPortfolioPageGUI\getCoursesOfUser(), ilParticipants\getDefaultMemberRole(), ilObjCourse\getDefaultMemberRole(), ilObjSessionGUI\getDefaultMemberRole(), ilPortfolioExerciseGUI\getExerciseInfo(), ilBlogExerciseGUI\getExerciseInfo(), ilPersonalSkillsGUI\getGapAnalysisHTML(), ilLPObjectStatisticsDailyTableGUI\getGraph(), ilLPObjectStatisticsTableGUI\getGraph(), ilObjTest\getGroupData(), ilExAssignmentTeam\getGroupMembersMap(), ilObjHelpSettings\getHelpModules(), ilBaseViewGUI\getHomeTitle(), ilLTIViewGUI\getHomeTitle(), ilADTInternalLinkPresentationBridge\getHTML(), ilObjLearningModuleSubItemListGUI\getHTML(), ilObjWikiSubItemListGUI\getHTML(), ilFileUploadGUI\getHTML(), ilCalendarAppointmentPanelGUI\getHTML(), ilPathGUI\getHTML(), ilTaggingGUI\getHTML(), ilAwarenessUserProviderMemberships\getInitialUserSet(), ilFolderDownloadBackgroundTaskHandler\getInstanceFromTask(), assQuestion\getInstances(), ilSCORMVerificationTableGUI\getItems(), ilCourseVerificationTableGUI\getItems(), ilCourseGroupingAssignmentTableGUI\getItems(), ilCourseGroupingTableGUI\getItems(), ilExerciseVerificationTableGUI\getItems(), ilRegistrationCodesTableGUI\getItems(), ilLPObjectStatisticsDailyTableGUI\getItems(), ilLPObjectStatisticsTableGUI\getItems(), ilNavigationHistory\getItems(), ilLPObjectStatisticsLPTableGUI\getItems(), ilRoleAutoComplete\getListByObject(), ilObjBlog\getLocalContributorRole(), ilObjBlog\getLocalEditorRole(), ilSearchAutoComplete\getLuceneList(), ilMailMemberCourseRoles\getMailRoles(), ilMailMemberGroupRoles\getMailRoles(), ilImageMapEditorGUI\getMapAreaLinkString(), ilPersonalSkillsGUI\getMaterialInfo(), ilGroupParticipants\getMemberRoles(), ilCourseParticipants\getMemberRoles(), ilParticipant\getMembershipRoleType(), ilTaxonomyExplorerGUI\getNodeContent(), ilNoteGUI\getNoteListHTML(), ilMailNotification\getObjectTitle(), ilSessionParticipantsTableGUI\getParentLocalRoles(), ilBadge\getParentMeta(), ilObjSCORM2004LearningModuleGUI\getPropertiesEditableValues(), ilObjSurvey\getQuestionblocksTable(), ilObjTest\getRoleData(), ilLTIProviderObjectSettingGUI\getRoleSelection(), ilUserStartingPointGUI\getRoleStartingPointForm(), ilAuthShibbolethSettingsGUI\getRuleValues(), ilDclIliasReferenceRecordRepresentation\getSingleHTML(), ilPersonalSkillsGUI\getSuggestedResources(), ilObjQuestionPoolSettingsGeneralGUI\getTaxonomySelectInputOptions(), ilRepositorySelector2InputGUI\getTitleForNodeId(), ilObjOrgUnitTree\getTitles(), ilLinkInputGUI\getTranslatedValue(), ilObjTaxonomy\getUsageOfObject(), ilECSCourseCreationHandler\handle(), ilMembershipRegistrationCodeUtils\handleCode(), ilLPListOfSettingsGUI\handleLPUsageInfo(), ilLMPresentationGUI\ilLocator(), ilWorkspaceAccessTableGUI\importData(), ilSurveySyncTableGUI\importData(), ilSoapUserAdministration\importUsers(), ilCourseLPBadgeGUI\initConfigForm(), ilObjPortfolioGUI\initCreatePortfolioFromTemplateForm(), ilLearningProgressBaseGUI\initEditUserForm(), ilWorkspaceShareTableGUI\initFilter(), ilUserTableGUI\initFilter(), ilLOTestAssignmentForm\initForm(), ilPCBlogGUI\initForm(), ilPageLayoutGUI\initForm(), ilObjCourseGroupingGUI\initForm(), ilAttendanceList\initForm(), ilConditionHandlerGUI\initFormCondition(), ilObjectActivationGUI\initFormEdit(), ilCourseObjectivesGUI\initFormLimits(), ilAttendanceList\initFromForm(), ilPersonalSettingsGUI\initGeneralSettingsForm(), ilObjContentObjectGUI\initMenuEntryForm(), ilSharedResourceGUI\initPasswordForm(), ilObjPortfolioGUI\initPDFSelectionForm(), ilObjSCORM2004LearningModuleGUI\initPropertiesEditableForm(), ilObjContentObjectGUI\initStylePropertiesForm(), ilObjPortfolioBaseGUI\initStylePropertiesForm(), ilObjSCORM2004LearningModuleGUI\initStylePropertiesForm(), ilObjGlossaryGUI\initStylePropertiesForm(), ilObjWikiGUI\initStylePropertiesForm(), ilContainerGUI\initStylePropertiesForm(), ilObjBlogGUI\initStylePropertiesForm(), ilObjMediaPoolGUI\insertFromClipboard(), ilObjectListGUI\insertPreconditions(), ilPCResourcesGUI\insertResourcesIntoPageContent(), ilObjRole\isAutoGenerated(), ilRbacReview\isDeleteable(), ilRbacReview\isSystemGeneratedRole(), ilGlossaryPresentationGUI\listDefinitions(), ilMStShowUserGUI\listUsers(), ilObjHelpSettings\lookupModuleTitle(), ilObjectPluginGUI\lookupParentTitleInCreationMode(), ilSearchResultPresentation\lookupTitle(), ilExportContainer\manifestWriterBegin(), ilLDAPRoleAssignmentRule\matches(), ilPCContentInclude\modifyPageContentPostXsl(), ilLTIProviderReleasedObjectsTableGUI\parse(), ilECSCategoryMappingTableGUI\parse(), ilRoleSelectionTableGUI\parse(), ilCalendarSharedRoleListTableGUI\parse(), ilShibbolethRoleAssignmentTableGUI\parse(), ilObjectCopyProgressTableGUI\parse(), ilCalendarSharedListTableGUI\parse(), ilLDAPRoleAssignmentTableGUI\parse(), ilObjectTableGUI\parse(), ilCourseObjectiveQuestionsTableGUI\parse(), ilConsultationHoursTableGUI\parse(), ilRbacLogTableGUI\parseChangesFaPa(), ilObjectListGUI\parseConditions(), ilMembershipCronNotifications\parseNewsItem(), ilRepositoryObjectResultTableGUI\parseObjectIds(), ilObjectCopySearchResultTableGUI\parseSearchResults(), ilDclRecordEditGUI\parseSearchResults(), ilDclIliasReferenceFieldRepresentation\passThroughFilter(), ilContainerGUI\pasteObject(), ilObjTestDynamicQuestionSetConfigGUI\performSaveForm(), ilAdvancedMDFieldDefinitionSelect\prepareCustomDefinitionFormConfirmation(), ilLDAPSettingsGUI\prepareGlobalRoleSelection(), ilAuthShibbolethSettingsGUI\prepareRoleSelect(), ilLDAPSettingsGUI\prepareRoleSelect(), ilECSSettingsGUI\prepareRoleSelect(), ilRadiusSettingsGUI\prepareRoleSelection(), ilCASSettingsGUI\prepareRoleSelection(), ilSamlSettingsGUI\prepareRoleSelection(), ilObjPortfolioGUI\printView(), ilContentStyleSettings\read(), ilContainerReference\read(), ilCalendarCategory\read(), ilScorm2004DataSet\readData(), ilMediaObjectDataSet\readData(), ilECSCmsCourseMemberCommandQueueHandler\refreshAssignmentStatus(), ilTaxonomyClassificationProvider\render(), ilNewsTimelineItemGUI\render(), ilMediaPoolTableGUI\render(), ilPortfolioPageGUI\renderBlogTeaser(), ilSearchResultPresentation\renderItemList(), ilContainerObjectiveGUI\renderTest(), ilUtil\replaceLinkProperties(), ilAccountMail\replacePlaceholders(), ilRepUtil\restoreObjects(), ilObjectCopyGUI\saveTarget(), ilMembershipCronNotifications\sendMail(), ilMembershipCronMinMembers\sendMessage(), ilNote\sendNotifications(), ilConditionHandlerTableGUI\setConditions(), ilWorkspaceAccessGUI\setObjectTitle(), ilSCORMOfflineModeGUI\setOfflineModeTabs(), ilObjTaxonomyGUI\setTabs(), ilObjectGUI\setTitleAndDescription(), ilDclTreePickInputGUI\setValueByArray(), ilLDAPSettingsGUI\setValuesByArray(), ilPermissionGUI\showConfirmBlockRole(), ilNewsForContextBlockGUI\showFeedUrl(), ilInternalLinkGUI\showLinkHelp(), ilPageObjectGUI\showMediaFullscreen(), ilNewsForContextBlockGUI\showNews(), ilPageObjectGUI\showPage(), ilLMPresentationGUI\showPreconditionsOfPage(), ilPersonalSkillsGUI\showProfileSelectorToolbar(), ilPDTaggingBlockGUI\showResourcesForTag(), ilPageEditorGUI\showSnippetInfo(), ilNoteGUI\showTargets(), ilObjectTest\testSetGetLookup(), ilSCORMOfflineMode\tracking2sop(), ilShibbolethRoleAssignmentRules\updateAssignments(), ilMediaPoolItem\updateObjectTitle(), ilCourseLPBadgeGUI\validateForm(), ilPDNewsGUI\view(), ilPDNotesGUI\view(), ilRoleXmlExport\writeRole(), ilContainerXmlWriter\writeSubitems(), and ilBasicSkill\writeUserSkillLevelStatus().

934  {
935  global $DIC;
936 
937  $ilObjDataCache = $DIC["ilObjDataCache"];
938 
939  $tit = $ilObjDataCache->lookupTitle($a_id);
940  //echo "<br>LOOKING-$a_id-:$tit";
941  return $tit;
942  }
global $DIC
Definition: saml.php:7
+ Here is the caller graph for this function:

◆ _lookupType()

static ilObject::_lookupType (   $a_id,
  $a_reference = false 
)
static

lookup object type

Parameters
int$a_idobject id

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

References $DIC.

Referenced by ilCourseGroupingAssignmentTableGUI\__construct(), ilCourseGroupingTableGUI\__construct(), ilObjectCustomUserFieldsTableGUI\__construct(), ilTrSummaryTableGUI\__construct(), ilBadgeTableGUI\__construct(), ilMainMenuSearchGUI\__construct(), ilRepositoryObjectDetailSearch\__construct(), ilSCORM13MDImporter\__construct(), ilBadgeUserTableGUI\__construct(), ilTrMatrixTableGUI\__construct(), ilObjectFeedWriter\__construct(), ilUserFeedWriter\__construct(), ilClassificationBlockGUI\__construct(), ilTrObjectUsersPropsTableGUI\__construct(), ilAdvancedMDSettingsGUI\__construct(), ilMemberAgreementGUI\__construct(), LTI\ilMainMenuGUI\__construct(), ilObjRoleGUI\__construct(), ilAdminSubItemsTableGUI\__construct(), ilMemberAgreement\__construct(), ilGlossaryForeignTermCollectorGUI\__construct(), ilObjectCustomUserFieldsGUI\__construct(), ilMemberExportGUI\__construct(), ilRepositoryExplorerGUI\__construct(), ilParticipant\__construct(), ilRegistrationGUI\__construct(), ilBadgeManagementGUI\__construct(), ilNoteGUI\__construct(), ilParticipants\__construct(), ilMemberExport\__construct(), ilRepositoryGUI\__construct(), ilInternalLinkGUI\__construct(), ilContainerContentGUI\__forwardToColumnGUI(), ilCourseContentGUI\__forwardToColumnGUI(), ilLinkChecker\__validateLinks(), ilAdvancedMDValues\_appendXMLByObjId(), ilStartUpGUI\_checkGoto(), ilHistory\_createEntry(), ilExport\_createExportDirectory(), ilObjMediaObject\_exists(), ilExport\_generateIndexFile(), ilPCSectionGUI\_getCharacteristics(), ilPCParagraphGUI\_getCharacteristics(), ilConditionHandler\_getConditionsOfTarget(), ilHistory\_getEntriesForObject(), ilExport\_getExportDirectory(), ilExport\_getExportFiles(), _getIcon(), ilObjAssessmentFolder\_getLog(), ilObjMediaObject\_getMobsOfObject(), ilNewsItem\_getNewsItemsOfUser(), ilLMPageObject\_getPresentationTitle(), ilNote\_getRelatedObjectsOfUser(), ilPCParagraphGUI\_getTextCharacteristics(), ilObjGroupGUI\_goto(), ilObjCourseGUI\_goto(), ilIndividualAssessmentDataSet\_readData(), ilBibliographicDataSet\_readData(), ilDataCollectionDataSet\_readData(), ilChangeEvent\_recordObjStats(), ilChangeEvent\_recordReadEvent(), ilRTE\_replaceMediaObjectImageSrc(), ilObjFile\_saveUsage(), ilLMPageObject\_splitPage(), ilLMPageObject\_splitPageNext(), _writeDescription(), ilObjectActivation\addAdditionalSubItemInformation(), ilObjRoleTemplateGUI\addAdminLocatorItems(), ilObjRoleGUI\addAdminLocatorItems(), ilObjUserGUI\addAdminLocatorItems(), ilObjSurvey\addAppraisee(), SurveyQuestionGUI\addCommandButtons(), ilAppointmentPresentationGUI\addContainerInfo(), ilMemberAgreementGUI\addExportFieldInfo(), ilLPXmlWriter\addLPInformation(), ilAppointmentPresentationGUI\addObjectLinks(), ilObjSurvey\addRater(), ilCalendarCategoryGUI\addReferenceLinks(), ilPermissionGUI\addRole(), ilSoapRBACAdministration\addRoleFromTemplate(), ilExportContainer\addSubitems(), ilDesktopItemGUI\addToDesktop(), ilPCFileList\afterPageUpdate(), ilPCMediaObject\afterPageUpdate(), ilAccountCode\applyRoleAssignments(), ilContainerStartObjectsGUI\askDeleteStarterObject(), ilSoapCourseAdministration\assignCourseMember(), ilObjRoleGUI\assignDesktopItemObject(), ilSoapGroupAdministration\assignGroupMember(), ilUserImportParser\assignToRole(), ilRbacAdmin\assignUser(), ilPCParagraph\autoLinkGlossaries(), ilPCMediaObject\beforePageDelete(), ilTemplate\buildLoginTarget(), ilFolderDownloadBackgroundTaskHandler\calculateRecursive(), ilPortfolioAccessHandler\canBeDelivered(), ilInternalLinkGUI\changeLinkType(), ilObjMediaObjectAccess\checkAccessObject(), ilPortfolioAccessHandler\checkAccessOfUser(), ilWorkspaceAccessHandler\checkAccessOfUser(), ilAccess\checkAccessOfUser(), ilObjMediaObjectAccess\checkAccessTestQuestion(), ilPrivacySettings\checkExportAccess(), ilCtrl\checkLPSettingsForward(), ilObjectGUI\checkPermission(), ilObjCategory\cloneDependencies(), ilConditionHandler\cloneDependencies(), ilCOPageHTMLExport\collectPageElements(), ilPDSelectedItemsBlockGUI\confirmedRemove(), ilPDSelectedItemsBlockGUI\confirmedUnsubscribe(), ilRepUtilGUI\confirmRemoveFromSystemObject(), ilPDSelectedItemsBlockGUI\confirmRemoveObject(), ilObjTestGUI\copyAndLinkToQuestionpoolObject(), ilObjectCopyGUI\copyContainer(), ilObjectCopyGUI\copyMultipleNonContainer(), countReferences(), ilPCVerificationGUI\create(), ilObjRole\createDefaultRole(), ilStudyProgrammeAssignment\createFor(), ilAdvancedMDParser\createLocalRecord(), ilConsultationHoursGUI\createNewBookingEntry(), ilObjectRolePermissionTableGUI\createTitle(), ilObjectRolePermissionTableGUI\createTooltip(), ilRbacAdmin\deassignUser(), ilAdministrationCommandGUI\delete(), ilObjMediaPool\delete(), ilObjStudyProgrammeTreeGUI\delete(), ilPageObject\delete(), ilObjMediaPool\deleteChild(), ilObject2GUI\deleteConfirmation(), ilSoapCourseAdministration\deleteCourse(), ilObjRole\deleteLocalPolicies(), ilObjHelpSettings\deleteModule(), ilCalendarSharedStatus\deleteStatus(), ilUserImportParser\detachFromRole(), ilLPStatusVisitedPages\determineStatus(), ilLMEditorGUI\displayLocator(), ilAssQuestionSkillAssignmentsGUI\doesObjectTypeMatch(), ilImport\doImportObject(), ilECSEnrolmentStatusCommandQueueHandler\doUpdate(), ilPCResourcesGUI\edit(), ilPageObjectGUI\edit(), ilBasicSkillGUI\editLevelTrigger(), ilContainerGUI\editPageContentObject(), ilSoapCourseAdministration\excludeCourseMember(), ilSoapGroupAdministration\excludeGroupMember(), ilLearningProgressGUI\executeCommand(), ilObjectPluginGUI\executeCommand(), ilAdministrationGUI\executeCommand(), ilRepositoryGUI\executeCommand(), ilRatingCategoryGUI\export(), ilSCORM2004Asset\exportFileItems(), ilObjContentObject\exportHTML(), ilCOPageHTMLExport\exportPageElements(), ilSCORM2004Asset\exportXMLMediaObjects(), ilObjContentObject\exportXMLMediaObjects(), ilStudyProgrammeIndividualPlanTableGUI\fetchData(), ilRegistrationGUI\fillAgreement(), ilCalendarSelectionBlockGUI\fillDataSection(), ilRegistrationGUI\fillMembershipLimitation(), ilECSImportedContentTableGUI\fillRow(), ilRepDependenciesTableGUI\fillRow(), ilLinksTableGUI\fillRow(), ilSkillLevelResourcesTableGUI\fillRow(), ilMediaObjectUsagesTableGUI\fillRow(), ilCalendarCategoryTableGUI\fillRow(), ilSkillAssignMaterialsTableGUI\fillRow(), ilCalendarManageTableGUI\fillRow(), ilPDNewsTableGUI\fillRow(), ilTestQuestionsTableGUI\fillRow(), ilLPObjectStatisticsDailyTableGUI\fillRow(), ilLPObjectStatisticsTableGUI\fillRow(), ilWorkspaceShareTableGUI\fillRow(), ilMediaPoolTableGUI\fillRow(), ilLPObjectStatisticsLPTableGUI\fillRow(), ilNewsForContextBlockGUI\fillRow(), ilSearchResult\filter(), ilBaseViewGUI\findEffectiveRefId(), ilLTIViewGUI\findEffectiveRefId(), ilObjectLP\findMembershipsByPath(), ilObjPluginDispatchGUI\forward(), ilAdministrationGUI\forward(), ilTaxonomyClassificationProvider\getActiveTaxonomiesForParentRefId(), ilContainerGUI\getAsynchItemListObject(), ilBadgeHandler\getAvailableManualBadges(), ilCalendarSelectionBlockGUI\getCalendars(), ilAppointmentBaseFileHandler\getCatInfo(), ilObjectGUI\getCenterColumnHTML(), ilPageContentGUI\getCharacteristicsOfCurrentStyle(), ilCalendarAppointmentBaseFactory\getClassBaseName(), ilContainer\getCompleteDescriptions(), ilObjStudyProgramme\getCreatableSubObjects(), ilObjectLP\getCurrentMode(), ilParticipants\getDefaultMemberRole(), ilStyleDataSet\getDependencies(), ilObjStyleSheet\getEffectiveContentStyleId(), ilDownloadFilesBackgroundTask\getEventFileNameFromId(), ilUserDefinedFields\getExportableFields(), ilLPTableBaseGUI\getExportMeta(), ilPortfolioPage\getGotoForPortfolioPageTarget(), ilWorkspaceAccessHandler\getGotoLink(), ilObjectListGUI\getHeaderAction(), ilObjHelpSettings\getHelpModules(), ilRepositorySelectorInputGUI\getHighlightedNode(), ilObjLearningModuleSubItemListGUI\getHTML(), ilCalendarAppointmentPanelGUI\getHTML(), ilPathGUI\getHTML(), ilLocatorGUI\getHTML(), ilBlockGUI\getHTML(), ilObjectLP\getInstance(), ilParticipants\getInstance(), ilParticipants\getInstanceByObjId(), ilObjectFactoryWrapperMock\getInstanceByRefId(), ilAdvancedMDValues\getInstancesForObjectId(), ilLMPageObjectGUI\getLinkXML(), ilGlossaryPresentationGUI\getLinkXML(), ilLMPresentationGUI\getLinkXML(), ilObjectListGUI\getListItemHTML(), ilPersonalSkillsGUI\getMaterialInfo(), ilPageObject\getMultimediaXML(), ilNewsItem\getNewsForRefId(), ilCalendarCategories\getNotificationCalendars(), ilTrQuery\getObjectIds(), ilOrgUnitPermissionTableGUI\getObjType(), ilObjectRolePermissionTableGUI\getObjType(), ilObjectRoleTemplatePermissionTableGUI\getObjType(), ilHistoryTableGUI\getObjType(), ilPreview\getObjType(), ilMemberExport\getOrderedExportableFields(), ilSessionParticipantsTableGUI\getParentLocalRoles(), ilBadge\getParentMeta(), ilPageObject\getParentObjectContributors(), ilObjMediaObject\getParentObjectIdForUsage(), ilTrQuery\getParticipantsForObject(), ilObjSCORM2004LearningModuleGUI\getPropertiesEditableValues(), ilContainerContentGUI\getRightColumnHTML(), ilCourseContentGUI\getRightColumnHTML(), ilObjectGUI\getRightColumnHTML(), ilRbacReview\getRoleFolderOfRole(), ilUserStartingPointGUI\getRoleStartingPointForm(), ilAdministrationSettingsFormHandler\getSettingsGUIInstance(), ilAdvancedMDRecord\getSharedRecords(), ilPageContentGUI\getStyle(), ilTrQuery\getSubItemsStatusForUser(), ilTrQuery\getSubItemType(), ilNoteGUI\getSubObjectTitle(), ilLPCollectionOfLMChapters\getTableGUIData(), ilObjSessionGUI\getTabs(), ilCalendarBlockGUI\getTargetGUIClassPath(), ilBadgeHandler\getUserIds(), ilAppointmentPresentationGUI\getUserName(), ilAdvancedMDFieldDefinitionInternalLink\getValueForXML(), ilCOPageExporter\getXmlExportHeadDependencies(), ilForumExporter\getXmlRepresentation(), ilFileExporter\getXmlRepresentation(), ilObject2GUI\handleAfterSaveCallback(), ilTaggingAppEventListener\handleEvent(), ilSearchAppEventListener\handleEvent(), ilCourseAppEventListener\handleEvent(), ilObjFileGUI\handleFileUpload(), ilECSEventQueueReader\handleImportReset(), ilECSAppEventListener\handleMembership(), ilObjectLP\handleMove(), ilSurveySkill\handleQuestionDeletion(), ilLTIProviderObjectSettingGUI\hasSettingsAccess(), ilSCORM13Package\il_import(), ilLMPresentationGUI\ilPage(), ilWorkspaceAccessTableGUI\importData(), ilBookmarkDataSet\importRecord(), ilCalendarDataSet\importRecord(), ilUserDataSet\importRecord(), ilRoleXmlImporter\importSimpleXml(), ilCategoryImporter\importXmlRepresentation(), ilInternalLinkGUI\init(), ilObjectCopyGUI\init(), ilSubItemListGUI\init(), ilLearningProgressGUI\initCollectionManualForm(), ilObjRoleFolderGUI\initCopyBehaviourForm(), ilLearningProgressBaseGUI\initEditUserForm(), ilSessionParticipantsTableGUI\initFilter(), ilContainerNewsSettingsGUI\initForm(), ilCalendarAppointmentGUI\initForm(), ilConditionHandlerGUI\initFormCondition(), ilObjRoleTemplateGUI\initFormRoleTemplate(), ilPersonalSettingsGUI\initGeneralSettingsForm(), ilLTIViewGUI\initGUI(), ilRbacAdmin\initIntersectionPermissions(), ilObjectOwnershipManagementTableGUI\initItems(), ilObjectCustomUserFieldsGUI\initMemberForm(), ilMainMenuGUI\initMemberView(), ilObjContentObjectGUI\initMenuEntryForm(), ilLTIProviderObjectSettingGUI\initObjectSettingsForm(), ilPluginLP\initPlugin(), ilObjectServiceSettingsGUI\initServiceSettingsForm(), ilContainerGUI\initStylePropertiesForm(), ilPCContentIncludeGUI\insertFromPool(), ilPCMediaObjectGUI\insertFromPool(), ilPCQuestionGUI\insertFromPool(), ilPageObject\insertInstIntoIDs(), ilObjectListGUI\insertMultiDownloadCommand(), ilObjectListGUI\insertPasteCommand(), ilPCResourcesGUI\insertResourcesIntoPageContent(), ilObjectListGUI\insertSubscribeCommand(), ilSoapCourseAdministration\isAssignedToCourse(), ilSoapGroupAdministration\isAssignedToGroup(), ilPluginLP\isLPMember(), ilBadgeHandler\isObjectActive(), ilOrgUnitGlobalSettings\isPositionAccessActiveForObject(), ilAssQuestionPreviewSettings\isTestRefId(), ilFileUploadUtil\isUploadAllowed(), ilAdministrationGUI\jump(), ilObjUserFolderGUI\jumpToUserObject(), ilObjectTranslationGUI\listTranslations(), ilRepositorySearchGUI\listUsers(), ilObjSAHSLearningModule\lookupAssignedGlossary(), ilCalendarSettings\lookupCalendarActivated(), ilObjHelpSettings\lookupModuleTitle(), ilObjStyleSheet\lookupObjectForStyle(), ilObjStyleSheet\lookupObjectStyle(), assTextQuestionGUI\magicAfterTestOutput(), ilStudyProgrammeAppEventListener\onServiceObjectDeleteOrToTrash(), ilStudyProgrammeAppEventListener\onServiceTreeInsertNode(), ilStudyProgrammeAppEventListener\onServiceTreeMoveTree(), ilLTIProviderReleasedObjectsTableGUI\parse(), ilObjectCopyProgressTableGUI\parse(), ilCalendarCategoryTableGUI\parse(), ilObjectTableGUI\parse(), ilCalendarManageTableGUI\parse(), ilCourseObjectivesTableGUI\parse(), ilRbacLogTableGUI\parseChangesFaPa(), ilObjMediaPoolSubItemListGUI\parseImage(), ilDataSet\parseObjectExportId(), ilRepositoryObjectResultTableGUI\parseObjectIds(), ilObjectAddNewItemGUI\parseRepository(), ilAdministrationCommandGUI\paste(), ilAdministrationCommandGUI\performPasteIntoMultipleObjects(), assQuestionGUI\populateTaxonomyFormSection(), ilAdvancedMDFieldDefinitionSelect\prepareCustomDefinitionFormConfirmation(), ilObjectGUI\prepareOutput(), ilSkillObjDeletionHandler\processDeletion(), ilObjSCORM2004LearningModuleGUI\properties(), ilObjStudyProgramme\putInTree(), ilObjectGUI\putObjectInTree(), ilUserQuery\query(), ilObjSAHSLearningModule\read(), ilExerciseMembers\read(), ilCalendarCategory\read(), ilScorm2004DataSet\readData(), ilMediaObjectDataSet\readData(), ilCalendarCategories\readReposCalendars(), ilObjRoleGUI\readRoleProperties(), ilCalendarCategories\readSelectedCategories(), ilObjSessionGUI\redirectToParentContentPageObject(), ilObjOrgUnitGUI\redirectToRefId(), ilObjectGUI\redirectToRefId(), ilSharedResourceGUI\redirectToResource(), ilECSCmsCourseMemberCommandQueueHandler\refreshAssignmentStatus(), ilDesktopItemGUI\removeFromDesktop(), ilCalendarSelectionBlockGUI\renderItem(), ilSearchResultPresentation\renderItemList(), ilPCTableGUI\renderTable(), ilAccountMail\replacePlaceholders(), ilPageObject\resolveMediaAliases(), ilObjUserGUI\roleassignmentObject(), ilContainerNewsSettingsGUI\save(), ilNewsTimelineGUI\save(), ilCalendarAppointmentGUI\save(), ilOrgUnitGlobalSettings\saveDefaultPositionActivationStatus(), ilAccountRegistrationGUI\saveForm(), ilExportGUI\saveItemSelection(), ilPCMediaObject\saveMobUsage(), ilConsultationHoursGUI\saveSequence(), ilObjectCopyGUI\saveSource(), ilObjectCopyGUI\saveSourceMembership(), ilObjectCopyGUI\saveTarget(), ilObjFileGUI\saveUnzip(), ilMembershipCronNotifications\sendMail(), ilObjGlossary\setAutoGlossaries(), ilObjContentObject\setAutoGlossaries(), ilSCORM2004PageGUI\setDefaultLinkXml(), ilPageObjectGUI\setDefaultLinkXml(), ilStudyProgrammeAssignment\setLastChangeBy(), ilStudyProgrammeProgress\setLastChangeBy(), ilPCInteractiveImage\setNode(), ilMailNotification\setObjId(), ilObjStudyProgramme\setProgressesCompletedFor(), ilConditionSelector\setRefId(), ilObjItemGroupGUI\setTabs(), ilLinkInputGUI\setValueByIntLinkAttributes(), ilRepUtilGUI\showDeleteConfirmation(), ilCalendarAppointmentGUI\showInfoScreen(), ilInternalLinkGUI\showLinkHelp(), ilAdministrationCommandGUI\showLinkIntoMultipleObjectsTree(), ilMemberViewGUI\showMemberViewSwitch(), ilAdministrationCommandGUI\showMoveIntoObjectTree(), ilNewsForContextBlockGUI\showNews(), ilPageObjectGUI\showPage(), ilExerciseManagementGUI\showParticipantObject(), ilPersonalSkillsGUI\showProfileSelectorToolbar(), ilNoteGUI\showTargets(), ilRepositoryGUI\showTree(), ilOrgUnitSimpleImport\simpleImportElement(), ilAdministrationExplorerGUI\sortChilds(), ilRepositorySelectorExplorerGUI\sortChilds(), ilRepositoryExplorerGUI\sortChilds(), ilRepositoryExplorer\sortNodes(), ilSearchAppEventListener\storeElement(), ilObjectTest\testSetGetLookup(), ilObjectTest\testTreeTrash(), ilDidacticTemplateLocalRoleAction\toXml(), ilDidacticTemplateLocalPolicyAction\toXml(), ilAdvancedMDRecord\toXML(), ilPCVerificationGUI\update(), ilSoapCourseAdministration\updateCourse(), ilECSAppEventListener\updateEnrolmentStatus(), ilPortfolioPage\updateInternalLinks(), ilLMObject\updateInternalLinks(), ilContainerReferenceGUI\updateObject(), ilMediaPoolItem\updateObjectTitle(), ilObjectLP\updateParentCollections(), ilObjectServiceSettingsGUI\updateServiceSettingsForm(), ilLTIProviderObjectSettingGUI\updateSettings(), ilECSCategoryMappingRule\validate(), ilLPCollectionOfRepositoryObjects\validateEntry(), ilSoapObjectAdministration\validateReferences(), ilPublicUserProfileGUI\validateUser(), ilPDNewsGUI\view(), ilPDNotesGUI\view(), ilContObjectManifestBuilder\writeResources(), ilRoleXmlExport\writeRole(), ilLPStatus\writeStatus(), ilContainerXmlWriter\writeSubitems(), ilBasicSkill\writeUserSkillLevelStatus(), and ilPCParagraph\xml2output().

1205  {
1206  global $DIC;
1207 
1208  $ilObjDataCache = $DIC["ilObjDataCache"];
1209 
1210  if ($a_reference) {
1211  return $ilObjDataCache->lookupType($ilObjDataCache->lookupObjId($a_id));
1212  }
1213  return $ilObjDataCache->lookupType($a_id);
1214  }
global $DIC
Definition: saml.php:7
+ Here is the caller graph for this function:

◆ _prepareCloneSelection()

static ilObject::_prepareCloneSelection (   $a_ref_ids,
  $new_type,
  $show_path = true 
)
static

Prepare copy wizard object selection.

This method should renamed. Currently used in ilObjsurvey and ilObjTest

Deprecated:
since version 5.2

type $ilDB type $lng type $objDefinition

Parameters
array$a_ref_ids
string$new_type
bool$show_path
Returns
array

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

References $app_event_handler, $db, $DIC, $ilDB, $ilUser, $lng, $location, $objDefinition, $options, $path, $query, $rbacadmin, $res, $row, $title, ilAdvancedMDValues\_cloneValues(), ilCopyWizardOptions\_getInstance(), appendCopyInfo(), array, getId(), ilLoggerFactory\getLogger(), getLongDescription(), getRefId(), getTitle(), getType(), and ilObjectPlugin\lookupTxtById().

Referenced by ilObjSurveyQuestionPool\_getAvailableQuestionpools(), ilObjQuestionPool\_getAvailableQuestionpools(), and ilObjTest\_getAvailableTests().

1704  {
1705  global $DIC;
1706 
1707  $ilDB = $DIC->database();
1708  $lng = $DIC->language();
1709  $objDefinition = $DIC["objDefinition"];
1710 
1711  $query = "SELECT obj_data.title obj_title,path_data.title path_title,child FROM tree " .
1712  "JOIN object_reference obj_ref ON child = obj_ref.ref_id " .
1713  "JOIN object_data obj_data ON obj_ref.obj_id = obj_data.obj_id " .
1714  "JOIN object_reference path_ref ON parent = path_ref.ref_id " .
1715  "JOIN object_data path_data ON path_ref.obj_id = path_data.obj_id " .
1716  "WHERE " . $ilDB->in("child", $a_ref_ids, false, "integer") . " " .
1717  "ORDER BY obj_data.title ";
1718  $res = $ilDB->query($query);
1719 
1720  if (!$objDefinition->isPlugin($new_type)) {
1721  $options[0] = $lng->txt('obj_' . $new_type . '_select');
1722  } else {
1723  require_once("Services/Repository/classes/class.ilObjectPlugin.php");
1724  $options[0] = ilObjectPlugin::lookupTxtById($new_type, "obj_" . $new_type . "_select");
1725  }
1726 
1727  while ($row = $ilDB->fetchObject($res)) {
1728  if (strlen($title = $row->obj_title) > 40) {
1729  $title = substr($title, 0, 40) . '...';
1730  }
1731 
1732  if ($show_path) {
1733  if (strlen($path = $row->path_title) > 40) {
1734  $path = substr($path, 0, 40) . '...';
1735  }
1736 
1737  $title .= ' (' . $lng->txt('path') . ': ' . $path . ')';
1738  }
1739 
1740  $options[$row->child] = $title;
1741  }
1742  return $options ? $options : array();
1743  }
static lookupTxtById($plugin_id, $lang_var)
global $DIC
Definition: saml.php:7
foreach($_POST as $key=> $value) $res
$query
Create styles array
The data for the language used.
global $ilDB
if(!isset($_REQUEST['ReturnTo'])) if(!isset($_REQUEST['AuthId'])) $options
Definition: as_login.php:20
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _resetDeletedDate()

static ilObject::_resetDeletedDate (   $a_ref_id)
static

only called in ilObjectGUI::insertSavedNodes

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

References $DIC, $ilDB, and $query.

Referenced by ilTree\insertNode(), ilObjectTest\testObjectReference(), and ilObjectTest\testSetGetLookup().

1083  {
1084  global $DIC;
1085 
1086  $ilDB = $DIC->database();
1087 
1088  $query = "UPDATE object_reference SET deleted = " . $ilDB->quote(null, 'timestamp') .
1089  " WHERE ref_id = " . $ilDB->quote($a_ref_id, 'integer');
1090  $ilDB->manipulate($query);
1091  }
global $DIC
Definition: saml.php:7
$query
global $ilDB
+ Here is the caller graph for this function:

◆ _setDeletedDate()

static ilObject::_setDeletedDate (   $a_ref_id)
static

only called in ilTree::saveSubTree

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

References $DIC, $ilDB, $query, and $res.

Referenced by ilObjectTest\testObjectReference(), and ilObjectTest\testSetGetLookup().

1049  {
1050  global $DIC;
1051 
1052  $ilDB = $DIC->database();
1053 
1054  $query = "UPDATE object_reference SET deleted= " . $ilDB->now() . ' ' .
1055  "WHERE ref_id = " . $ilDB->quote($a_ref_id, 'integer');
1056  $res = $ilDB->manipulate($query);
1057  }
global $DIC
Definition: saml.php:7
foreach($_POST as $key=> $value) $res
$query
global $ilDB
+ Here is the caller graph for this function:

◆ _writeDescription()

static ilObject::_writeDescription (   $a_obj_id,
  $a_desc 
)
static

write description to db (static)

Parameters
int$a_obj_idobject id
string$a_descdescription public

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

References $desc, $DIC, $ilDB, $objDefinition, $res, _lookupType(), array, and ilUtil\shortenText().

Referenced by ilSCORM13Package\il_import(), and ilObjMediaObject\MDUpdateListener().

1141  {
1142  global $DIC;
1143 
1144  $ilDB = $DIC->database();
1145  $objDefinition = $DIC["objDefinition"];
1146 
1147 
1148  $desc = ilUtil::shortenText($a_desc, self::DESC_LENGTH, true);
1149 
1150  $q = "UPDATE object_data " .
1151  "SET " .
1152  "description = " . $ilDB->quote($desc, "text") . "," .
1153  "last_update = " . $ilDB->now() . " " .
1154  "WHERE obj_id = " . $ilDB->quote($a_obj_id, "integer");
1155 
1156  $ilDB->manipulate($q);
1157 
1158  if ($objDefinition->isRBACObject(ilObject::_lookupType($a_obj_id))) {
1159  // Update long description
1160  $res = $ilDB->query("SELECT * FROM object_description WHERE obj_id = " .
1161  $ilDB->quote($a_obj_id, 'integer'));
1162 
1163  if ($res->numRows()) {
1164  $values = array(
1165  'description' => array('clob',$a_desc)
1166  );
1167  $ilDB->update('object_description', $values, array('obj_id' => array('integer',$a_obj_id)));
1168  } else {
1169  $values = array(
1170  'description' => array('clob',$a_desc),
1171  'obj_id' => array('integer',$a_obj_id));
1172  $ilDB->insert('object_description', $values);
1173  }
1174  }
1175  }
static shortenText( $a_str, $a_len, $a_dots=false, $a_next_blank=false, $a_keep_extension=false)
shorten a string to given length.
global $DIC
Definition: saml.php:7
foreach($_POST as $key=> $value) $res
Create styles array
The data for the language used.
static _lookupType($a_id, $a_reference=false)
lookup object type
global $ilDB
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _writeImportId()

static ilObject::_writeImportId (   $a_obj_id,
  $a_import_id 
)
static

write import id to db (static)

Parameters
int$a_obj_idobject id
string$a_import_idimport id public

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

References $DIC, and $ilDB.

Referenced by ilAuthProviderECS\createUser(), ilAuthContainerECS\createUser(), ilImport\doImportObject(), ilCourseXMLParser\handlerBeginTag(), ilObjContentObject\importFromDirectory(), and ilGlossaryImporter\importXmlRepresentation().

1185  {
1186  global $DIC;
1187 
1188  $ilDB = $DIC->database();
1189 
1190  $q = "UPDATE object_data " .
1191  "SET " .
1192  "import_id = " . $ilDB->quote($a_import_id, "text") . "," .
1193  "last_update = " . $ilDB->now() . " " .
1194  "WHERE obj_id = " . $ilDB->quote($a_obj_id, "integer");
1195 
1196  $ilDB->manipulate($q);
1197  }
global $DIC
Definition: saml.php:7
global $ilDB
+ Here is the caller graph for this function:

◆ _writeTitle()

static ilObject::_writeTitle (   $a_obj_id,
  $a_title 
)
static

write title to db (static)

Parameters
int$a_obj_idobject id
string$a_titletitle public

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

References $DIC, and $ilDB.

Referenced by ilScorm2004DataSet\importRecord(), ilObjMediaObject\MDUpdateListener(), and ilObjSAHSLearningModuleGUI\uploadObject().

1119  {
1120  global $DIC;
1121 
1122  $ilDB = $DIC->database();
1123 
1124  $q = "UPDATE object_data " .
1125  "SET " .
1126  "title = " . $ilDB->quote($a_title, "text") . "," .
1127  "last_update = " . $ilDB->now() . " " .
1128  "WHERE obj_id = " . $ilDB->quote($a_obj_id, "integer");
1129 
1130  $ilDB->manipulate($q);
1131  }
global $DIC
Definition: saml.php:7
global $ilDB
+ Here is the caller graph for this function:

◆ appendCopyInfo()

ilObject::appendCopyInfo (   $a_target_id,
  $a_copy_id 
)

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

public

Parameters
intcopy_id

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

References $title, $tree, ilObjFileAccess\_appendNumberOfCopyToFilename(), ilCopyWizardOptions\_getInstance(), getTitle(), and getType().

Referenced by _prepareCloneSelection().

1831  {
1832  $tree = $this->tree;
1833 
1834  include_once('Services/CopyWizard/classes/class.ilCopyWizardOptions.php');
1835  $cp_options = ilCopyWizardOptions::_getInstance($a_copy_id);
1836  if (!$cp_options->isRootNode($this->getRefId())) {
1837  return $this->getTitle();
1838  }
1839  $nodes = $tree->getChilds($a_target_id);
1840 
1841  $title_unique = false;
1842  require_once 'Modules/File/classes/class.ilObjFileAccess.php';
1843  $numberOfCopy = 1;
1844  $handleExtension = ($this->getType() == "file"); // #14883
1845  $title = ilObjFileAccess::_appendNumberOfCopyToFilename($this->getTitle(), $numberOfCopy, $handleExtension);
1846  while (!$title_unique) {
1847  $found = 0;
1848  foreach ($nodes as $node) {
1849  if (($title == $node['title']) and ($this->getType() == $node['type'])) {
1850  $found++;
1851  }
1852  }
1853  if ($found > 0) {
1854  $title = ilObjFileAccess::_appendNumberOfCopyToFilename($this->getTitle(), ++$numberOfCopy, $handleExtension);
1855  } else {
1856  break;
1857  }
1858  }
1859  return $title;
1860  }
static _appendNumberOfCopyToFilename($a_file_name, $nth_copy=null, $a_handle_extension=false)
Appends the text " - Copy" to a filename in the language of the current user.
static _getInstance($a_copy_id)
Get instance of copy wizard options.
getTitle()
get object title public
getType()
get object type public
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ applyDidacticTemplate()

ilObject::applyDidacticTemplate (   $a_tpl_id)

Apply template.

Parameters
int$a_tpl_id

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

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

1578  {
1579  ilLoggerFactory::getLogger('obj')->debug('Applying didactic template with id: ' . (int) $a_tpl_id);
1580  if ($a_tpl_id) {
1581  include_once './Services/DidacticTemplate/classes/class.ilDidacticTemplateActionFactory.php';
1583  $action->setRefId($this->getRefId());
1584  $action->apply();
1585  }
1586  }
1587 
1588  include_once './Services/DidacticTemplate/classes/class.ilDidacticTemplateObjSettings.php';
1589  ilDidacticTemplateObjSettings::assignTemplate($this->getRefId(), $this->getId(), (int) $a_tpl_id);
1590  return $a_tpl_id ? true : false;
1591  }
$action
static assignTemplate($a_ref_id, $a_obj_id, $a_tpl_id)
Assign template to object ilDB $ilDB.
getId()
get object id public
getRefId()
get reference id public
static getLogger($a_component_id)
Get component logger.
static getActionsByTemplateId($a_tpl_id)
Get actions of one template.
+ Here is the call graph for this function:

◆ cloneDependencies()

ilObject::cloneDependencies (   $a_target_id,
  $a_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.

public

Parameters
intref_id of target object
intcopy_id

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

References $factory, ilConditionHandler\cloneDependencies(), getRefId(), and ilDidacticTemplateObjSettings\lookupTemplateId().

1875  {
1876  include_once './Services/AccessControl/classes/class.ilConditionHandler.php' ;
1877  ilConditionHandler::cloneDependencies($this->getRefId(), $a_target_id, $a_copy_id);
1878 
1879  include_once './Services/DidacticTemplate/classes/class.ilDidacticTemplateObjSettings.php';
1881  if ($tpl_id) {
1882  include_once './Services/Object/classes/class.ilObjectFactory.php';
1883  $factory = new ilObjectFactory();
1884  $obj = $factory->getInstanceByRefId($a_target_id, false);
1885  if ($obj instanceof ilObject) {
1886  $obj->applyDidacticTemplate($tpl_id);
1887  }
1888  }
1889  return true;
1890  }
static lookupTemplateId($a_ref_id)
Lookup template id ilDB $ilDB.
Class ilObjectFactory.
$factory
Definition: metadata.php:47
getRefId()
get reference id public
static cloneDependencies($a_src_ref_id, $a_target_ref_id, $a_copy_id)
+ Here is the call graph for this function:

◆ cloneMetaData()

ilObject::cloneMetaData (   $target_obj)

Copy meta data.

public

Parameters
objecttarget object

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

References getId(), and getType().

Referenced by ilObjTest\_getAvailableTests(), ilObjLinkResource\cloneObject(), ilObjFileBasedLM\cloneObject(), ilObjSession\cloneObject(), ilObjCourse\cloneObject(), ilObjGlossary\cloneObject(), ilObjContentObject\cloneObject(), ilObjSurvey\cloneObject(), and ilObjSAHSLearningModule\populateByDirectoy().

1900  {
1901  $md = new ilMD($this->getId(), 0, $this->getType());
1902  $md->cloneMD($target_obj->getId(), 0, $target_obj->getType());
1903  return true;
1904  }
getId()
get object id public
getType()
get object type public
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ collectDeletionDependencies()

static ilObject::collectDeletionDependencies ( $deps,
  $a_ref_id,
  $a_obj_id,
  $a_type,
  $a_depth = 0 
)
static

Collect deletion dependencies.

E.g.

Parameters

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

References $a_type, $DIC, $id, $location, $message, $objDefinition, $tree, and array.

Referenced by ilRepUtilGUI\showDeleteConfirmation().

1977  {
1978  global $DIC;
1979 
1980  $objDefinition = $DIC["objDefinition"];
1981  $tree = $DIC->repositoryTree();
1982 
1983  if ($a_depth == 0) {
1984  $deps["dep"] = array();
1985  }
1986 
1987  $deps["del_ids"][$a_obj_id] = $a_obj_id;
1988 
1989  if (!$objDefinition->isPluginTypeName($a_type)) {
1990  $class_name = "ilObj" . $objDefinition->getClassName($a_type);
1991  $location = $objDefinition->getLocation($a_type);
1992  include_once($location . "/class." . $class_name . ".php");
1993  $odeps = call_user_func(array($class_name, "getDeletionDependencies"), $a_obj_id);
1994  if (is_array($odeps)) {
1995  foreach ($odeps as $id => $message) {
1996  $deps["dep"][$id][$a_obj_id][] = $message;
1997  }
1998  }
1999 
2000  // get deletion dependency of childs
2001  foreach ($tree->getChilds($a_ref_id) as $c) {
2002  ilObject::collectDeletionDependencies($deps, $c["child"], $c["obj_id"], $c["type"], $a_depth + 1);
2003  }
2004  }
2005 
2006  // delete all dependencies to objects that will be deleted, too
2007  if ($a_depth == 0) {
2008  foreach ($deps["del_ids"] as $obj_id) {
2009  unset($deps["dep"][$obj_id]);
2010  }
2011  $deps = $deps["dep"];
2012  }
2013  }
global $DIC
Definition: saml.php:7
$location
Definition: buildRTE.php:44
static collectDeletionDependencies(&$deps, $a_ref_id, $a_obj_id, $a_type, $a_depth=0)
Collect deletion dependencies.
$a_type
Definition: workflow.php:92
catch(Exception $e) $message
Create styles array
The data for the language used.
+ Here is the caller graph for this function:

◆ countReferences()

ilObject::countReferences ( )

count references of object

public

Returns
integer number of references for this object

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

References $app_event_handler, $db, $DIC, $error, $ilDB, $ilErr, $ilLog, $log, $message, $query, $rbacadmin, $res, $row, ilAdvancedMDValues\_deleteByObjId(), ilECSImport\_deleteByObjId(), ilLPObjSettings\_deleteByObjId(), ilBlockSetting\_deleteSettingsOfBlock(), _lookupType(), ilObjectDataDeletionLog\add(), array, ilRbacLog\delete(), ilObjectActivation\deleteAllEntries(), ilDidacticTemplateObjSettings\deleteByObjId(), ilDidacticTemplateObjSettings\deleteByRefId(), getId(), getRefId(), getTitle(), getType(), and ilUtil\removeItemFromDesktops().

Referenced by ilObjSurvey\delete().

1395  {
1396  $ilDB = $this->db;
1397  $ilErr = $this->error;
1398 
1399  if (!isset($this->id)) {
1400  $message = "ilObject::countReferences(): No obj_id given!";
1401  $ilErr->raiseError($message, $ilErr->WARNING);
1402  }
1403 
1404  $query = "SELECT COUNT(ref_id) num FROM object_reference " .
1405  "WHERE obj_id = " . $ilDB->quote($this->id, 'integer') . " ";
1406  $res = $ilDB->query($query);
1407  $row = $ilDB->fetchObject($res);
1408 
1409  return $row->num;
1410  }
global $ilErr
Definition: raiseError.php:16
catch(Exception $e) $message
foreach($_POST as $key=> $value) $res
$query
global $ilDB
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ create()

ilObject::create ( )

create

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

public

Returns
integer object id

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

References $db, $DIC, $error, $GLOBALS, $id, $ilDB, $ilErr, $ilLog, $ilUser, $log, $message, $objDefinition, $owner, array, getDescription(), getImportId(), ilOrgUnitGlobalSettings\getInstance(), getLongDescription(), getOwner(), getTitle(), setOwner(), and ilUtil\shortenText().

Referenced by ilRemoteObjectBase\createFromECSEContent().

608  {
609  global $DIC;
610 
611  $ilDB = $this->db;
612  $ilLog = $this->log;
613  $ilUser = $DIC["ilUser"];
616 
617  if (!isset($this->type)) {
618  $message = get_class($this) . "::create(): No object type given!";
619  $ilErr->raiseError($message, $ilErr->WARNING);
620  }
621 
622  // write log entry
623  $ilLog->write("ilObject::create(), start");
624 
625  $this->title = ilUtil::shortenText($this->getTitle(), $this->max_title, $this->add_dots);
626  $this->desc = ilUtil::shortenText($this->getDescription(), $this->max_desc, $this->add_dots);
627 
628  // determine owner
629  if ($this->getOwner() > 0) {
630  $owner = $this->getOwner();
631  } elseif (is_object($ilUser)) {
632  $owner = $ilUser->getId();
633  } else {
634  $owner = 0;
635  }
636  $this->id = $ilDB->nextId("object_data");
637  $q = "INSERT INTO object_data " .
638  "(obj_id,type,title,description,owner,create_date,last_update,import_id) " .
639  "VALUES " .
640  "(" .
641  $ilDB->quote($this->id, "integer") . "," .
642  $ilDB->quote($this->type, "text") . "," .
643  $ilDB->quote($this->getTitle(), "text") . "," .
644  $ilDB->quote($this->getDescription(), "text") . "," .
645  $ilDB->quote($owner, "integer") . "," .
646  $ilDB->now() . "," .
647  $ilDB->now() . "," .
648  $ilDB->quote($this->getImportId(), "text") . ")";
649 
650  $ilDB->manipulate($q);
651 
652 
653  // Save long form of description if is rbac object
654  if ($objDefinition->isRBACObject($this->getType())) {
655  $values = array(
656  'obj_id' => array('integer',$this->id),
657  'description' => array('clob', $this->getLongDescription()));
658  $ilDB->insert('object_description', $values);
659  }
660 
661  if ($GLOBALS['DIC']['objDefinition']->isOrgUnitPermissionType($this->type)) {
662  ilOrgUnitGlobalSettings::getInstance()->saveDefaultPositionActivationStatus($this->id);
663  }
664 
665  // the line ($this->read();) messes up meta data handling: meta data,
666  // that is not saved at this time, gets lost, so we query for the dates alone
667  //$this->read();
668  $q = "SELECT last_update, create_date FROM object_data" .
669  " WHERE obj_id = " . $ilDB->quote($this->id, "integer");
670  $obj_set = $ilDB->query($q);
671  $obj_rec = $ilDB->fetchAssoc($obj_set);
672  $this->last_update = $obj_rec["last_update"];
673  $this->create_date = $obj_rec["create_date"];
674 
675  // set owner for new objects
676  $this->setOwner($owner);
677 
678  // write log entry
679  $ilLog->write("ilObject::create(), finished, obj_id: " . $this->id . ", type: " .
680  $this->type . ", title: " . $this->getTitle());
681 
682  $GLOBALS['ilAppEventHandler']->raise(
683  'Services/Object',
684  'create',
685  array('obj_id' => $this->id,'obj_type' => $this->type)
686  );
687 
688  return $this->id;
689  }
global $ilErr
Definition: raiseError.php:16
static shortenText( $a_str, $a_len, $a_dots=false, $a_next_blank=false, $a_keep_extension=false)
shorten a string to given length.
global $DIC
Definition: saml.php:7
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
getOwner()
get object owner
catch(Exception $e) $message
setOwner($a_owner)
set object owner
getTitle()
get object title public
getDescription()
get object description
getImportId()
get import id
$ilUser
Definition: imgupload.php:18
Create styles array
The data for the language used.
global $ilDB
getLongDescription()
get object long description (stored in object_description)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ createMetaData()

ilObject::createMetaData ( )

create meta data entry

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

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

Referenced by ilObjSAHSLearningModule\create(), ilObjLinkResource\create(), ilObjGlossary\create(), ilObjQuestionPool\create(), ilObjSurveyQuestionPool\create(), ilObjFileBasedLM\create(), ilObjContentObject\create(), ilObjSession\create(), ilObjCourse\create(), and updateMetaData().

798  {
799  global $DIC;
800 
801  include_once 'Services/MetaData/classes/class.ilMDCreator.php';
802 
803  $ilUser = $DIC["ilUser"];
804 
805  $md_creator = new ilMDCreator($this->getId(), 0, $this->getType());
806  $md_creator->setTitle($this->getTitle());
807  $md_creator->setTitleLanguage($ilUser->getPref('language'));
808  $md_creator->setDescription($this->getLongDescription());
809  $md_creator->setDescriptionLanguage($ilUser->getPref('language'));
810  $md_creator->setKeywordLanguage($ilUser->getPref('language'));
811  $md_creator->setLanguage($ilUser->getPref('language'));
812  $md_creator->create();
813 
814  return true;
815  }
global $DIC
Definition: saml.php:7
getId()
get object id public
getTitle()
get object title public
$ilUser
Definition: imgupload.php:18
getType()
get object type public
getLongDescription()
get object long description (stored in object_description)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ createReference()

ilObject::createReference ( )

creates reference for object

public

Returns
integer reference_id of object

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

References $db, $error, $ilDB, $ilErr, $message, $query, and $ref_id.

Referenced by ilObjStudyProgramme\addNode(), ilObject2GUI\putObjectInTree(), and ilObjectGUI\putObjectInTree().

1367  {
1368  $ilDB = $this->db;
1369  $ilErr = $this->error;
1370 
1371  if (!isset($this->id)) {
1372  $message = "ilObject::createNewReference(): No obj_id given!";
1373  $ilErr->raiseError($message, $ilErr->WARNING);
1374  }
1375 
1376  $next_id = $ilDB->nextId('object_reference');
1377  $query = "INSERT INTO object_reference " .
1378  "(ref_id, obj_id) VALUES (" . $ilDB->quote($next_id, 'integer') . ',' . $ilDB->quote($this->id, 'integer') . ")";
1379  $ilDB->query($query);
1380 
1381  $this->ref_id = $next_id;
1382  $this->referenced = true;
1383 
1384  return $this->ref_id;
1385  }
global $ilErr
Definition: raiseError.php:16
catch(Exception $e) $message
$query
global $ilDB
+ Here is the caller graph for this function:

◆ deleteMetaData()

ilObject::deleteMetaData ( )

delete meta data entry

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

References getId(), and getType().

Referenced by ilObjLinkResource\delete(), ilObjQuestionPool\delete(), ilObjFileBasedLM\delete(), ilObjSurveyQuestionPool\delete(), ilObjSurvey\delete(), ilObjContentObject\delete(), ilObjSession\delete(), ilObjTest\delete(), ilObjGlossary\delete(), ilObjCourse\delete(), and ilObjSAHSLearningModule\delete().

847  {
848  // Delete meta data
849  include_once('Services/MetaData/classes/class.ilMD.php');
850  $md = new ilMD($this->getId(), 0, $this->getType());
851  $md->deleteAll();
852  }
getId()
get object id public
getType()
get object type public
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fixMissingTitles()

static ilObject::fixMissingTitles (   $a_type,
array $a_obj_title_map 
)
static

Try to fix missing object titles.

Parameters
type$a_type
array&$a_obj_title_map

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

References $a_type, $DIC, $ilDB, $row, $sess, $title, and array.

Referenced by ilObjectOwnershipManagementGUI\listObjects().

2094  {
2095  global $DIC;
2096 
2097  $ilDB = $DIC->database();
2098 
2099  if (!in_array($a_type, array("catr", "crsr", "sess", "grpr"))) {
2100  return;
2101  }
2102 
2103  // any missing titles?
2104  $missing_obj_ids = array();
2105  foreach ($a_obj_title_map as $obj_id => $title) {
2106  if (!trim($title)) {
2107  $missing_obj_ids[] = $obj_id;
2108  }
2109  }
2110 
2111  if (!sizeof($missing_obj_ids)) {
2112  return;
2113  }
2114 
2115  switch ($a_type) {
2116  case "grpr":
2117  case "catr":
2118  case "crsr":
2119  $set = $ilDB->query("SELECT oref.obj_id, od.type, od.title FROM object_data od" .
2120  " JOIN container_reference oref ON (od.obj_id = oref.target_obj_id)" .
2121  " AND " . $ilDB->in("oref.obj_id", $missing_obj_ids, "", "integer"));
2122  while ($row = $ilDB->fetchAssoc($set)) {
2123  $a_obj_title_map[$row["obj_id"]] = $row["title"];
2124  }
2125  break;
2126 
2127  case "sess":
2128  include_once "Modules/Session/classes/class.ilObjSession.php";
2129  foreach ($missing_obj_ids as $obj_id) {
2130  $sess = new ilObjSession($obj_id, false);
2131  $a_obj_title_map[$obj_id] = $sess->getFirstAppointment()->appointmentToString();
2132  }
2133  break;
2134  }
2135  }
global $DIC
Definition: saml.php:7
$a_type
Definition: workflow.php:92
Create styles array
The data for the language used.
global $ilDB
+ Here is the caller graph for this function:

◆ getAllOwnedRepositoryObjects()

static ilObject::getAllOwnedRepositoryObjects (   $a_user_id)
static

Get all ids of objects user owns.

Parameters
int$a_user_id
Returns
array

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

References $DIC, $ilDB, $objDefinition, $res, $row, and array.

Referenced by ilObjectOwnershipManagementGUI\listObjects().

2052  {
2053  global $DIC;
2054 
2055  $ilDB = $DIC->database();
2056  $objDefinition = $DIC["objDefinition"];
2057 
2058  $all = array();
2059 
2060  // restrict to repository
2061  $types = array_keys($objDefinition->getSubObjectsRecursively("root"));
2062 
2063  $sql = "SELECT od.obj_id,od.type,od.title FROM object_data od" .
2064  " JOIN object_reference oref ON(oref.obj_id = od.obj_id)" .
2065  " JOIN tree ON (tree.child = oref.ref_id)";
2066 
2067  if ($a_user_id) {
2068  $sql .= " WHERE od.owner = " . $ilDB->quote($a_user_id, "integer");
2069  } else {
2070  $sql .= " LEFT JOIN usr_data ud ON (ud.usr_id = od.owner)" .
2071  " WHERE (od.owner < " . $ilDB->quote(1, "integer") .
2072  " OR od.owner IS NULL OR ud.login IS NULL)" .
2073  " AND od.owner <> " . $ilDB->quote(-1, "integer");
2074  }
2075 
2076  $sql .= " AND " . $ilDB->in("od.type", $types, "", "text") .
2077  " AND tree.tree > " . $ilDB->quote(0, "integer"); // #12485
2078 
2079  $res = $ilDB->query($sql);
2080  while ($row = $ilDB->fetchAssoc($res)) {
2081  $all[$row["type"]][$row["obj_id"]] = $row["title"];
2082  }
2083 
2084  return $all;
2085  }
global $DIC
Definition: saml.php:7
foreach($_POST as $key=> $value) $res
Create styles array
The data for the language used.
global $ilDB
+ Here is the caller graph for this function:

◆ getCreateDate()

ilObject::getCreateDate ( )

get create date public

Returns
string creation date

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

References $create_date.

Referenced by ilSoapUserAdministration\__readUserData(), and ilObjUser\deleteUserDefinedFieldEntries().

568  {
569  return $this->create_date;
570  }
+ Here is the caller graph for this function:

◆ getDeletionDependencies()

static ilObject::getDeletionDependencies (   $a_obj_id)
static

Get deletion dependencies.

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

2020  {
2021  return false;
2022  }

◆ getDescription()

◆ getDiskUsage()

ilObject::getDiskUsage ( )

Gets the disk usage of the object in bytes.

Returns null, if the object does not use disk space at all.

The implementation of class ilObject always returns null. Subclasses which use disk space can override this method to return a non-null value.

public

Returns
integer the disk usage in bytes or null

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

595  {
596  return null;
597  }

◆ getHTMLDirectory()

ilObject::getHTMLDirectory ( )

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

1649  {
1650  return false;
1651  }

◆ getId()

ilObject::getId ( )

get object id public

Returns
integer object id

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

References $id.

Referenced by ilObjectXMLWriter\__appendObjectProperties(), ilIndividualAssessmentInfoSettings\__construct(), ilIndividualAssessmentSettings\__construct(), ilContainerStartObjectsContentGUI\__construct(), ilObjOrgUnit\__construct(), ilObjCourse\__createDefaultSettings(), ilObjCourse\__deleteSettings(), ilObjCourse\__readSettings(), ilSoapUserAdministration\__readUserData(), ilObjTest\_getAvailableTests(), _prepareCloneSelection(), ilECSAppEventListener\_sendNotification(), ilObjectDataDeletionLog\add(), ilUsersGalleryGUI\addActionSection(), ilObjStyleSheet\addCharacteristic(), ilObjUser\addDesktopItem(), ilObjContentObject\addFirstChapterAndPage(), ilObjSystemFolder\addHeaderTitleTranslation(), ilObjWiki\addImportantPage(), ilObjSurvey\addMaterialTag(), ilObjStyleSheet\addMediaQuery(), ilObjUser\addObjectToClipboard(), ilObjStyleSheet\addParameter(), ilObjTest\addQTIMaterial(), ilObjQuestionPool\addQuestionChangeListeners(), ilObjStyleSheet\addTemplate(), ilObjUser\addToPCClipboard(), ilObjRootFolder\addTranslation(), ilObjCategory\addTranslation(), ilObjOrgUnit\addTranslation(), ilObjRole\adjustPermissions(), ilObjCourseGUI\afterImport(), ilObjExternalFeedGUI\afterSave(), ilObjLinkResourceGUI\afterSave(), ilObjPortfolioTemplateGUI\afterSave(), ilObjFolderGUI\afterSave(), ilObjTaxonomyGUI\afterSave(), ilObjPortfolioGUI\afterSave(), ilObjStudyProgrammeGUI\afterSave(), ilObjGroupGUI\afterSave(), ilObjCategoryGUI\afterSave(), ilObjCourseGUI\afterSave(), applyDidacticTemplate(), ilAccountCode\applyRoleAssignments(), ilObjStudyProgramme\assignUser(), ilObjOrgUnit\assignUsersToEmployeeRole(), ilObjOrgUnit\assignUsersToSuperiorRole(), ilObjOrgUnit\assignUserToLocalRole(), ilIndividualAssessmentAccessHandler\assignUserToMemberRole(), ilObjContentObject\autoLinkGlossaryTerms(), ilIndividualAssessmentMembers\buildNewRecordOfUser(), ilObjRole\changeExistingObjects(), ilObjStyleSheet\characteristicExists(), ilAuthFrontend\checkExceededLoginAttempts(), ilCronDeleteInactiveUserReminderMail\checkIfReminderMailShouldBeSend(), ilObjCourse\checkLPStatusSync(), ilObjQuestionPool\checkQuestionParent(), ilObjTest\checkQuestionParent(), ilObjSurvey\checkReminder(), ilAuthFrontend\checkSimultaneousLogins(), ilObjContentObject\checkStructure(), ilObjContentObject\checkTree(), ilObjStyleSheet\cleanExportDirectory(), ilObjTest\cleanupMediaobjectUsage(), ilObjUser\clipboardDeleteAll(), ilObjUser\clipboardDeleteObjectsOfType(), ilObjUser\clipboardHasObjectsOfType(), ilObjCategory\cloneDependencies(), ilObjSession\cloneDependencies(), ilContainer\cloneDependencies(), ilObjCourse\cloneDependencies(), cloneMetaData(), ilObjFolder\cloneObject(), ilObjSurveyQuestionPool\cloneObject(), ilObjBookingPool\cloneObject(), ilObjLinkResource\cloneObject(), ilObjCategory\cloneObject(), ilObjChatroom\cloneObject(), ilObjExercise\cloneObject(), ilObjSession\cloneObject(), ilObjGroup\cloneObject(), ilObjWiki\cloneObject(), ilObjCourse\cloneObject(), ilObjGlossary\cloneObject(), ilObjQuestionPool\cloneObject(), ilObjContentObject\cloneObject(), ilObjSurvey\cloneObject(), ilTestFixedQuestionSetConfig\cloneQuestionSetRelatedData(), ilObjForumGUI\confirmDeleteThreadDraftsObject(), ilObjContentObject\copyAllPagesAndChapters(), ilObjSurveyQuestionPool\copyQuestion(), ilObjQuestionPool\copyQuestion(), ilTestRandomQuestionSetPoolDeriver\copyQuestionsToPool(), ilGlossaryAct\copyTerm(), countReferences(), ilObjSAHSLearningModule\create(), ilObjGlossary\create(), ilObjOrgUnit\create(), ilObjForum\create(), ilObjMediaCast\create(), ilObjWiki\create(), ilObjSession\create(), ilObjGroup\create(), ilObjCourse\create(), ilObjStyleSheet\create(), ilContainer\create(), ilContainer\createContainerDirectory(), ilObjChatroom\createDefaultRole(), ilObjSurveyQuestionPool\createExportDirectory(), ilObjContentObject\createExportDirectory(), ilObjGlossary\createExportDirectory(), ilObjQuestionPool\createExportDirectory(), ilObjTest\createExportDirectory(), ilObjStyleSheet\createExportDirectory(), ilObjSurvey\createExportDirectory(), ilStudyProgramme\createForObject(), ilObjCourseVerification\createFromCourse(), ilObjExerciseVerification\createFromExercise(), ilObjSCORMVerification\createFromSCORMLM(), ilObjTestVerification\createFromTest(), ilObjStyleSheet\createFromXMLFile(), ilObjStyleSheet\createImagesDirectory(), ilObjContentObject\createImportDirectory(), ilObjSurveyQuestionPool\createImportDirectory(), ilObjGlossary\createImportDirectory(), ilObjStyleSheet\createImportDirectory(), ilObjSurvey\createImportDirectory(), ilObjContentObject\createLMTree(), ilObjMediaPool\createMepTree(), createMetaData(), ilObjRole\createPermissionIntersection(), ilObjContentObject\createProperties(), ilObjSCORM2004LearningModule\createScorm2004Tree(), ilObjStudyProgramme\createSettings(), ilObjForum\createSettings(), ilObjWiki\createWikiPage(), ilObjOrgUnit\deassignUserFromEmployeeRole(), ilObjOrgUnit\deassignUserFromLocalRole(), ilIndividualAssessmentAccessHandler\deassignUserFromMemberRole(), ilObjOrgUnit\deassignUserFromSuperiorRole(), ilObjWiki\decorateAdvMDValue(), ilObjSCORMLearningModule\decreaseAttemptsForUser(), ilObjCategory\delete(), ilObjRoleTemplate\delete(), ilObjSystemFolder\delete(), ilObjExternalFeed\delete(), ilObjBookingPool\delete(), ilObjLinkResource\delete(), ilObjQuestionPool\delete(), ilObjChatroom\delete(), ilObjExercise\delete(), ilContainerReference\delete(), ilObjMediaCast\delete(), ilObjRole\delete(), ilObjWiki\delete(), ilObjOrgUnit\delete(), ilObjContentObject\delete(), ilObjSession\delete(), ilObjForum\delete(), ilObjGroup\delete(), ilObjTest\delete(), ilObjGlossary\delete(), ilObjCourse\delete(), ilObjSAHSLearningModule\delete(), ilObjUser\delete(), ilObjStyleSheet\delete(), ilObjSurveyQuestionPool\deleteAllData(), ilObjSurvey\deleteAllUserData(), ilObjStyleSheet\deleteCharacteristic(), ilObjStyleSheet\deleteCustomStylePars(), ilObjRole\deleteLocalPolicies(), ilIndividualAssessmentMembersStorageDB\deleteMembers(), deleteMetaData(), ilObjUser\deleteMultiTextFields(), ilObjMediaCast\deleteOrder(), ilObjUser\deletePref(), ilObjQuestionPool\deleteQuestionpool(), ilIndividualAssessmentSettingsStorageDB\deleteSettings(), ilObjStyleSheet\deleteStylePar(), ilObjStyleSheet\deleteStyleParOfChar(), ilObjSurvey\deleteSurveyRecord(), ilObjTest\deleteTest(), ilObjSCORM2004LearningModule\deleteTrackingDataOfUsers(), ilObjSCORMLearningModule\deleteTrackingDataOfUsers(), ilObjRootFolder\deleteTranslation(), ilObjCategory\deleteTranslation(), ilObjOrgUnit\deleteTranslation(), ilObjUser\deleteUserDefinedFieldEntries(), ilObjExercise\determinStatusOfUser(), ilObjStyleSheet\do_3_10_Migration(), ilObjUser\dropDesktopItem(), ilObjQuestionPool\duplicateQuestion(), ilObjSurvey\duplicateQuestionForSurvey(), ilObjTest\duplicateQuestionForTest(), ilTestRandomQuestionSetPoolDeriver\duplicateTaxonomies(), ilObjSCORM2004LearningModule\executeDragDrop(), ilObjContentObject\executeDragDrop(), ilObjExercise\exportGradesExcel(), ilObjGlossary\exportHTML(), ilObjContentObject\exportHTML(), ilObjSCORM2004LearningModule\exportHTML4PDF(), ilObjContentObject\exportHTMLPages(), ilObjSCORM2004LearningModule\exportHTMLScoObjects(), ilObjSCORM2004LearningModule\exportPDF(), ilObjUser\exportPersonalData(), ilObjSCORM2004LearningModule\exportScorm(), ilObjContentObject\exportSCORM(), ilObjSCORMLearningModule\exportSelected(), ilObjMediaPool\exportXML(), ilObjQuestionPool\exportXMLMetaData(), ilObjGlossary\exportXMLMetaData(), ilObjSCORM2004LearningModule\exportXMLMetaData(), ilObjContentObject\exportXMLMetaData(), ilObjTest\exportXMLMetaData(), ilObjContentObject\exportXMLPageObjects(), ilObjSCORM2004LearningModule\exportXMLScoObjects(), ilObjSCORM2004LearningModule\exportXMLStructureObjects(), ilIndividualAssessmentSettingsGUI\fillForm(), ilObjWiki\fixImportantPagesNumbering(), ilObjContentObject\fixTree(), ilObjTest\fromXML(), ilStudyProgrammeExpandableProgressListGUI\getAccordionContentCoursesHTML(), ilObjTest\getActiveIdOfUser(), ilObjGlossary\getAllGlossaryIds(), ilObjQuestionPool\getAllQuestionIds(), ilObjQuestionPool\getAllQuestions(), ilObjSCORMLearningModule\getAllScoIds(), ilObjSAHSLearningModule\getApiStudentId(), ilObjSCORMLearningModule\getAttemptsForUser(), ilObjSCORM2004LearningModule\getAttemptsForUser(), ilObjSCORMLearningModule\getAttemptsForUsers(), ilObjSurvey\getAuthor(), ilObjTest\getAuthor(), ilContainer\getBigIconPath(), ilObjStudyProgramme\getChildren(), ilObjUser\getClipboardObjects(), ilContainer\getContainerDirectory(), ilObjStudyProgramme\getContainerDirectory(), ilObjForum\getCountUnread(), ilObjSCORM2004LearningModule\getCourseCompletionForUser(), ilTermsOfServiceHelper\getCurrentAcceptanceForUser(), ilContainer\getCustomIconPath(), ilObjFileBasedLM\getDataDirectory(), ilObjSAHSLearningModule\getDataDirectory(), ilObjContentObject\getDataDirectory(), ilObjUser\getDesktopItems(), ilObjSurveyQuestionPool\getExportDirectory(), ilObjContentObject\getExportDirectory(), ilObjGlossary\getExportDirectory(), ilObjQuestionPool\getExportDirectory(), ilObjTest\getExportDirectory(), ilObjSurvey\getExportDirectory(), ilObjGlossary\getExportFiles(), ilObjStyleSheet\getExportSubDir(), ilMailOptions\getExternalEmailsByUser(), ilObjExternalFeed\getFeedBlock(), ilObjIndividualAssessment\getFileStorage(), ilObjStudyProgramme\getIdsFromNodesOnPathFromRootToHere(), ilObjTest\getImagePath(), ilObjTest\getImagePathWeb(), ilObjStyleSheet\getImagesDirectory(), ilObjContentObject\getImportDirectory(), ilObjSurveyQuestionPool\getImportDirectory(), ilObjGlossary\getImportDirectory(), ilObjSurvey\getImportDirectory(), ilObjStudyProgramme\getLPChildren(), ilObjSAHSLearningModule\getMaxPoints(), ilObjMediaPool\getMediaObjects(), ilObjSCORMLearningModule\getModuleVersionForUser(), ilObjSCORM2004LearningModule\getModuleVersionForUser(), ilObjSCORMLearningModule\getModuleVersionForUsers(), ilObjUser\getOrgUnitsRepresentation(), ilObjUser\getPCClipboardContent(), ilObjUser\getPersonalDataExportFile(), ilObjUser\getPersonalPicturePath(), ilObjSAHSLearningModule\getPointsInPercent(), ilObjMediaPool\getPoolTree(), ilAbstractUsersGalleryCollectionProvider\getPopulatedGroup(), ilObjQuestionPool\getPrintviewQuestions(), ilObjStudyProgramme\getProgresses(), ilObjStudyProgramme\getProgressesOf(), ilObjStudyProgramme\getProgressForAssignment(), ilObjContentObject\getPublicExportFiles(), ilObjQuestionPool\getQplQuestions(), ilObjQuestionPool\getQuestionList(), ilObjSurveyQuestionPool\getQuestions(), ilObjSurveyQuestionPool\getQuestionsData(), ilObjSCORM2004LearningModule\getSequencingSettings(), ilContainer\getSmallIconPath(), ilObjCourse\getSubItems(), ilContainer\getSubItems(), ilObjGlossary\getTaxonomyId(), ilObjQuestionPool\getTaxonomyIds(), ilObjWiki\getTemplateSelectionOnCreation(), ilContainer\getTinyIconPath(), ilObjSCORMLearningModule\getTrackedItems(), ilObjSCORM2004LearningModule\getTrackedItems(), ilObjSCORMLearningModule\getTrackedUsers(), ilObjSCORMLearningModule\getTrackingDataAgg(), ilObjSCORM2004LearningModule\getTrackingDataAgg(), ilObjSCORMLearningModule\getTrackingDataAggSco(), ilObjSCORMLearningModule\getTrackingDataPerUser(), ilObjSCORMLearningModule\getTrackingItems(), ilObjRootFolder\getTranslations(), ilObjCategory\getTranslations(), ilObjOrgUnit\getTranslations(), ilObjSCORM2004LearningModule\getTree(), ilObjMediaPool\getUsedFormats(), ilObjSAHSLearningModule\getViewButton(), ilObjSession\handleAutoFill(), ilObjGroup\handleAutoFill(), ilObjCourse\handleAutoFill(), ilObjMediaCast\handleLPUpdate(), ilECSAppEventListener\handleMembership(), ilObjUser\hasToAcceptTermsOfService(), ilObjExercise\hasUserCertificate(), ilObjStyleSheet\ilClone(), ilObjStyleSheet\import(), ilObjContentObject\importFromDirectory(), ilObjSurveyQuestionPool\importObject(), ilObjSurvey\importObject(), ilTestImporter\importQuestionSkillAssignments(), ilObjSCORMLearningModule\importRaw(), ilTestImporter\importSkillLevelThresholds(), ilObjSCORM2004LearningModule\importSuccess(), ilObjSCORMLearningModule\importSuccess(), ilObjSession\initAppointments(), ilObjCourse\initCourseMemberObject(), ilObjCourse\initCourseMembersObject(), ilObjCloudGUI\initCreateForm(), ilObjSession\initDefaultRoles(), ilObjForum\initDefaultRoles(), ilObjGroup\initDefaultRoles(), ilObjCourse\initDefaultRoles(), ilIndividualAssessmentAccessHandler\initDefaultRolesForObject(), ilObjLinkResource\initLinkResourceItemsObject(), ilObjSession\initParticipants(), ilObjGroup\initParticipants(), ilObjCourse\initWaitingList(), ilIndividualAssessmentMembersStorageDB\insertMembersRecord(), ilObjIndividualAssessment\isActiveLP(), ilObjUser\isAnonymous(), ilObjUser\isDesktopItem(), shibUser\isNew(), ilObjSurvey\isSurveyStarted(), ilObjSurveyQuestionPool\loadFromDb(), ilObjQuestionPool\loadFromDb(), ilObjSurvey\loadFromDb(), ilObjTest\loadFromDb(), ilIndividualAssessmentSettingsStorageDB\loadInfoSettings(), ilIndividualAssessmentMembersStorageDB\loadMember(), ilIndividualAssessmentMembersStorageDB\loadMembers(), ilIndividualAssessmentSettingsStorageDB\loadSettings(), ilObjTest\logAction(), ilObjForum\markAllThreadsRead(), ilObjForum\markPostRead(), ilObjLinkResource\MDUpdateListener(), MDUpdateListener(), ilObjContentObject\MDUpdateListener(), ilObjGlossary\modifyExportIdentifier(), ilObjSurveyQuestionPool\paste(), ilObjQuestionPool\pasteFromClipboard(), ilObjSurveyQuestionPool\pasteFromClipboard(), ilObjSAHSLearningModule\populateByDirectoy(), ilObjQuestionPool\populateQuestionSkillAssignmentsXml(), ilObjExercise\processExerciseStatus(), ilObjFolder\putInTree(), putInTree(), ilObject2GUI\putObjectInTree(), ilObjectGUI\putObjectInTree(), ilObjTest\randomSelectQuestions(), ilObjRoleFolder\read(), ilObjSAHSLearningModule\read(), ilObjFileBasedLM\read(), ilObjGlossary\read(), ilObjBookingPool\read(), ilObjMediaPool\read(), ilObjContentObject\read(), ilContainerReference\read(), ilObjExercise\read(), ilObjMediaCast\read(), ilObjFolder\read(), ilObjWiki\read(), ilObjSession\read(), ilObjCourse\read(), ilObjGroup\read(), ilContainer\read(), ilObjStyleSheet\read(), ilContainer\readContainerSettings(), ilObjMediaCast\readItems(), ilObjUser\readMultiTextFields(), ilObjSCORM2004LearningModule\readObject(), ilObjMediaCast\readOrder(), ilObjContentObject\readProperties(), ilObjRoleGUI\readRoleProperties(), ilObjStudyProgramme\readSettings(), ilObjUser\readUserDefinedFields(), ilGlossaryAct\referenceTerms(), ilObjUser\refreshLogin(), ilObjGroup\register(), ilObjCourse\register(), ilObjStudyProgramme\removeAssignment(), ilContainer\removeCustomIcon(), ilObjSystemFolder\removeHeaderTitleTranslations(), ilObjStudyProgramme\removeLeaf(), ilIndividualAssessmentMembersStorageDB\removeMembersRecord(), ilObjStudyProgramme\removeNode(), ilObjUser\removeObjectFromClipboard(), ilObjSurvey\removeSelectedSurveyResults(), ilObjTest\removeTestResults(), ilObjCategory\removeTranslations(), ilObjRootFolder\removeTranslations(), ilObjOrgUnit\removeTranslations(), ilObjStyleSheet\replaceStylePar(), ilObjUser\resetLastPasswordChange(), ilObjUser\resetOwner(), ilCourseObjectiveResult\resetTestForUser(), shibUser\returnNewLoginName(), ilObjBibliographicGUI\save(), ilObjSurvey\saveAuthorToMetadata(), ilObjTest\saveAuthorToMetadata(), ilObjExercise\saveCertificateVisibility(), ilObjExercise\saveData(), ilObjForum\saveData(), ilObjStyleSheet\saveHideStatus(), ilContainer\saveIcons(), ilObjStudyProgramme\saveIcons(), ilExAssignment\saveMultiFeedbackFiles(), ilObjMediaCast\saveOrder(), ilObjWiki\saveOrderingAndIndentation(), ilObjSurveyQuestionPool\saveToDb(), ilObjQuestionPool\saveToDb(), ilObjSurvey\saveToDb(), ilObjTest\saveToDb(), ilObjExercise\sendAssignment(), ilObjExercise\sendFeedbackFileNotification(), ilAccountRegistrationMail\sendLanguageVariableBasedAccountMail(), ilObjUser\sendPersonalDataFile(), ilCronDeleteInactiveUserReminderMail\sendReminder(), ilObjUser\setDesktopItemParameters(), ilObjSurvey\setInvitation(), ilObjSCORMLearningModule\setLearningProgressSettingsAtUpload(), ilObjOrgUnit\setOrgUnitTypeId(), ilObjLanguageFolderGUI\setUserLanguageObject(), ilPasswordAssistanceGUI\submitAssistanceForm(), ilObjCourse\syncMembersStatusWithLP(), ilObjLinkResource\toXML(), ilObjSurveyQuestionPool\toXML(), ilObjSurvey\toXML(), ilTermsOfServiceHelper\trackAcceptance(), ilAccountRegistrationMail\trySendingUserDefinedAccountMail(), ilObjFileBasedLM\update(), ilObjBookingPool\update(), ilObjOrgUnit\update(), ilObjNull\update(), ilObjStudyProgramme\update(), ilObjMediaCast\update(), ilContainerReference\update(), ilObjExercise\update(), ilObjWiki\update(), ilObjGlossary\update(), ilObjForum\update(), ilObjSession\update(), update(), ilObjGroup\update(), ilObjSAHSLearningModule\update(), ilContainer\update(), ilObjCourse\update(), ilObjStyleSheet\update(), ilObjStudyProgramme\updateAllAssignments(), ilObjStyleSheet\updateColor(), ilECSAppEventListener\updateEnrolmentStatus(), ilObjForum\updateLastAccess(), ilObjUser\updateLogin(), ilObjQuestionPool\updateMetaData(), updateMetaData(), ilObjForum\updateModeratorRole(), ilObjUser\updateMultiTextFields(), ilObjRole\updateOperationStack(), updateOwner(), ilObjContentObject\updateProperties(), ilObjSCORM2004LearningModule\updateSequencingSettings(), ilObjCourse\updateSettings(), ilObjCategory\updateTranslation(), ilObjOrgUnit\updateTranslation(), ilObjUser\updateUserDefinedFields(), ilObjExercise\updateUserStatus(), ilIndividualAssessmentMembers\userAllreadyMember(), ilObjContentObject\validatePages(), ilIndividualAssessmentMembers\withAdditionalUser(), ilIndividualAssessmentMembers\withoutPresentUser(), ilObjUser\writeAccepted(), ilObjStyleSheet\writeCSSFile(), ilObjContentObject\writeStyleSheetId(), and ilObjSAHSLearningModule\zipLmForOfflineMode().

309  {
310  return $this->id;
311  }
+ Here is the caller graph for this function:

◆ getImportId()

ilObject::getImportId ( )

get import id

public

Returns
string import id

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

References $import_id.

Referenced by ilSoapUserAdministration\__readUserData(), create(), and update().

459  {
460  return $this->import_id;
461  }
+ Here is the caller graph for this function:

◆ getLastUpdateDate()

ilObject::getLastUpdateDate ( )

get last update date public

Returns
string date of last update

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

References $last_update.

578  {
579  return $this->last_update;
580  }

◆ getLongDescription()

ilObject::getLongDescription ( )

get object long description (stored in object_description)

public

Returns
string object description

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

References $desc.

Referenced by _prepareCloneSelection(), create(), createMetaData(), ilObjGroup\prepareAppointments(), ilObjCourse\prepareAppointments(), ilObjSession\prepareCalendarAppointments(), update(), and updateMetaData().

448  {
449  return strlen($this->long_desc) ? $this->long_desc : $this->desc;
450  }
+ Here is the caller graph for this function:

◆ getLongDescriptions()

static ilObject::getLongDescriptions ( array  $a_obj_ids)
static

Get long description data.

Parameters
array$a_obj_ids
Returns
array

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

References $DIC, $ilDB, $res, $row, and array.

Referenced by ilContainer\getCompleteDescriptions().

2031  {
2032  global $DIC;
2033 
2034  $ilDB = $DIC->database();
2035 
2036  $res = $ilDB->query("SELECT * FROM object_description" .
2037  " WHERE " . $ilDB->in("obj_id", $a_obj_ids, "", "integer"));
2038  $all = array();
2039  while ($row = $ilDB->fetchAssoc($res)) {
2040  $all[$row["obj_id"]] = $row["description"];
2041  }
2042  return $all;
2043  }
global $DIC
Definition: saml.php:7
foreach($_POST as $key=> $value) $res
Create styles array
The data for the language used.
global $ilDB
+ Here is the caller graph for this function:

◆ getOwner()

ilObject::getOwner ( )

get object owner

public

Returns
integer owner id

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

References $owner.

Referenced by ilObjForum\cloneAutoGeneratedRoles(), create(), getOwnerName(), ilObjTest\sendAdvancedNotification(), ilObjTest\sendSimpleNotification(), ilObjForum\setPermissions(), and updateOwner().

510  {
511  return $this->owner;
512  }
+ Here is the caller graph for this function:

◆ getOwnerName()

ilObject::getOwnerName ( )

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

References _lookupOwnerName(), and getOwner().

521  {
522  return ilObject::_lookupOwnerName($this->getOwner());
523  }
getOwner()
get object owner
static _lookupOwnerName($a_owner_id)
lookup owner name for owner id
+ Here is the call graph for this function:

◆ getPossibleSubObjects()

ilObject::getPossibleSubObjects (   $a_filter = true)

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

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

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

2202  {
2203  return $this->objDefinition->getSubObjects($this->type, $a_filter);
2204  }

◆ getPresentationTitle()

ilObject::getPresentationTitle ( )

get presentation title Normally same as title Overwritten for sessions

public

Parameters

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

References getTitle().

374  {
375  return $this->getTitle();
376  }
getTitle()
get object title public
+ Here is the call graph for this function:

◆ getRefId()

ilObject::getRefId ( )

get reference id public

Returns
integer reference id

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

References $ref_id.

Referenced by ilOrgUnitExportGUI\__construct(), ilContainerStartObjectsContentGUI\__construct(), ilSurveyPageGUI\__construct(), ilObjCourse\__getLocalRoles(), _prepareCloneSelection(), ilObjSurvey\addAppraisee(), ilObjStudyProgrammeCache\addInstance(), ilObjStudyProgramme\addLeaf(), ilObjStudyProgramme\addNode(), ilObjSurvey\addRater(), ilObjLinkResourceGUI\afterSave(), ilObjBookingPoolGUI\afterSave(), ilObjMediaCastGUI\afterSave(), ilObjExerciseGUI\afterSave(), ilContainerReferenceGUI\afterSave(), ilObjFolderGUI\afterSave(), ilObjSurveyGUI\afterSave(), ilObjOrgUnitGUI\afterSave(), ilObjIndividualAssessmentGUI\afterSave(), ilObjectPluginGUI\afterSave(), ilObjWikiGUI\afterSave(), ilObjStudyProgrammeGUI\afterSave(), ilObjMediaPoolGUI\afterSave(), ilObjGroupGUI\afterSave(), ilObjFileBasedLMGUI\afterSave(), ilObjSurveyQuestionPoolGUI\afterSave(), ilObjCategoryGUI\afterSave(), ilObjQuestionPoolGUI\afterSave(), ilObjTestGUI\afterSave(), ilObjContentObjectGUI\afterSave(), ilObjForumGUI\afterSave(), ilObjCourseGUI\afterSave(), ilObjItemGroupGUI\afterSaveCallback(), ilObjSessionGUI\afterSaveCallback(), applyDidacticTemplate(), ilObjGroup\applyDidacticTemplate(), ilObjOrgUnit\assignUsersToEmployeeRole(), ilObjOrgUnit\assignUsersToSuperiorRole(), ilObjOrgUnit\assignUserToLocalRole(), ilObjGlossary\autoLinkGlossaryTerms(), ilObjSurvey\checkReminder(), ilObjForum\cloneAutoGeneratedRoles(), ilObjGroup\cloneAutoGeneratedRoles(), ilObjCourse\cloneAutoGeneratedRoles(), ilObjFolder\cloneDependencies(), ilContainer\cloneDependencies(), ilObjGroup\cloneDependencies(), ilObjCourse\cloneDependencies(), cloneDependencies(), ilObjGroup\cloneObject(), ilObjGlossary\cloneObject(), ilTestFixedQuestionSetConfig\cloneQuestionSetRelatedData(), ilObjContentObject\copyAllPagesAndChapters(), ilGlossaryAct\copyTerm(), countReferences(), ilObjChatroom\createDefaultRole(), ilDidacticTemplateLocalPolicyAction\createLocalPolicy(), ilObjTest\createRandomSolutions(), ilObjRoleFolder\createRole(), ilObjWiki\createWikiPage(), ilObjOrgUnit\deassignUserFromEmployeeRole(), ilObjOrgUnit\deassignUserFromLocalRole(), ilObjOrgUnit\deassignUserFromSuperiorRole(), ilObjWiki\decorateAdvMDValue(), ilObjRoleFolder\delete(), ilObjOrgUnit\delete(), ilObjSurvey\disinviteUser(), ilObjFolder\downloadFolder(), ilObjExercise\exportGradesExcel(), ilDidacticTemplateAction\filterRoles(), ilStudyProgrammeExpandableProgressListGUI\getAccordionContentCoursesHTML(), ilObjGlossary\getAllGlossaryIds(), ilObjStudyProgramme\getChildren(), ilObjStudyProgramme\getCompletedCourses(), ilObjGroup\getDefaultAdminRole(), ilObjCourse\getDefaultAdminRole(), ilObjCourse\getDefaultCourseRoles(), ilObjGroup\getDefaultGroupRoles(), ilObjGroup\getDefaultMemberRole(), ilObjCourse\getDefaultTutorRole(), ilObjGroup\getGroupAdminIds(), ilObjCourse\getLocalCourseRoles(), ilObjGroup\getLocalGroupRoles(), ilObjStudyProgramme\getLPChildren(), ilIndividualAssessmentAccessHandler\getMemberRoleIdForObj(), ilObjSurvey\getNotificationTargetUserIds(), ilObjStudyProgramme\getParent(), ilObjStudyProgramme\getParentId(), ilIndividualAssessmentAccessHandler\getRoleTitleByObj(), ilContainer\getSubItems(), ilObjSurvey\getSurveyCodesForExport(), ilObjSurvey\getSurveyCodesTableData(), ilObjGlossary\getTermList(), ilObjGroup\handleAutoFill(), ilObjCourse\handleAutoFill(), ilObjectGUI\handleAutoRating(), ilObjMediaCast\handleLPUpdate(), ilObjContentObject\importFromDirectory(), ilObjCloudGUI\initCreateForm(), ilObjSession\initDefaultRoles(), ilObjForum\initDefaultRoles(), ilObjGroup\initDefaultRoles(), ilObjCourse\initDefaultRoles(), ilIndividualAssessmentAccessHandler\initDefaultRolesForObject(), ilObjGroup\initGroupStatus(), ilObjSurvey\inviteUser(), ilObjRoleFolder\isDeleted(), ilObjGroup\leaveGroup(), ilOrgUnitExportGUI\listExportFiles(), ilObjTest\logAction(), MDUpdateListener(), ilObjStudyProgramme\moveTo(), ilObjSAHSLearningModule\populateByDirectoy(), ilObjRoleFolder\purge(), ilObjFolder\putInTree(), putInTree(), ilObject2GUI\putObjectInTree(), ilObjectGUI\putObjectInTree(), ilObjGroup\readGroupStatus(), ilGlossaryAct\referenceTerms(), ilObjCourse\register(), ilTestRandomQuestionSetConfig\registerClonedSourcePoolDefinitionIdMapping(), ilContainer\removeCustomIcon(), ilObjStudyProgramme\removeNode(), ilDidacticTemplateLocalPolicyAction\revertLocalPolicy(), ilObjSurvey\send360ReminderToUser(), ilObjSurvey\sendAppraiseeCloseNotification(), ilObjSurvey\sendAppraiseeNotification(), ilObjExercise\sendAssignment(), ilObjSurvey\sendCodes(), ilObjSCORMLearningModule\sendExportFile(), ilObjExercise\sendFeedbackFileNotification(), ilExAssignment\sendMultiFeedbackStructureFile(), ilObjSurvey\sendNotificationMail(), ilObjSurvey\sendRaterNotification(), ilObjSurvey\sendTutorNotification(), ilObjSurvey\sentReminder(), setParentRolePermissions(), ilObjGroup\setParentRolePermissions(), ilObjCourse\setParentRolePermissions(), ilObjForum\setPermissions(), ilObjForum\update(), update(), ilLOEditorGUI\updateMaterialAssignments(), and ilObjOrgUnit\writePath().

340  {
341  return $this->ref_id;
342  }
+ Here is the caller graph for this function:

◆ getTitle()

ilObject::getTitle ( )

get object title public

Returns
string object title

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

References $title.

Referenced by _prepareCloneSelection(), ilObjectDataDeletionLog\add(), ilObjFileBasedLMGUI\afterSave(), ilObjCategoryGUI\afterSave(), appendCopyInfo(), ilObjFileBasedLM\cloneObject(), ilObjMediaPool\cloneObject(), countReferences(), create(), ilObjCourseVerification\createFromCourse(), ilObjExerciseVerification\createFromExercise(), ilObjSCORMVerification\createFromSCORMLM(), ilObjTestVerification\createFromTest(), createMetaData(), ilObjTest\deliverPDFfromFO(), ilObjTest\deliverPDFfromHTML(), ilObjFolder\downloadFolder(), ilObjExercise\exportGradesExcel(), ilObjSCORM2004LearningModule\exportHTML(), ilObjSCORMLearningModule\exportSelected(), ilIndividualAssessmentSettingsGUI\fillForm(), ilTermUsagesTableGUI\fillRow(), ilStudyProgrammeExpandableProgressListGUI\getAccordionContentCoursesHTML(), ilObjRoleTemplate\getFilterOfInternalTemplate(), ilObjSession\getPresentationTitle(), ilObjRole\getPresentationTitle(), ilContainerReference\getPresentationTitle(), getPresentationTitle(), ilObjTest\getTitleFilenameCompliant(), ilStudyProgrammeIndividualPlanProgressListGUI\getTitleForItem(), ilStudyProgrammeProgressListGUI\getTitleForItem(), ilObjStyleSheet\getXML(), ilObjCourse\handleAutoFill(), ilObjStyleSheet\ilClone(), ilObjSurvey\isComplete(), ilObjRoleTemplate\isInternalTemplate(), ilObjGroup\prepareAppointments(), ilObjCourse\prepareAppointments(), ilObjSession\prepareCalendarAppointments(), putInTree(), ilObjRoleFolder\read(), ilObjRoleGUI\readRoleProperties(), ilObjGroup\register(), ilObjForum\saveData(), ilObjSurvey\send360ReminderToUser(), ilObjTest\sendAdvancedNotification(), ilObjSurvey\sendAppraiseeCloseNotification(), ilObjSurvey\sendAppraiseeNotification(), ilObjExercise\sendAssignment(), ilObjSurvey\sendRaterNotification(), ilObjTest\sendSimpleNotification(), ilObjSurvey\sendTutorNotification(), ilObjSurvey\sentReminder(), ilObjSurveyQuestionPool\toXML(), ilObjSurvey\toXML(), ilObjTest\toXML(), ilObjForum\update(), update(), updateMetaData(), ilObjRole\validate(), ilObjGroup\validate(), and ilObjCourse\validate().

385  {
386  return $this->title;
387  }
+ Here is the caller graph for this function:

◆ getType()

ilObject::getType ( )

get object type public

Returns
string object type

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

References $type.

Referenced by ilObjectXMLWriter\__appendObjectProperties(), _prepareCloneSelection(), ilObjectDataDeletionLog\add(), appendCopyInfo(), ilObjContentObject\autoLinkGlossaryTerms(), ilObjTest\cleanupMediaobjectUsage(), cloneMetaData(), ilObjSurveyQuestionPool\cloneObject(), ilObjQuestionPool\cloneObject(), countReferences(), ilObjGlossary\createExportDirectory(), ilStudyProgramme\createForObject(), ilObjMediaObject\createMetaData(), createMetaData(), ilObjContentObject\createProperties(), ilObjExternalFeed\delete(), ilObjMediaObject\deleteMetaData(), deleteMetaData(), ilTestRandomQuestionSetPoolDeriver\duplicateTaxonomies(), ilObjContentObject\executeDragDrop(), ilObjGlossary\exportHTML(), ilObjContentObject\exportHTML(), ilObjContentObject\exportHTMLPages(), ilObjContentObject\exportSCORM(), ilObjMediaPool\exportXML(), ilObjContentObject\exportXML(), ilObjQuestionPool\exportXMLMetaData(), ilObjGlossary\exportXMLMetaData(), ilObjSCORM2004LearningModule\exportXMLMetaData(), ilObjContentObject\exportXMLMetaData(), ilObjTest\exportXMLMetaData(), ilObjContentObject\exportXMLPageObjects(), ilObjSurvey\getAuthor(), ilObjTest\getAuthor(), ilObjGlossary\getExportDirectory(), ilObjQuestionPool\getExportDirectory(), ilObjGlossary\getExportFiles(), ilObjSCORM2004LearningModule\getExportFiles(), ilObjExternalFeed\getFeedBlock(), ilContainer\getGroupedObjTypes(), ilECSObjectSettings\getInstanceByObject(), ilObjMediaObject\getXML(), ilObjectGUI\handleAutoRating(), ilObjMediaObject\handleQuotaUpdate(), ilObjStyleSheet\ilClone(), ilObjContentObject\importFromDirectory(), ilObjLinkResource\MDUpdateListener(), ilObjMediaObject\MDUpdateListener(), MDUpdateListener(), ilObjContentObject\MDUpdateListener(), putInTree(), ilObjMediaCast\readItems(), ilObjContentObject\readProperties(), ilObjSurvey\saveAuthorToMetadata(), ilObjTest\saveAuthorToMetadata(), setParentRolePermissions(), ilObjGroup\setParentRolePermissions(), ilObjSurveyQuestionPool\toXML(), ilObjSurvey\toXML(), ilObjNull\update(), update(), ilObjGroup\updateGroupType(), ilObjQuestionPool\updateMetaData(), ilObjMediaObject\updateMetaData(), updateMetaData(), ilObjContentObject\updateProperties(), and ilObjContentObject\validatePages().

350  {
351  return $this->type;
352  }
+ Here is the caller graph for this function:

◆ getUntranslatedTitle()

ilObject::getUntranslatedTitle ( )

get untranslated object title public

Returns
string object title

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

References $untranslatedTitle.

395  {
397  }

◆ getXMLZip()

ilObject::getXMLZip ( )

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

1645  {
1646  return false;
1647  }

◆ hasAutoRating()

static ilObject::hasAutoRating (   $a_type,
  $a_ref_id 
)
static

Check if auto rating is active for parent group/course.

Parameters
string$a_type
int$a_ref_id
Returns
bool

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

References $a_type, $DIC, $tree, ilContainer\_lookupContainerSetting(), _lookupObjId(), array, and ilObjectServiceSettingsGUI\AUTO_RATING_NEW_OBJECTS.

Referenced by ilObjWikiGUI\getSettingsFormValues(), and ilObjectGUI\handleAutoRating().

2163  {
2164  global $DIC;
2165 
2166  $tree = $DIC->repositoryTree();
2167 
2168  if (!$a_ref_id ||
2169  !in_array($a_type, array("file", "lm", "wiki"))) {
2170  return false;
2171  }
2172 
2173  // find parent container
2174  $parent_ref_id = $tree->checkForParentType($a_ref_id, "grp");
2175  if (!$parent_ref_id) {
2176  $parent_ref_id = $tree->checkForParentType($a_ref_id, "crs");
2177  }
2178  if ($parent_ref_id) {
2179  include_once './Services/Object/classes/class.ilObjectServiceSettingsGUI.php';
2180 
2181  // get auto rate setting
2182  $parent_obj_id = ilObject::_lookupObjId($parent_ref_id);
2184  $parent_obj_id,
2186  false
2187  );
2188  }
2189  return false;
2190  }
global $DIC
Definition: saml.php:7
$a_type
Definition: workflow.php:92
static _lookupObjId($a_id)
Create styles array
The data for the language used.
static _lookupContainerSetting($a_id, $a_keyword, $a_default_value=null)
Lookup a container setting.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ 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 setup default local roles you MUST overwrite this method in derived object classes (see ilObjForum for an example) public

Returns
array empty array

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

References array.

Referenced by setPermissions().

1568  {
1569  return array();
1570  }
Create styles array
The data for the language used.
+ Here is the caller graph for this function:

◆ isUserRegistered()

ilObject::isUserRegistered (   $a_user_id = 0)

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

1634  {
1635  return false;
1636  }

◆ MDUpdateListener()

ilObject::MDUpdateListener (   $a_element)

Meta data 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.

Parameters
string$a_element

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

References $GLOBALS, $id, array, getId(), getRefId(), getType(), setDescription(), setTitle(), and update().

759  {
760  include_once 'Services/MetaData/classes/class.ilMD.php';
761 
762  $GLOBALS['ilAppEventHandler']->raise(
763  'Services/Object',
764  'update',
765  array('obj_id' => $this->getId(),
766  'obj_type' => $this->getType(),
767  'ref_id' => $this->getRefId())
768  );
769 
770  switch ($a_element) {
771  case 'General':
772 
773  // Update Title and description
774  $md = new ilMD($this->getId(), 0, $this->getType());
775  if (!is_object($md_gen = $md->getGeneral())) {
776  return false;
777  }
778  $this->setTitle($md_gen->getTitle());
779 
780  foreach ($md_gen->getDescriptionIds() as $id) {
781  $md_des = $md_gen->getDescription($id);
782  $this->setDescription($md_des->getDescription());
783  break;
784  }
785  $this->update();
786  break;
787 
788  default:
789  }
790 
791  return true;
792  }
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
setTitle($a_title)
set object title
getId()
get object id public
getType()
get object type public
Create styles array
The data for the language used.
getRefId()
get reference id public
setDescription($a_desc)
set object description
update()
update object in db
+ Here is the call graph for this function:

◆ putInTree()

ilObject::putInTree (   $a_parent_ref)

maybe this method should be in tree object!?

Todo:
role/rbac stuff
Parameters
int$a_parent_refRef-ID of the parent object

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

References $app_event_handler, $ilLog, $log, $tree, array, getId(), getRefId(), getTitle(), and getType().

Referenced by ilObject2GUI\putObjectInTree(), and ilObjectGUI\putObjectInTree().

1297  {
1298  $tree = $this->tree;
1299  $ilLog = $this->log;
1300  $ilAppEventHandler = $this->app_event_handler;
1301 
1302  $tree->insertNode($this->getRefId(), $a_parent_ref);
1303 
1304  // write log entry
1305  $ilLog->write("ilObject::putInTree(), parent_ref: $a_parent_ref, ref_id: " .
1306  $this->getRefId() . ", obj_id: " . $this->getId() . ", type: " .
1307  $this->getType() . ", title: " . $this->getTitle());
1308 
1309  $ilAppEventHandler->raise(
1310  'Services/Object',
1311  'putObjectInTree',
1312  array(
1313  'object' => $this,
1314  'obj_type' => $this->getType(),
1315  'obj_id' => $this->getId(),
1316  'parent_ref_id' => $a_parent_ref,
1317  )
1318  );
1319  }
getId()
get object id public
getTitle()
get object title public
getType()
get object type public
Create styles array
The data for the language used.
getRefId()
get reference id public
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ read()

ilObject::read ( )

read object data from db into object

Parameters
booleanpublic

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

References $db, $DIC, $error, $ilDB, $ilErr, $ilLog, $ilUser, $log, $message, $objDefinition, $query, $r, $res, $row, ilDBConstants\FETCHMODE_OBJECT, and setDescription().

Referenced by __construct().

189  {
190  global $DIC;
191 
193  $ilDB = $this->db;
194  $ilLog = $this->log;
196  try {
197  $ilUser = $DIC["ilUser"];
198  } catch (\InvalidArgumentException $e) {
199  }
200 
201  if ($this->referenced) {
202  // check reference id
203  if (!isset($this->ref_id)) {
204  $message = "ilObject::read(): No ref_id given! (" . $this->type . ")";
205  $ilErr->raiseError($message, $ilErr->WARNING);
206  }
207 
208  // read object data
209 
210  $q = "SELECT * FROM object_data, object_reference WHERE object_data.obj_id=object_reference.obj_id " .
211  "AND object_reference.ref_id= " . $ilDB->quote($this->ref_id, "integer");
212  $object_set = $ilDB->query($q);
213 
214  // check number of records
215  if ($ilDB->numRows($object_set) == 0) {
216  $message = "ilObject::read(): Object with ref_id " . $this->ref_id . " not found! (" . $this->type . ")";
217  $ilErr->raiseError($message, $ilErr->WARNING);
218  }
219 
220  $obj = $ilDB->fetchAssoc($object_set);
221  } else {
222  // check object id
223  if (!isset($this->id)) {
224  $message = "ilObject::read(): No obj_id given! (" . $this->type . ")";
225  $ilErr->raiseError($message, $ilErr->WARNING);
226  }
227 
228  // read object data
229  $q = "SELECT * FROM object_data " .
230  "WHERE obj_id = " . $ilDB->quote($this->id, "integer");
231  $object_set = $ilDB->query($q);
232 
233  // check number of records
234  if ($ilDB->numRows($object_set) == 0) {
235  include_once("./Services/Object/exceptions/class.ilObjectNotFoundException.php");
236  throw new ilObjectNotFoundException("ilObject::read(): Object with obj_id: " . $this->id .
237  " (" . $this->type . ") not found!");
238  return;
239  }
240 
241  $obj = $ilDB->fetchAssoc($object_set);
242  }
243 
244  $this->id = $obj["obj_id"];
245 
246  // check type match (the "xxx" type is used for the unit test)
247  if ($this->type != $obj["type"] && $obj["type"] != "xxx") {
248  $message = "ilObject::read(): Type mismatch. Object with obj_id: " . $this->id . " " .
249  "was instantiated by type '" . $this->type . "'. DB type is: " . $obj["type"];
250 
251  // write log entry
252  $ilLog->write($message);
253 
254  // raise error
255  include_once("./Services/Object/exceptions/class.ilObjectTypeMismatchException.php");
257  return;
258  }
259 
260  $this->type = $obj["type"];
261  $this->title = $obj["title"];
262  // BEGIN WebDAV: WebDAV needs to access the untranslated title of an object
263  $this->untranslatedTitle = $obj["title"];
264  // END WebDAV: WebDAV needs to access the untranslated title of an object
265  $this->desc = $obj["description"];
266  $this->owner = $obj["owner"];
267  $this->create_date = $obj["create_date"];
268  $this->last_update = $obj["last_update"];
269  $this->import_id = $obj["import_id"];
270 
271  if ($objDefinition->isRBACObject($this->getType())) {
272  // Read long description
273  $query = "SELECT * FROM object_description WHERE obj_id = " . $ilDB->quote($this->id, 'integer');
274  $res = $ilDB->query($query);
275  while ($row = $res->fetchRow(ilDBConstants::FETCHMODE_OBJECT)) {
276  if (strlen($row->description)) {
277  $this->setDescription($row->description);
278  }
279  }
280  }
281 
282  // multilingual support systemobjects (sys) & categories (db)
283  $translation_type = $objDefinition->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  } elseif ($translation_type == "db") {
289  $q = "SELECT title,description FROM object_translation " .
290  "WHERE obj_id = " . $ilDB->quote($this->id, 'integer') . " " .
291  "AND lang_code = " . $ilDB->quote($ilUser->getCurrentLanguage(), 'text') . " " .
292  "AND NOT lang_default = 1";
293  $r = $ilDB->query($q);
295  if ($row) {
296  $this->title = $row->title;
297  $this->setDescription($row->description);
298  #$this->desc = $row->description;
299  }
300  }
301  }
global $ilErr
Definition: raiseError.php:16
global $DIC
Definition: saml.php:7
$r
Definition: example_031.php:79
catch(Exception $e) $message
foreach($_POST as $key=> $value) $res
$ilUser
Definition: imgupload.php:18
$query
global $ilDB
setDescription($a_desc)
set object description
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ requireRegistration()

ilObject::requireRegistration ( )

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

References $register.

1639  {
1640  return $this->register;
1641  }

◆ setDeletedDates()

static ilObject::setDeletedDates (   $a_ref_ids)
static

Set deleted date type $ilDB.

Parameters
type$a_ref_ids
Returns
type

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

References $DIC, $GLOBALS, $ilDB, $query, and array.

Referenced by ilTree\moveToTrash().

1066  {
1067  global $DIC;
1068 
1069  $ilDB = $DIC->database();
1070 
1071  $query = 'UPDATE object_reference SET deleted = ' . $ilDB->now() . ' ' .
1072  'WHERE ' . $ilDB->in('ref_id', (array) $a_ref_ids, false, 'integer');
1073 
1074  $GLOBALS['ilLog']->write(__METHOD__ . ': Query is ' . $query);
1075  $ilDB->manipulate($query);
1076  return;
1077  }
global $DIC
Definition: saml.php:7
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
$query
Create styles array
The data for the language used.
global $ilDB
+ Here is the caller graph for this function:

◆ setDescription()

ilObject::setDescription (   $a_desc)

set object description

public

Parameters
string$a_descobject description

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

References ilUtil\shortenText().

Referenced by ilObjWikiGUI\afterSave(), ilObjRole\assignData(), shibUser\createFields(), ilObjTest\fromXML(), ilObjLanguage\install(), ilObjRoleGUI\loadRoleProperties(), MDUpdateListener(), ilObjRoleFolder\read(), read(), ilObjLanguage\refresh(), ilObjLanguageExt\setLocal(), ilObjLanguage\uninstall(), and shibUser\updateFields().

432  {
433  // Shortened form is storted in object_data. Long form is stored in object_description
434  $this->desc = ilUtil::shortenText($a_desc, $this->max_desc, $this->add_dots);
435 
436  $this->long_desc = $a_desc;
437 
438  return true;
439  }
static shortenText( $a_str, $a_len, $a_dots=false, $a_next_blank=false, $a_keep_extension=false)
shorten a string to given length.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setId()

ilObject::setId (   $a_id)

set object id public

Parameters
integer$a_idobject id

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

Referenced by ilObjUser\__construct(), ilMailUserCache\preloadUserObjects(), and ilForumAuthorInformationCache\preloadUserObjects().

319  {
320  $this->id = $a_id;
321  }
+ Here is the caller graph for this function:

◆ setImportId()

ilObject::setImportId (   $a_import_id)

set import id

public

Parameters
string$a_import_idimport id

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

Referenced by ilCategoryImportParser\handlerBeginTag().

470  {
471  $this->import_id = $a_import_id;
472  }
+ Here is the caller graph for this function:

◆ setOwner()

ilObject::setOwner (   $a_owner)

set object owner

public

Parameters
integer$a_ownerowner id

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

Referenced by create(), and ilObjUser\setActive().

556  {
557  $this->owner = $a_owner;
558  }
+ Here is the caller graph for this function:

◆ setParentRolePermissions()

ilObject::setParentRolePermissions (   $a_parent_ref)

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.

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

References $DIC, $rbacadmin, $rbacreview, array, getRefId(), and getType().

Referenced by setPermissions().

1338  {
1339  global $DIC;
1340 
1341  $rbacadmin = $DIC["rbacadmin"];
1342  $rbacreview = $DIC["rbacreview"];
1343 
1344  $parent_roles = $rbacreview->getParentRoleIds($a_parent_ref);
1345  foreach ((array) $parent_roles as $parent_role) {
1346  $operations = $rbacreview->getOperationsOfRole(
1347  $parent_role['obj_id'],
1348  $this->getType(),
1349  $parent_role['parent']
1350  );
1351  $rbacadmin->grantPermission(
1352  $parent_role['obj_id'],
1353  $operations,
1354  $this->getRefId()
1355  );
1356  }
1357  return true;
1358  }
global $DIC
Definition: saml.php:7
getType()
get object type public
Create styles array
The data for the language used.
getRefId()
get reference id public
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setPermissions()

ilObject::setPermissions (   $a_parent_ref)

set permissions of object

Parameters
integerreference_id of parent object public

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

References initDefaultRoles(), and setParentRolePermissions().

Referenced by ilObject2GUI\putObjectInTree(), and ilObjectGUI\putObjectInTree().

1328  {
1329  $this->setParentRolePermissions($a_parent_ref);
1330  $this->initDefaultRoles();
1331  }
initDefaultRoles()
init default roles settings Purpose of this function is to create a local role folder and local roles...
setParentRolePermissions($a_parent_ref)
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.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setRefId()

ilObject::setRefId (   $a_id)

set reference id public

Parameters
integer$a_idreference id

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

329  {
330  $this->ref_id = $a_id;
331  $this->referenced = true;
332  }

◆ setRegisterMode()

ilObject::setRegisterMode (   $a_bool)

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

Referenced by ilObjGroup\__construct().

1627  {
1628  $this->register = (bool) $a_bool;
1629  }
+ Here is the caller graph for this function:

◆ setTitle()

ilObject::setTitle (   $a_title)

set object title

public

Parameters
string$a_titleobject title

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

References $title, and ilUtil\shortenText().

Referenced by ilContainerReferenceGUI\afterSave(), ilObjWikiGUI\afterSave(), ilObjRole\assignData(), shibUser\createFields(), ilObjTest\fromXML(), ilObjRoleGUI\loadRoleProperties(), MDUpdateListener(), ilObjRoleFolder\read(), ilObjLanguage\refresh(), ilIndividualAssessmentSettingsTest\setUpBeforeClass(), ilObjLanguage\uninstall(), and shibUser\updateFields().

407  {
408  $this->title = ilUtil::shortenText($a_title, $this->max_title, $this->add_dots);
409  // BEGIN WebDAV: WebDAV needs to access the untranslated title of an object
410  $this->untranslatedTitle = $this->title;
411  // END WebDAV: WebDAV needs to access the untranslated title of an object
412  }
static shortenText( $a_str, $a_len, $a_dots=false, $a_next_blank=false, $a_keep_extension=false)
shorten a string to given length.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setType()

ilObject::setType (   $a_type)

set object type public

Parameters
integer$a_typeobject type

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

References $a_type.

360  {
361  $this->type = $a_type;
362  }
$a_type
Definition: workflow.php:92

◆ update()

ilObject::update ( )

update object in db

public

Returns
boolean true on success

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

References $db, $GLOBALS, $ilDB, $objDefinition, $res, array, getDescription(), getId(), getImportId(), getLongDescription(), getRefId(), getTitle(), and getType().

Referenced by ilObjBookingPoolGUI\afterSave(), ilContainerReferenceGUI\afterSave(), ilObjWikiGUI\afterSave(), ilObjGroupGUI\afterSave(), ilObjFileBasedLMGUI\afterSave(), ilObjContentObjectGUI\afterSave(), ilObjCourseGUI\afterSave(), ilObjUser\assignData(), ilECSAppEventListener\extendAccount(), ilObjectGUI\handleAutoRating(), ilObjCloudGUI\initCreateForm(), ilObjLanguage\install(), MDUpdateListener(), ilObjLanguage\refresh(), ilObjUser\removeUserPicture(), ilObjLanguageExt\setLocal(), ilPasswordAssistanceGUI\submitAssignPasswordForm(), and ilObjLanguage\uninstall().

698  {
700  $ilDB = $this->db;
701 
702  $q = "UPDATE object_data " .
703  "SET " .
704  "title = " . $ilDB->quote($this->getTitle(), "text") . "," .
705  "description = " . $ilDB->quote($this->getDescription(), "text") . ", " .
706  "import_id = " . $ilDB->quote($this->getImportId(), "text") . "," .
707  "last_update = " . $ilDB->now() . " " .
708  "WHERE obj_id = " . $ilDB->quote($this->getId(), "integer");
709  $ilDB->manipulate($q);
710 
711  // the line ($this->read();) messes up meta data handling: meta data,
712  // that is not saved at this time, gets lost, so we query for the dates alone
713  //$this->read();
714  $q = "SELECT last_update FROM object_data" .
715  " WHERE obj_id = " . $ilDB->quote($this->getId(), "integer");
716  $obj_set = $ilDB->query($q);
717  $obj_rec = $ilDB->fetchAssoc($obj_set);
718  $this->last_update = $obj_rec["last_update"];
719 
720  if ($objDefinition->isRBACObject($this->getType())) {
721  // Update long description
722  $res = $ilDB->query("SELECT * FROM object_description WHERE obj_id = " .
723  $ilDB->quote($this->getId(), 'integer'));
724  if ($res->numRows()) {
725  $values = array(
726  'description' => array('clob',$this->getLongDescription())
727  );
728  $ilDB->update('object_description', $values, array('obj_id' => array('integer',$this->getId())));
729  } else {
730  $values = array(
731  'description' => array('clob',$this->getLongDescription()),
732  'obj_id' => array('integer',$this->getId()));
733  $ilDB->insert('object_description', $values);
734  }
735  }
736  $GLOBALS['ilAppEventHandler']->raise(
737  'Services/Object',
738  'update',
739  array('obj_id' => $this->getId(),
740  'obj_type' => $this->getType(),
741  'ref_id' => $this->getRefId())
742  );
743 
744  return true;
745  }
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
foreach($_POST as $key=> $value) $res
getId()
get object id public
getTitle()
get object title public
getDescription()
get object description
getImportId()
get import id
getType()
get object type public
Create styles array
The data for the language used.
global $ilDB
getLongDescription()
get object long description (stored in object_description)
getRefId()
get reference id public
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ updateMetaData()

ilObject::updateMetaData ( )

update meta data entry

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

References createMetaData(), getId(), getLongDescription(), getTitle(), and getType().

Referenced by ilObjFileBasedLM\update(), ilObjLinkResource\update(), ilObjSurveyQuestionPool\update(), ilObjSurvey\update(), ilObjContentObject\update(), ilObjGlossary\update(), ilObjSession\update(), ilObjTest\update(), ilObjSAHSLearningModule\update(), and ilObjCourse\update().

821  {
822  $md = new ilMD($this->getId(), 0, $this->getType());
823  $md_gen = $md->getGeneral();
824  // BEGIN WebDAV: meta data can be missing sometimes.
825  if (!$md_gen instanceof ilMDGeneral) {
826  $this->createMetaData();
827  $md = new ilMD($this->getId(), 0, $this->getType());
828  $md_gen = $md->getGeneral();
829  }
830  // END WebDAV: meta data can be missing sometimes.
831  $md_gen->setTitle($this->getTitle());
832 
833  // sets first description (maybe not appropriate)
834  $md_des_ids = $md_gen->getDescriptionIds();
835  if (count($md_des_ids) > 0) {
836  $md_des = $md_gen->getDescription($md_des_ids[0]);
837  $md_des->setDescription($this->getLongDescription());
838  $md_des->update();
839  }
840  $md_gen->update();
841  }
createMetaData()
create meta data entry
getId()
get object id public
getTitle()
get object title public
getType()
get object type public
getLongDescription()
get object long description (stored in object_description)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ updateOwner()

ilObject::updateOwner ( )

update owner of object in db

public

Returns
boolean true on success

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

References $db, $ilDB, getId(), and getOwner().

861  {
862  $ilDB = $this->db;
863 
864  $q = "UPDATE object_data " .
865  "SET " .
866  "owner = " . $ilDB->quote($this->getOwner(), "integer") . ", " .
867  "last_update = " . $ilDB->now() . " " .
868  "WHERE obj_id = " . $ilDB->quote($this->getId(), "integer");
869  $ilDB->manipulate($q);
870 
871  $q = "SELECT last_update FROM object_data" .
872  " WHERE obj_id = " . $ilDB->quote($this->getId(), "integer");
873  $obj_set = $ilDB->query($q);
874  $obj_rec = $ilDB->fetchAssoc($obj_set);
875  $this->last_update = $obj_rec["last_update"];
876 
877  return true;
878  }
getOwner()
get object owner
getId()
get object id public
global $ilDB
+ Here is the call graph for this function:

◆ withReferences()

ilObject::withReferences ( )

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

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

References $referenced.

Referenced by ilObjFolder\putInTree().

177  {
178  // both vars could differ. this method should always return true if one of them is true without changing their status
179  return ($this->call_by_reference) ? true : $this->referenced;
180  }
+ Here is the caller graph for this function:

Field Documentation

◆ $add_dots

ilObject::$add_dots

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

◆ $app_event_handler

ilObject::$app_event_handler
protected

◆ $create_date

ilObject::$create_date

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

Referenced by getCreateDate().

◆ $db

ilObject::$db
protected

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

Referenced by ilObjUser\_checkExternalAuthAccount(), ilObjSystemFolder\_getHeaderTitleDescription(), _prepareCloneSelection(), ilObjStyleSheet\addCharacteristic(), ilObjStyleSheet\addColor(), ilObjSurvey\addConstraint(), ilObjSurvey\addConstraintToQuestion(), ilObjSystemFolder\addHeaderTitleTranslation(), ilObjWiki\addImportantPage(), ilObjStyleSheet\addMediaQuery(), ilObjStyleSheet\addParameter(), ilObjSurvey\addQuestionToBlock(), ilObjStyleSheet\addTemplate(), ilObjStyleSheet\addTemplateClass(), ilObjWorkspaceRootFolder\addTranslation(), ilObjSurvey\bindSurveyCodeToUser(), ilObjStyleSheet\characteristicExists(), ilObjSurvey\checkReminder(), ilObjContentObject\checkStructure(), ilObjSurvey\checkTutorNotification(), ilObjExternalFeed\cloneObject(), ilObjExercise\cloneObject(), ilObjSurvey\cloneObject(), ilObjStyleSheet\colorExists(), ilObjSCORM2004LearningModule\convert_1_2_to_2004(), ilObjStyleSheet\copyCharacteristic(), countReferences(), ilObjPoll\countVotes(), ilObjBookingPool\create(), ilObjFileBasedLM\create(), ilObjMediaPool\create(), ilObjMediaCast\create(), ilObjWiki\create(), create(), ilObjStyleSheet\create(), ilObjStyleSheet\createFromXMLFile(), ilObjContentObject\createProperties(), ilObjSurvey\createQuestionblock(), createReference(), ilObjSurvey\createSurveyCodes(), ilObjSurvey\createSurveyCodesForExternalData(), ilObjSystemFolder\delete(), ilObjBookingPool\delete(), ilObjFileBasedLM\delete(), ilObjExercise\delete(), ilObjMediaCast\delete(), ilObjWiki\delete(), ilObjContentObject\delete(), ilObjStyleSheet\delete(), ilObjPoll\deleteAllAnswers(), ilObjSurveyQuestionPool\deleteAllData(), ilObjSurvey\deleteAllUserData(), ilObjPoll\deleteAllVotes(), ilObjPoll\deleteAnswer(), ilObjSurvey\deleteAppraisee(), ilObjStyleSheet\deleteCharacteristic(), ilObjSurvey\deleteConstraint(), ilObjSurvey\deleteConstraints(), ilObjStyleSheet\deleteCustomStylePars(), ilObjStyleSheet\deleteMediaQuery(), ilObjMediaCast\deleteOrder(), ilObjStyleSheet\deleteParameter(), ilObjSurvey\deleteRater(), ilObjStyleSheet\deleteStylePar(), ilObjStyleSheet\deleteStyleParOfChar(), ilObjSurvey\deleteSurveyCode(), ilObjSurvey\deleteSurveyRecord(), ilObjSCORM2004LearningModule\deleteTrackingDataOfUsers(), ilObjSurvey\deleteUserSettings(), ilObjSurvey\deleteWorkingData(), ilObjWiki\deliverUserHTMLExport(), ilObjSurvey\disinviteAllUsers(), ilObjSurvey\disinviteUser(), ilObjStyleSheet\do_3_10_CharMigration(), ilObjStyleSheet\do_3_10_Migration(), ilObjStyleSheet\do_3_9_Migration(), ilObjBlog\doCreate(), ilObjTaxonomy\doCreate(), ilObjPortfolioBase\doCreate(), ilObjPoll\doCreate(), ilObjBlog\doDelete(), ilObjTaxonomy\doDelete(), ilVerificationObject\doDelete(), ilObjPortfolioBase\doDelete(), ilObjPoll\doDelete(), ilObjBlog\doRead(), ilVerificationObject\doRead(), ilObjPortfolioBase\doRead(), ilObjPoll\doRead(), ilObjTaxonomy\doRead(), ilObjBlog\doUpdate(), ilObjPortfolioBase\doUpdate(), ilObjTaxonomy\doUpdate(), ilObjPoll\doUpdate(), ilObjSurvey\findCodeForUser(), ilObjSurvey\finishSurvey(), ilObjWiki\fixImportantPagesNumbering(), ilObjContentObject\fixTree(), ilObjSurvey\getActiveID(), ilObjLTIAdministration\getActiveObjectTypes(), ilObjSurvey\getAllRelations(), ilObjSurvey\getAnonymousId(), ilObjSurvey\getAnonymousIdByCode(), ilObjPoll\getAnswer(), ilObjPoll\getAnswers(), ilObjSurvey\getAppraiseesData(), ilObjSurvey\getAppraiseesToRate(), ilObjSCORM2004LearningModule\getAttemptsForUser(), ilObjStyleSheet\getColorCodeForName(), ilObjStyleSheet\getColors(), ilObjSurvey\getConstraints(), ilObjSCORM2004LearningModule\getCourseCompletionForUser(), ilObjSurvey\getEvaluationByUser(), ilObjSurvey\getExistingQuestions(), ilObjSurvey\getExternalCodeRecipients(), ilObjSurvey\getFinishedIdForAppraiseeIdAndRaterId(), ilObjSurvey\getFinishedIdsForAppraiseeId(), ilObjStyleSheet\getHideStatus(), ilObjSurvey\getInvitedUsers(), ilObjSurvey\getLastAccess(), ilObjSurvey\getLastActivePage(), ilObjStyleSheet\getMaxMQueryOrderNr(), ilObjMediaPool\getMediaObjects(), ilObjStyleSheet\getMediaQueries(), ilObjStyleSheet\getMediaQueryForId(), ilObjSCORM2004LearningModule\getModuleVersionForUser(), ilObjSurvey\getPrecondition(), ilObjSurvey\getQuestionblockQuestionIds(), ilObjSurvey\getQuestionblockQuestions(), ilObjSurvey\getQuestionblocksTable(), ilObjSurveyQuestionPool\getQuestionInfos(), ilObjSurveyQuestionPool\getQuestions(), ilObjSurveyQuestionPool\getQuestionsData(), ilObjSurveyQuestionPool\getQuestionsInfo(), ilObjSurvey\getQuestionsTable(), ilObjSurveyQuestionPool\getQuestiontype(), ilObjSurvey\getQuestionType(), ilObjSurvey\getRatersData(), ilObjTaxonomyAdministration\getRepositoryTaxonomies(), ilObjSurvey\getSurveyCodesForExport(), ilObjSurvey\getSurveyCodesTableData(), ilObjSurvey\getSurveyFinishedIds(), ilObjSurvey\getSurveyPages(), ilObjSurvey\getSurveyParticipants(), ilObjSurvey\getSurveyQuestions(), ilObjStyleSheet\getTemplate(), ilObjStyleSheet\getTemplateClasses(), ilObjStyleSheet\getTemplates(), ilObjStyleSheet\getTemplateXML(), ilObjSurvey\getTextblock(), ilObjSCORM2004LearningModule\getTrackedItems(), ilObjSCORM2004LearningModule\getTrackingDataAgg(), ilObjWorkspaceRootFolder\getTranslations(), ilObjMediaPool\getUsedFormats(), ilObjSurvey\getUserAccessCode(), ilObjSurvey\getUserData(), ilObjSurvey\getUserDataFromActiveId(), ilObjWiki\getUserHTMLExportProgress(), ilObjSurvey\getUserSettings(), ilObjSurvey\getUserSurveyExecutionStatus(), ilObjSurvey\getVariables(), ilObjPoll\getVotePercentages(), ilObjPoll\getVotesByUsers(), ilObjSurvey\getWorkingtimeForParticipant(), ilObjPoll\hasUserVoted(), ilObjSCORM2004LearningModule\importSuccess(), ilObjSurvey\importSurveyCode(), ilObjWiki\initUserHTMLExport(), ilObjSurvey\insertQuestion(), ilObjSurvey\insertQuestionblock(), ilObjSurvey\inviteUser(), ilObjSurvey\is360SurveyStarted(), ilObjSurvey\isAnonymizedParticipant(), ilObjSurvey\isAnonymousKey(), ilObjSurvey\isAppraisee(), ilObjSurvey\isAppraiseeClosed(), ilObjWiki\isImportantPage(), ilObjSurveyQuestionPool\isInUse(), ilObjSurvey\isRater(), ilObjSurvey\isSurveyCodeUnique(), ilObjSurvey\isSurveyCodeUsed(), ilObjSurvey\isSurveyStarted(), ilObjSurvey\isUnusedCode(), ilObjSurveyQuestionPool\loadFromDb(), ilObjSurvey\loadFromDb(), ilObjSurvey\loadQuestionsFromDb(), ilObjSurvey\loadWorkingData(), ilObjStyleSheet\lookupStyleSetting(), ilObjStyleSheet\lookupTemplatePreview(), ilObjSurvey\modifyQuestionblock(), ilObjSurvey\openAllAppraisees(), ilObjSurveyQuestionPool\pasteFromClipboard(), ilObjSurveyQuestionPool\purgeQuestions(), ilObjSkillManagement\read(), ilObjFileBasedLM\read(), ilObjMediaCastSettings\read(), ilObjPersonalDesktopSettings\read(), ilObjTaggingSettings\read(), ilObjLearningResourcesSettings\read(), ilObjBookingPool\read(), ilObjMediaPool\read(), ilObjContentObject\read(), read(), ilObjExercise\read(), ilObjMediaCast\read(), ilObjWiki\read(), ilObjStyleSheet\read(), ilObjMediaCast\readOrder(), ilObjContentObject\readProperties(), ilObjLTIAdministration\readReleaseObjects(), ilObjTest\reindexFixedQuestionOrdering(), ilObjStyleSheet\removeColor(), ilObjSurvey\removeConstraintsConcerningQuestion(), ilObjSystemFolder\removeHeaderTitleTranslations(), ilObjWiki\removeImportantPage(), ilObjSurvey\removeQuestionFromBlock(), ilObjSurvey\removeQuestions(), ilObjSurvey\removeSelectedSurveyResults(), ilObjStyleSheet\removeTemplate(), ilObjWorkspaceRootFolder\removeTranslations(), ilObjPoll\saveAnswer(), ilObjExercise\saveCertificateVisibility(), ilObjSurvey\saveCompletionStatus(), ilObjExercise\saveData(), ilObjSurvey\saveHeading(), ilObjStyleSheet\saveHideStatus(), ilObjStyleSheet\saveMediaQueryOrder(), ilObjMediaCast\saveOrder(), ilObjWiki\saveOrderingAndIndentation(), ilVerificationObject\saveProperties(), ilObjSurvey\saveQuestionsToDb(), ilObjSurveyQuestionPool\saveToDb(), ilObjSurvey\saveToDb(), ilObjSurvey\saveUserAccessCode(), ilObjSurvey\saveUserSettings(), ilObjPoll\saveVote(), ilObjSurvey\sendCodes(), ilObjSurvey\set360RaterSent(), ilObjSurvey\setEndTime(), ilObjSurvey\setInvitation(), ilObjSurveyQuestionPool\setObligatoryStates(), ilObjSurvey\setObligatoryStates(), ilObjSurvey\setPage(), ilObjSurvey\setStartTime(), ilObjSurvey\startSurvey(), ilObjWiki\startUserHTMLExport(), ilObjStyleSheet\templateExists(), ilObjSurvey\unfoldQuestionblocks(), ilObjSkillManagement\update(), ilObjFileBasedLM\update(), ilObjLearningResourcesSettings\update(), ilObjMediaCastSettings\update(), ilObjPersonalDesktopSettings\update(), ilObjTaggingSettings\update(), ilObjBookingPool\update(), ilObjMediaPool\update(), ilObjMediaCast\update(), ilObjExercise\update(), ilObjWiki\update(), update(), ilObjStyleSheet\update(), ilObjPoll\updateAnswer(), ilObjPoll\updateAnswerPositions(), ilObjContentObject\updateAutoGlossaries(), ilObjSurvey\updateCode(), ilObjStyleSheet\updateColor(), ilObjSurvey\updateConjunctionForQuestions(), ilObjSurvey\updateConstraint(), ilObjStyleSheet\updateMediaQuery(), updateOwner(), ilObjContentObject\updateProperties(), ilObjStyleSheet\updateStyleParameter(), ilObjStyleSheet\updateTemplate(), ilObjStyleSheet\writeStyleSetting(), ilObjContentObject\writeStyleSheetId(), and ilObjStyleSheet\writeTemplatePreview().

◆ $desc

◆ $error

◆ $id

ilObject::$id

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

Referenced by ilObjWorkflowEngine\__construct(), ilObjStyleSheet\_addMissingStyleClassesToAllStyles(), ilObjStyleSheet\_getClonableContentStyles(), ilObjSystemFolder\_getHeaderTitleDescription(), ilObjUser\_getImportedUserId(), ilObjTest\_lookupAuthor(), ilObjStyleSheet\_replaceStylePar(), ilObjSystemFolder\addHeaderTitleTranslation(), ilObjStyleSheet\addMediaQuery(), ilObjStyleSheet\addParameter(), ilObjGlossary\autoLinkGlossaryTerms(), ilObjContentObject\autoLinkGlossaryTerms(), ilObjUser\checkUserId(), collectDeletionDependencies(), ilObjLanguageFolderGUI\confirmRefreshSelectedObject(), ilObjLanguageFolderGUI\confirmUninstallChangesObject(), ilObjLanguageFolderGUI\confirmUninstallObject(), ilObjForum\create(), ilObject2\create(), ilObjRole\create(), ilObjStudyProgramme\create(), create(), ilObjStyleSheet\create(), ilObjStyleSheet\createFromXMLFile(), ilObjHelpSettings\createHelpModule(), ilObjStudyProgramme\createSettings(), ilObjBookingPool\delete(), ilObjSurvey\deleteUserSettings(), ilObjBlog\deliverRSS(), ilObjFile\doMDUpdateListener(), ilObjContentObject\exportHTMLMOB(), ilObjSurvey\getAnonymousId(), ilObjSurvey\getAuthor(), ilObjTest\getAuthor(), ilObjPortfolio\getAvailablePortfolioLinksForUserIds(), ilObjAssessmentFolder\getFullPath(), getId(), ilObjIndividualAssessment\getParentContainerIdByType(), ilObjSurvey\getPrecondition(), ilObjUser\getProfileStatusOfUsers(), ilObjPoll\getVotePercentages(), ilRemoteObjectBase\importMetadataFromJson(), ilObjLinkResource\MDUpdateListener(), MDUpdateListener(), ilObjContentObject\MDUpdateListener(), ilObjUser\preloadIsDesktopItem(), ilObjStudyProgramme\readSettings(), ilObjLanguageFolderGUI\refreshSelectedObject(), ilObjGlossary\removeOfflineGlossaries(), ilObjPoll\saveAnswer(), ilObjPoll\saveAnswers(), ilObjSurvey\sent360Reminders(), ilObjTest\setQuestionOrderAndObligations(), ilObjSurvey\setStartTime(), ilObjLanguageFolderGUI\uninstallChangesObject(), ilObjPoll\updateAnswerPositions(), ilObjUser\updateMultiTextFields(), ilObjRepositorySettings\updateNewItemGroupOrder(), and ilObjHelpSettings\uploadHelpModule().

◆ $import_id

ilObject::$import_id

◆ $last_update

ilObject::$last_update

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

Referenced by ilObjUser\getLastUpdate(), and getLastUpdateDate().

◆ $lng

ilObject::$lng

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

Referenced by ilObjLanguage\__construct(), ilObjLanguageFolder\__construct(), ilObjSurvey\__construct(), ilObjTest\__construct(), ilObjRole\__getPermissionDefinitions(), ilObjTest\_buildName(), ilObjLanguageExt\_deleteValues(), ilObjMediaObject\_determineWidthHeight(), ilObjQuestionPool\_getAvailableQuestionpools(), ilObjSurveyQuestionPool\_getQuestiontypes(), ilObjQuestionPool\_getQuestionTypes(), ilObjSurveyQuestionPool\_getQuestionTypeTranslations(), ilObjLanguageExt\_getRemarks(), ilObjSCORMLearningModule\_getStatusForUser(), ilObjRole\_getTranslation(), ilObjLanguageExt\_getValues(), ilObjUser\_lookupLanguage(), _lookupOwnerName(), _prepareCloneSelection(), ilObjLanguageExt\_saveValues(), ilObjContentObject\addFirstChapterAndPage(), ilObjUser\assignData(), ilObjUserFolder\buildExportFile(), ilObjLanguageFolder\checkAllLanguages(), ilObjPortfolioBase\clonePagesAndSettings(), ilObjLanguage\countUsers(), ilObjCourseVerification\createFromCourse(), ilObjExerciseVerification\createFromExercise(), ilObjSCORMVerification\createFromSCORMLM(), ilObjTestVerification\createFromTest(), ilObjTest\createQuestionGUI(), ilObjTest\deleteTest(), ilObjUser\deleteUserDefinedFieldEntries(), ilObjTest\ensureParticipantsLastActivePassFinished(), ilObjWiki\getAdvMDSubItemTitle(), ilObjGlossary\getAdvMDSubItemTitle(), ilObjSAHSLearningModule\getAffectiveLocalization(), ilObjTest\getAnsweredQuestionCount(), ilObjSAHSLearningModule\getApiStudentName(), ilObjTest\getAvailableQuestions(), ilObjRepositorySettings\getDefaultNewItemGrouping(), ilObjGlossary\getDeletionDependencies(), ilObjLanguageFolder\getLanguages(), ilObjTest\getManualFeedback(), ilObjRepositorySettings\getNewItemGroups(), ilObjQuestionPool\getQuestionTypeTranslations(), ilObjSurvey\getSurveyCodesForExport(), ilObjSurvey\getSurveySkippedValue(), ilObjTest\getTestResult(), ilObjOrgUnit\getTranslations(), ilObjMediaPool\getUsedFormats(), ilObjStyleSheet\ilClone(), ilObjContentObject\importFromDirectory(), ilObjContentObject\importFromZipFile(), ilObjSCORMLearningModule\importRaw(), ilObjTest\isParticipantsLastPassActive(), ilObjTaxonomy\loadLanguageModule(), ilObjSAHSLearningModule\populateByDirectoy(), ilObjSCORM2004LearningModule\readObject(), ilObjTest\removeTestResultsByUserIds(), ilObjTest\removeTestResultsFromSoapLpAdministration(), ilObjSurvey\send360ReminderToUser(), ilObjSurvey\sendAppraiseeCloseNotification(), ilObjSurvey\sendAppraiseeNotification(), ilObjExercise\sendAssignment(), ilObjSurvey\sendRaterNotification(), ilObjAdvancedEditing\setUsedHTMLTags(), and ilObjMediaObject\uploadMultipleSubtitleFile().

◆ $log

◆ $long_desc

ilObject::$long_desc

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

Referenced by ilContainer\getCompleteDescriptions().

◆ $max_desc

ilObject::$max_desc

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

◆ $max_title

ilObject::$max_title

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

◆ $objDefinition

◆ $objectList

ilObject::$objectList

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

◆ $owner

ilObject::$owner

◆ $rbacadmin

◆ $rbacreview

ilObject::$rbacreview
protected

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

Referenced by ilObjCourse\__getLocalRoles(), ilObjRole\__getPermissionDefinitions(), ilObjUser\_getAllUserData(), ilObjGroup\_getMembers(), ilObjUser\_getUsersForIds(), ilObjUser\_getUsersForRole(), ilObjGroup\_isMember(), ilObjUser\_writeHistory(), ilObjRole\adjustPermissions(), ilObjOrgUnit\assignUserToLocalRole(), ilObjRole\changeExistingObjects(), ilObjGroup\cloneAutoGeneratedRoles(), ilObjCourse\cloneAutoGeneratedRoles(), ilObjRole\createPermissionIntersection(), ilObjRoleFolder\createRole(), ilObjUserFolder\createXMLExport(), ilObjOrgUnit\deassignUserFromLocalRole(), ilObjRoleFolder\delete(), ilObjRole\delete(), ilObjRole\deleteLocalPolicies(), ilObjUser\deleteUserDefinedFieldEntries(), ilObjBlog\getAllLocalRoles(), ilObjRole\getCountMembers(), ilObjCourse\getDefaultCourseRoles(), ilObjGroup\getDefaultGroupRoles(), ilObjGroup\getGroupAdminIds(), ilObjGroup\getGroupMemberData(), ilObjGroup\getGroupMemberIds(), ilObjBlog\getLocalContributorRole(), ilObjCourse\getLocalCourseRoles(), ilObjBlog\getLocalEditorRole(), ilObjGroup\getLocalGroupRoles(), ilObjLTIAdministration\getLTIRoles(), ilObjGroup\getMemberRoles(), ilObjBlog\getRolesWithContributeOrRedact(), ilObjCourse\initDefaultRoles(), ilObjGroup\initGroupStatus(), ilObjTest\inviteRole(), ilObjGroup\isAdmin(), ilObjGroup\leaveGroup(), ilObjRoleFolder\purge(), ilObjGroup\readGroupStatus(), ilObjUser\searchUsers(), setParentRolePermissions(), ilObjGroup\setParentRolePermissions(), ilObjCourse\setParentRolePermissions(), ilObjRole\updateOperationStack(), and ilObjRole\updatePolicyStack().

◆ $ref_id

◆ $referenced

ilObject::$referenced

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

Referenced by withReferences().

◆ $register

ilObject::$register = false

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

Referenced by requireRegistration().

◆ $title

◆ $tree

ilObject::$tree
protected

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

Referenced by ilObjItemGroup\__construct(), ilCourseStart\__read(), ilObjTest\_getAvailableTests(), ilObjQuestionPool\_getFullPathToQpl(), ilObjMediaPool\_getPoolTree(), ilObjStyleSheet\_getStandardStyles(), ilObjSCORMLearningModule\_getTrackingItems(), ilObjTest\_isComplete(), _isInTrash(), ilObjUser\_lookupDesktopItems(), ilObjRole\adjustPermissions(), appendCopyInfo(), ilObjRole\changeExistingObjects(), ilObjContentObject\checkStructure(), ilObjContentObject\checkTree(), collectDeletionDependencies(), ilObjPortfolioBase\createBlogInPersonalWorkspace(), ilObjMediaPool\createFolder(), ilObjUser\delete(), ilObjTest\deleteTest(), ilObjTaxonomy\doDelete(), ilObjSkillManagement\executeDragDrop(), ilObjSCORM2004LearningModule\exportHTML4PDF(), ilObjSCORM2004LearningModule\exportHTMLScoObjects(), ilObjSCORM2004LearningModule\exportPDF(), ilObjSCORM2004LearningModule\exportXMLScoObjects(), ilObjSCORM2004LearningModule\exportXMLStructureObjects(), ilObjContentObject\fixTree(), ilObjGlossary\getAllGlossaryIds(), ilObjTest\getAnsweredQuestionCount(), ilObjAssessmentFolder\getFullPath(), ilObjTest\getMarkSchemaForeignId(), ilObjSurvey\getNotificationTargetUserIds(), ilObjIndividualAssessment\getParentContainerIdByType(), ilObjTaxonomyAdministration\getPath(), ilObjTest\getQuestionCount(), ilObjTaxonomyAdministration\getRepositoryTaxonomies(), ilObjTaxonomy\getSubTreeItems(), ilObjTest\getTestResult(), ilRemoteObjectBase\handleDelete(), hasAutoRating(), ilObjContentObject\hasSuccessorPage(), ilObjRoleFolder\purge(), ilObjContentObject\putInTree(), putInTree(), ilObjTest\reindexFixedQuestionOrdering(), ilObjTest\saveToDb(), and ilObjBlog\sendNotification().

◆ $type

◆ $untranslatedTitle

ilObject::$untranslatedTitle

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

Referenced by getUntranslatedTitle().

◆ DESC_LENGTH

◆ TITLE_LENGTH


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