ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Class ilObjectFactory. More...
Public Member Functions | |
ObjectIdExists ($a_obj_id) | |
check if obj_id exists. More... | |
getObjectsForOwner ($object_type, $owner_id) | |
returns all objects of an owner, filtered by type, objects are not deleted! More... | |
Static Public Member Functions | |
static | getInstanceByObjId ($a_obj_id, $stop_on_error=true) |
get an instance of an Ilias object by object id More... | |
static | getInstanceByRefId ($a_ref_id, $stop_on_error=true) |
get an instance of an Ilias object by reference id More... | |
static | getTypeByRefId ($a_ref_id, $stop_on_error=true) |
get object type by reference id More... | |
static | getClassByType ($a_obj_type) |
Get class by type. More... | |
Class ilObjectFactory.
This class offers methods to get instances of the type-specific object classes (derived from ilObject) by their object or reference id
Note: The term "Ilias objects" means all object types that are stored in the database table "object_data"
Definition at line 20 of file class.ilObjectFactory.php.
|
static |
Get class by type.
Definition at line 251 of file class.ilObjectFactory.php.
References $DIC, and $location.
Referenced by ilWorkspaceExplorer\__construct(), ilRepUtilGUI\confirmRemoveFromSystemObject(), ilWorkspaceTree\createTreeForUser(), ilAdministrationCommandGUI\delete(), ilObjStudyProgrammeTreeGUI\delete(), ilObject2GUI\deleteConfirmation(), ilObjectCopyGUI\saveSource(), ilObjectCopyGUI\saveTarget(), and ilRepUtilGUI\showDeleteConfirmation().
|
static |
get an instance of an Ilias object by object id
$a_obj_id | ||
bool | $stop_on_error |
ilDatabaseException | |
ilObjectNotFoundException |
Definition at line 77 of file class.ilObjectFactory.php.
References $DIC, $ilDB, $location, $message, and ilDBConstants\FETCHMODE_ASSOC.
Referenced by ilLearningProgressBaseGUI\__appendUserInfo(), ilRoleDesktopItem\__assign(), ilLocalUserGUI\__checkGlobalRoles(), ilObjCategoryGUI\__checkGlobalRoles(), ilUsersGalleryParticipants\__construct(), ilPDMailGUI\__construct(), ilCalendarUserSettings\__construct(), ilDownloadFilesBackgroundTask\__construct(), ilLocalUserGUI\__getAssignableRoles(), ilObjCategoryGUI\__getAssignableRoles(), ilLPListOfProgressGUI\__initUser(), ilLinkChecker\__sendMail(), ilLocalUserGUI\__showRolesTable(), ilSearch\__validateResults(), ilStartUpGUI\_checkGoto(), ilContainer\_exportContainerSettings(), ilObjGroup\_isMember(), ilObjContentObject\_moveLMStyles(), ilSoapObjectAdministration\addDesktopItems(), ilInfoScreenGUI\addObjectSections(), ilSoapRBACAdministration\addUserRoleEntry(), ilSoapCourseAdministration\assignCourseMember(), ilMembershipGUI\assignFromWaitingList(), ilSoapGroupAdministration\assignGroupMember(), ilExerciseMembers\assignMember(), ilCourseMembershipGUI\assignMembers(), ilObject2GUI\assignObject(), ilObjectGUI\assignObject(), ilLocalUserGUI\assignRoles(), ilObjCategoryGUI\assignRolesObject(), ilParticipants\assignSubscriber(), ilChatroom\byRoomId(), ilMailSearchGroupsGUI\cancel(), ilMailSearchCoursesGUI\cancel(), ilWorkspaceTree\cascadingDelete(), ilUserCronCheckAccounts\checkNotConfirmedUserAccounts(), ilObjPortfolioBase\cloneBasics(), ilObjWiki\cloneObject(), ilObjGlossary\cloneObject(), ilObjContentObject\cloneObject(), ilExerciseManagementCollectFilesJob\collectSubmissionFiles(), ilMailMemberSearchDataProvider\collectTableData(), ilMailFolderGUI\confirmDeleteMails(), ilContentStyleSettingsGUI\confirmedDelete(), ilObjSCORM2004LearningModule\copyAuthoredContent(), ilObjStyleSheetGUI\copyStyleObject(), ilContainerXmlParser\createObject(), ilObjWorkspaceFolderGUI\cut(), ilExerciseMembers\deassignMember(), ilObject2GUI\deleteConfirmedObjects(), ilSoapUtils\deleteExpiredDualOptInUserObjects(), ilRepUtil\deleteObjects(), ilSoapRBACAdministration\deleteRole(), ilObjRoleFolderGUI\deleteRoleObject(), ilSoapUserAdministration\deleteUser(), ilSoapRBACAdministration\deleteUserRoleEntry(), ilForumModeratorsGUI\detachModeratorRole(), ilObjBlog\doCloneObject(), ilExerciseManagementGUI\downloadAllObject(), ilPublicSubmissionsTableGUI\fillRow(), ilObjectConsumerTableGUI\fillRow(), ilContentPageImporter\finalProcessing(), ilTestImporter\finalProcessing(), ilPdfGenerator\generateFileName(), ilObjForumAccess\getCachedUserInstance(), ilCertificateMigrationJob\getCourseCertificates(), ilSoapCourseAdministration\getCoursesForUser(), ilObjCourse\getDefaultAdminRole(), ilObjCourse\getDefaultTutorRole(), ilChatroom\getDescription(), ilCertificateGUI\getEditorForm(), ilCertificateMigrationJob\getExerciseCertificates(), ilSoapExerciseAdministration\getExerciseXML(), ilSoapFileAdministration\getFileXML(), ilSoapGroupAdministration\getGroupsForUser(), ilSoapSCORMAdministration\getIMSManifestXML(), ilCertificateObjectHelper\getInstanceByObjId(), ilUserRoleStartingPointTableGUI\getItems(), ilSoapRBACAdministration\getLocalRoles(), ilAttendanceList\getNonMemberUserData(), ilSoapObjectAdministration\getObjectsByTitle(), ilSoapRBACAdministration\getObjectTreeOperations(), ilCourseMembershipGUI\getPrintMemberData(), ilUsersGalleryContacts\getRelationSequence(), ilLearningSequenceRoles\getRoleObject(), ilSoapRBACAdministration\getRoles(), ilCertificateMigrationJob\getScormCertificates(), ilCertificateMigrationJob\getTestCertificates(), ilChatroom\getTitle(), ilSoapUserAdministration\getUser(), ilSoapRBACAdministration\getUserRoles(), ilContentPageExporter\getXmlExportTailDependencies(), ilDataCollectionDataSet\getXmlNamespace(), ilChatroomExporter\getXmlRepresentation(), ilSoapRBACAdministration\grantPermissions(), ilObjSession\handleAutoFill(), ilObjGroup\handleAutoFill(), ilObjCourse\handleAutoFill(), ilECSTaskScheduler\handleDeprecatedAccounts(), ilECSAppEventListener\handleEvent(), ilCertificateAppEventListener\handleNewMigratedUserCertificate(), ilRemoteObjectBase\handleUpdate(), ilCronDeleteInactiveUserAccounts\hasCustomSettings(), ilObjTestAccess\hasFinished(), ilIndividualAssessmentMembersTableGUI\hasPublicProfile(), ilObjTestAccess\hasVisibleCertificate(), ilExternalFeedBlockGUI\importFile(), ilObjectGUI\importFileObject(), ilObjSessionGUI\importFileObject(), ilBibliographicDataSet\importRecord(), ilExternalFeedDataSet\importRecord(), ilContentPageDataSet\importRecord(), ilHTMLLearningModuleDataSet\importRecord(), ilIndividualAssessmentDataSet\importRecord(), ilMediaCastDataSet\importRecord(), ilItemGroupDataSet\importRecord(), ilPortfolioDataSet\importRecord(), ilPollDataSet\importRecord(), ilGlossaryDataSet\importRecord(), ilBlogDataSet\importRecord(), ilMediaPoolDataSet\importRecord(), ilWikiDataSet\importRecord(), ilStyleDataSet\importRecord(), ilLearningModuleDataSet\importRecord(), ilExerciseDataSet\importRecord(), ilObjStyleSheetGUI\importStyleObject(), ilChatroomImporter\importXmlRepresentation(), ilForumImporter\importXmlRepresentation(), ilSurveyQuestionPoolImporter\importXmlRepresentation(), ilFileImporter\importXmlRepresentation(), ilScormAiccImporter\importXmlRepresentation(), ilTestImporter\importXmlRepresentation(), ilTestQuestionPoolImporter\importXmlRepresentation(), ilLearningSequenceImporter\importXmlRepresentation(), ilFolderImporter\importXmlRepresentation(), ilWebResourceImporter\importXmlRepresentation(), ilGlossaryImporter\importXmlRepresentation(), ilLearningModuleImporter\importXmlRepresentation(), ilSurveyImporter\importXmlRepresentation(), ilWebLinkXmlWriter\init(), ilFolderXmlWriter\init(), ilMimeMailNotification\initLanguage(), ilPluginLP\initPlugin(), ilRoleXmlImporter\initRole(), ilParticipants\isGroupingMember(), ilChatroom\isOwnerOfPrivateRoom(), ilObjRoleGUI\listUsersRoleObject(), ilStartingPoint\onRoleDeleted(), ilSoapMailXmlParser\parseName(), ilExerciseSubmissionTableGUI\parseRow(), ilLPTableBaseGUI\parseTitle(), ilObjContentObjectGUI\pastePage(), ilLMObject\pasteTree(), ilLocalUserGUI\performDeleteUsers(), ilObjCategoryGUI\performDeleteUsersObject(), ilObjWorkspaceFolderGUI\performPasteIntoMultipleObjects(), ilContentPageDataSet\readData(), ilParticipants\readSubscribers(), ilSoapObjectAdministration\removeDesktopItems(), ilSoapObjectAdministration\removeFromSystemByImportId(), ilPreviewGUI\renderPreview(), ilTestLP\resetCustomLPDataForUserIds(), ilSoapRBACAdministration\revokePermissions(), ilCronDeleteInactivatedUserAccounts\run(), ilObjStyleSheetGUI\saveObject(), ilPermissionGUI\savePermissions(), ilObjExercise\sendAssignment(), ilPDOAuthentication\setAuth(), ilMailSearchCoursesGUI\showMembers(), ilPasswordAssistanceGUI\submitAssignPasswordForm(), ilNotificationSystem\toUsers(), ilPermissionGUI\unblockRoles(), ilSoapExerciseAdministration\updateExercise(), ilSoapFileAdministration\updateFile(), ilECSCourseCreationHandler\updateParallelCourses(), ilECSCourseCreationHandler\updateParallelGroups(), ilRegistrationSettingsGUI\updateRoles(), ilSoapWebLinkAdministration\updateWebLink(), ilObjTestAccess\visibleUserResultExists(), and ilObjContentPage\writeStyleSheetId().
|
static |
get an instance of an Ilias object by reference id
$a_ref_id | ||
bool | $stop_on_error |
ilDatabaseException | |
ilObjectNotFoundException |
Definition at line 141 of file class.ilObjectFactory.php.
References $DIC, $ilDB, $location, $message, $query, and ilDBConstants\FETCHMODE_ASSOC.
Referenced by ilConditionHandlerGUI\__construct(), ilLMEditorGUI\__construct(), ilCourseObjectivesGUI\__initCourseObject(), ilCourseContentGUI\__initCourseObject(), ilECSObjectSettings\_handleDelete(), ilForumNotification\_isParentNodeGrpCrs(), assQuestionGUI\addBackTab(), ilSoapCourseAdministration\addCourse(), ilSoapObjectAdministration\addDesktopItems(), ilSoapExerciseAdministration\addExercise(), ilSoapFileAdministration\addFile(), ilTestExpressPageObjectGUI\addPageOfQuestions(), ilSoapObjectAdministration\addReference(), ilSoapRBACAdministration\addRole(), ilSoapRBACAdministration\addRoleFromTemplate(), ilObjRoleGUI\askDeleteDesktopItemObject(), ilConditionHandlerGUI\assign(), ilObjCourseGroupingGUI\assignCourse(), ilSoapCourseAdministration\assignCourseMember(), ilSoapGroupAdministration\assignGroupMember(), ilObject2GUI\assignObject(), ilObjectGUI\assignObject(), assQuestionGUI\cancelSync(), ilSoapAdministration\checkObjectAccess(), ilForumNotification\checkParentNodeTree(), ilContainerGUI\clipboardObject(), ilObjectGUI\cloneAllObject(), ilContainerGUI\cloneAllObject(), ilSoapUtils\cloneDependencies(), ilObjectActivation\cloneDependencies(), ilObjCourseGrouping\cloneGrouping(), ilSoapUtils\cloneNode(), ilContainerGUI\cloneNodes(), ilObjLearningSequenceContentGUI\confirmDelete(), ilObjectCopyGUI\copyContainer(), ilObjectCopyGUI\copyMultipleNonContainer(), ilSoapObjectAdministration\copyObject(), ilObjStyleSheetGUI\copyStyleObject(), ilSoapWebLinkAdministration\createWebLink(), ilOerHarvester\deleteObject(), ilSoapObjectAdministration\deleteObject(), ilContainerReferenceAppEventListener\deleteReferences(), ilForumSettingsGUI\disableHideUserToggleNoti(), ilGroupAppEventListener\doAutoFill(), ilContainerGUI\downloadMultipleObjects(), ilContainerGUI\downloadObject(), ilObjTest\ensureParticipantsLastActivePassFinished(), ilTestInfoScreenToolbarFactory\ensureTestObjectInitialised(), ilObjSessionGUI\eventsListObject(), ilSoapCourseAdministration\excludeCourseMember(), ilSoapGroupAdministration\excludeGroupMember(), ilTestExpressPageObjectGUI\executeCommand(), ilSessionOverviewGUI\exportCSV(), ilChatroomAdminViewGUI\forcePublicRoom(), ilSessionOverviewTableGUI\gatherEvents(), ilFolderDownloadBackgroundTaskHandler\gatherFiles(), ilForum\generatePost(), ilStudyProgrammeExpandableProgressListGUI\getAccordionContentCoursesHTML(), ilChatroomBlockGUI\getChatroomSelectionList(), ilObjCloudListGUI\getCommands(), ilLearningSequenceConditionController\getContainerObject(), ilSoapGroupAdministration\getGroup(), ilObjectFactoryWrapper\getInstanceByRefId(), ilLSViewFactory\getInstanceByRefId(), ilLSEventHandler\getInstanceByRefId(), ilObjLearningSequence\getInstanceByRefId(), ilRoleDesktopItemsTableGUI\getItems(), ilSoapRBACAdministration\getLocalRoles(), ilCourseObjectiveQuestion\getMaxPointsByObjective(), ilCourseObjectiveQuestion\getMaxPointsByTest(), ilSoapObjectAdministration\getObjectByReference(), ilLSItemsDB\getObjectFor(), ilPDSelectedItemsBlockMembershipsProvider\getObjectsByMembership(), ilSoapObjectAdministration\getObjectsByTitle(), ilSoapRBACAdministration\getObjectTreeOperations(), ilOrgUnitExtension\getOrgUnit(), ilCourseStartObjectsTableGUI\getPossibleObjects(), ilContainerStartObjectsTableGUI\getPossibleObjects(), ilCourseStartObjectsTableGUI\getStartObjects(), ilContainerStartObjectsTableGUI\getStartObjects(), ilSOAPStructureObjectAdministration\getStructureObjects(), ilSoapObjectAdministration\getTreeChilds(), ilLearningSequenceExporter\getWriter(), ilContainerReferenceExporter\getXmlRepresentation(), ilGroupExporter\getXmlRepresentation(), ilCategoryExporter\getXmlRepresentation(), ilCourseExporter\getXmlRepresentation(), ilSoapObjectAdministration\getXMLTree(), ilSoapRBACAdministration\grantPermissions(), ilRemoteObjectBase\handleDelete(), ilECSCategoryMapping\handleUpdate(), ilOerHarvester\harvest(), ilCourseObjective\ilClone(), ilSessionDataSet\importRecord(), ilObjStyleSheetGUI\importStyleObject(), ilSoapUserAdministration\importUsers(), ilFolderImporter\importXmlRepresentation(), ilCategoryImporter\importXmlRepresentation(), ilGroupImporter\importXmlRepresentation(), ilCourseImporter\importXmlRepresentation(), ilCourseObjectivesGUI\initFormRandom(), ilContainerReferenceImporter\initReference(), ilAssQuestionPreviewSettings\initSettingsWithTestObject(), ilDidacticTemplateAction\initSourceObject(), ilSoapUtils\internalLinkNode(), ilSoapCourseAdministration\isAssignedToCourse(), ilSoapGroupAdministration\isAssignedToGroup(), ilObjLearningSequenceAccess\isOffline(), ilObjTest\isParticipantsLastPassActive(), ilObjectGUI\isVisible(), ilSoapUtils\linkNode(), ilContainerGUI\linkObject(), ilLOUtils\lookupQplBySequence(), ilCourseObjectiveQuestionAssignmentTableGUI\parse(), ilLOTestAssignmentTableGUI\parse(), ilLearningSequenceParticipantsTableGUI\parse(), ilContainerGUI\pasteObject(), ilContainerGUI\performPasteIntoMultipleObjectsObject(), ilValidator\purgeObjects(), ilObjQuestionPoolGUI\questionsObject(), ilRepUtil\removeDeletedNodes(), ilSoapObjectAdministration\removeDesktopItems(), ilSoapObjectAdministration\removeFromSystemByImportId(), ilValidator\removeInvalidRolefolders(), ilRepUtil\removeObjectsFromSystem(), ilSoapTestAdministration\removeTestResults(), ilValidator\restoreDeletedObjects(), ilValidator\restoreMissingObjects(), ilRepUtil\restoreObjects(), ilValidator\restoreSubTrees(), ilSoapRBACAdministration\revokePermissions(), ilWebResourceCronLinkCheck\run(), ilObjStyleSheetGUI\saveObject(), ilSoapObjectAdministration\searchObjects(), ilCourseMembershipMailNotification\send(), LSItemOnlineStatus\setOnlineStatus(), ilMailSearchGroupsGUI\showMembers(), ilObjForumGUI\showUserObject(), assQuestionGUI\sync(), ilECSCmsTreeSynchronizer\syncCategory(), ilSoapCourseAdministration\updateCourse(), ilECSCourseCreationHandler\updateCourseData(), ilSoapGroupAdministration\updateGroup(), and ilConditionHandler\validate().
ilObjectFactory::getObjectsForOwner | ( | $object_type, | |
$owner_id | |||
) |
returns all objects of an owner, filtered by type, objects are not deleted!
unknown_type | $object_type | |
unknown_type | $owner_id |
Definition at line 49 of file class.ilObjectFactory.php.
References $DIC, $ilDB, $query, $res, and ilDBConstants\FETCHMODE_ASSOC.
Referenced by ilSoapCourseAdministration\getCoursesForUser(), and ilSoapGroupAdministration\getGroupsForUser().
|
static |
get object type by reference id
$a_ref_id | ||
bool | $stop_on_error |
ilDatabaseException | |
ilObjectNotFoundException |
Definition at line 211 of file class.ilObjectFactory.php.
References $DIC, $ilDB, $message, and ilDBConstants\FETCHMODE_ASSOC.
Referenced by ilSoapAdministration\checkObjectAccess(), ilSoapObjectAdministration\copyObject(), ilCopyWizardSettingsXMLParser\handlerBeginTag(), ilSoapObjectAdministration\moveObject(), and ilSoapGroupAdministration\updateGroup().
ilObjectFactory::ObjectIdExists | ( | $a_obj_id | ) |
check if obj_id exists.
To check for ref_ids use ilTree::isInTree()
int | $obj_id | object id |
Definition at line 28 of file class.ilObjectFactory.php.
References $DIC, $ilDB, $query, and $res.