ILIAS
release_4-3 Revision
|
Class ilObjectFactory. More...
Public Member Functions | |
ObjectIdExists ($a_obj_id) | |
check if obj_id exists. | |
getObjectsForOwner ($object_type, $owner_id) | |
returns all objects of an owner, filtered by type, objects are not deleted! | |
getInstanceByObjId ($a_obj_id, $stop_on_error=true) | |
get an instance of an Ilias object by object id | |
getInstanceByRefId ($a_ref_id, $stop_on_error=true) | |
get an instance of an Ilias object by reference id | |
getTypeByRefId ($a_ref_id, $stop_on_error=true) | |
get object type by reference id |
Static Public Member Functions | |
static | getClassByType ($a_obj_type) |
Get class by type. |
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 260 of file class.ilObjectFactory.php.
References $location.
Referenced by ilWorkspaceExplorer\__construct(), ilRepUtilGUI\confirmRemoveFromSystemObject(), ilWorkspaceTree\createTreeForUser(), ilAdministrationCommandGUI\delete(), ilObject2GUI\deleteConfirmation(), and ilRepUtilGUI\showDeleteConfirmation().
ilObjectFactory::getInstanceByObjId | ( | $a_obj_id, | |
$stop_on_error = true |
|||
) |
get an instance of an Ilias object by object id
int | $obj_id | object id |
Definition at line 72 of file class.ilObjectFactory.php.
References $location, DB_FETCHMODE_ASSOC, and exit.
Referenced by ilLearningProgressBaseGUI\__appendUserInfo(), ilRoleDesktopItem\__assign(), ilObjCategoryGUI\__checkGlobalRoles(), ilCalendarUserSettings\__construct(), ilObjExercise\__formatRecipients(), ilObjCategoryGUI\__getAssignableRoles(), ilObjPaymentSettingsGUI\__getVendors(), ilLPListOfProgressGUI\__initUser(), ilLinkChecker\__sendMail(), ilObjCategoryGUI\__showRolesTable(), ilObjCourseGUI\__showWaitingList(), ilSearch\__validateResults(), ilObjGroup\_isMember(), ilPaymentStatisticGUI\addCustomer(), ilObjPaymentSettingsGUI\addCustomerObject(), ilInfoScreenGUI\addObjectSections(), ilSoapRBACAdministration\addUserRoleEntry(), ilObjPaymentSettingsGUI\addVendorWorksheet(), ilObjUserFolderGUI\appliedUsersObject(), ilSoapCourseAdministration\assignCourseMember(), ilObjGroupGUI\assignFromWaitingListObject(), ilObjCourseGUI\assignFromWaitingListObject(), ilSoapGroupAdministration\assignGroupMember(), ilExerciseMembers\assignMember(), ilObjCourseGUI\assignMembersObject(), ilObject2GUI\assignObject(), ilObjectGUI\assignObject(), ilObjCategoryGUI\assignRolesObject(), ilParticipants\assignSubscriber(), ilRbacAdmin\assignUser(), ilChatroom\byRoomId(), ilWorkspaceTree\cascadingDelete(), ilObjiLincCourseGUI\changeMemberObject(), ilCronCheckUserAccounts\checkNotConfirmedUserAccounts(), ilStartUpGUI\confirmRegistration(), ilContainerXmlParser\createObject(), ilObjWorkspaceFolderGUI\cut(), ilExerciseMembers\deassignMember(), ilObject2GUI\deleteConfirmedObjects(), ilSoapUtils\deleteExpiredDualOptInUserObjects(), ilRepUtil\deleteObjects(), ilSoapRBACAdministration\deleteRole(), ilObjRoleFolderGUI\deleteRoleObject(), ilObjCourseGUI\deleteSubscribers(), ilSoapUserAdministration\deleteUser(), ilSoapRBACAdministration\deleteUserRoleEntry(), ilObjExerciseGUI\downloadAllObject(), ilObjUserFolderGUI\editAppliedUsersObject(), ilPaymentStatisticGUI\editStatistic(), ilObjPaymentSettingsGUI\editStatisticObject(), ilObjCourseGUI\fetchPrintMemberData(), ilObjCourseGUI\fetchPrintSubscriberData(), ilPublicSubmissionsTableGUI\fillRow(), ilExerciseMemberTableGUI\fillRow(), ilObjForumAccess\getCachedUserInstance(), ilSoapCourseAdministration\getCoursesForUser(), ilObjCourse\getDefaultAdminRole(), ilObjCourse\getDefaultTutorRole(), ilChatroom\getDescription(), ilSoapExerciseAdministration\getExerciseXML(), ilSoapFileAdministration\getFileXML(), ilSoapGroupAdministration\getGroupsForUser(), ilSoapSCORMAdministration\getIMSManifestXML(), ilSoapRBACAdministration\getLocalRoles(), ilSoapObjectAdministration\getObjectsByTitle(), ilSoapRBACAdministration\getObjectTreeOperations(), ilSoapRBACAdministration\getRoles(), ilChatroom\getTitle(), ilSoapUserAdministration\getUser(), ilSoapRBACAdministration\getUserRoles(), ilSoapRBACAdministration\grantPermissions(), ilECSTaskScheduler\handleDeprecatedAccounts(), ilECSAppEventListener\handleEvent(), ilRemoteObjectBase\handleUpdate(), ilExternalFeedBlockGUI\importFile(), ilObjectGUI\importFileObject(), ilExternalFeedDataSet\importRecord(), ilMediaCastDataSet\importRecord(), ilHTMLLearningModuleDataSet\importRecord(), ilItemGroupDataSet\importRecord(), ilMediaPoolDataSet\importRecord(), ilPollDataSet\importRecord(), ilBlogDataSet\importRecord(), ilExerciseDataSet\importRecord(), ilSessionDataSet\importRecord(), ilWikiDataSet\importRecord(), ilForumImporter\importXmlRepresentation(), ilGlossaryImporter\importXmlRepresentation(), ilLearningModuleImporter\importXmlRepresentation(), ilSurveyImporter\importXmlRepresentation(), ilTestImporter\importXmlRepresentation(), ilSurveyQuestionPoolImporter\importXmlRepresentation(), ilFileImporter\importXmlRepresentation(), ilTestQuestionPoolImporter\importXmlRepresentation(), ilWebResourceImporter\importXmlRepresentation(), ilFolderImporter\importXmlRepresentation(), ilWebLinkXmlWriter\init(), ilFolderXmlWriter\init(), ilLPStatusPlugin\initPluginObj(), ilRoleXmlImporter\initRole(), ilLMStatisticsGUI\listUsersGroup(), ilObjiLincCourseGUI\listUsersGroupObject(), ilLMStatisticsGUI\listUsersRole(), ilObjiLincCourseGUI\listUsersRoleObject(), ilObjRoleGUI\listUsersRoleObject(), ilObjGroupGUI\membersGalleryObject(), ilObjiLincCourseGUI\membersGalleryObject(), ilObjCourseGUI\membersGalleryObject(), ilObjPaymentSettingsGUI\objectsObject(), ilSoapMailXmlParser\parseName(), ilLPTableBaseGUI\parseTitle(), ilObjCategoryGUI\performDeleteUsersObject(), ilObjWorkspaceFolderGUI\performPasteIntoMultipleObjects(), ilPaymentTrusteeGUI\performSearch(), ilPaymentStatisticGUI\performSearch(), ilObjPaymentSettingsGUI\performSearchSPObject(), ilPermission2GUI\permSave(), ilParticipants\readSubscribers(), ilObjCourseGUI\removeFromWaitingList(), ilObjiLincCourseGUI\removeMemberObject(), ilOrgUnitTreeExplorerGUI\renderUnit(), ilSoapRBACAdministration\revokePermissions(), ilCronDeleteInactivatedUserAccounts\run(), ilCronDeleteInactiveUserAccounts\run(), ilPermissionGUI\savePermissions(), ilLMStatisticsGUI\search(), ilObjiLincCourseGUI\searchObject(), ilObjPaymentSettingsGUI\searchObject(), ilShopBoughtObjectsGUI\showItems(), ilMailSearchCoursesGUI\showMembers(), ilPaymentTrusteeGUI\showTrustees(), ilOrgUnitAssignmentList\sortCallback(), ilObjUserFolderGUI\updateAppliedUsersObject(), ilSoapExerciseAdministration\updateExercise(), ilSoapFileAdministration\updateFile(), ilSoapObjectAdministration\updateObjects(), ilECSCourseCreationHandler\updateParallelCourses(), ilECSCourseCreationHandler\updateParallelGroups(), ilSoapUserAdministration\updatePassword(), ilRegistrationSettingsGUI\updateRoles(), ilSoapUserAdministration\updateUser(), ilSoapWebLinkAdministration\updateWebLink(), and ilObjPaymentSettingsGUI\vendorsObject().
ilObjectFactory::getInstanceByRefId | ( | $a_ref_id, | |
$stop_on_error = true |
|||
) |
get an instance of an Ilias object by reference id
int | $obj_id | object id |
Definition at line 143 of file class.ilObjectFactory.php.
References $location, $query, DB_FETCHMODE_ASSOC, and exit.
Referenced by ilCourseArchives\__addHTMLFiles(), ilCourseArchives\__addZipFiles(), ilCourseArchives\__buildStructure(), ilShopPurchaseGUI\__construct(), ilObjPaymentSettingsGUI\__editPricesTable(), ilForum\__formatMessage(), ilObjExerciseGUI\__getMembersOfObject(), ilPurchaseBaseGUI\__getShoppingCart(), ilCourseObjectivesGUI\__initCourseObject(), ilCourseArchivesGUI\__initCourseObject(), ilCourseObjectivePresentationGUI\__initCourseObject(), ilCourseContentGUI\__initCourseObject(), ilObjExerciseGUI\__showObjectSelect(), ilPurchaseBaseGUI\__showShoppingCart(), ilECSObjectSettings\_handleDelete(), ilForumNotification\_isParentNodeGrpCrs(), ilShopUtils\_sendNotificationToVATAdministration(), ilSoapCourseAdministration\addCourse(), ilPaymentStatisticGUI\addCustomer(), ilObjPaymentSettingsGUI\addCustomerObject(), ilSoapExerciseAdministration\addExercise(), ilSoapFileAdministration\addFile(), ilSoapObjectAdministration\addObject(), ilTestExpressPageObjectGUI\addPageOfQuestions(), ilSoapObjectAdministration\addReference(), ilPermission2GUI\addRole(), ilSoapRBACAdministration\addRole(), ilSoapRBACAdministration\addRoleFromTemplate(), ilDidacticTemplateLocalRoleAction\apply(), ilObjRoleGUI\askDeleteDesktopItemObject(), ilConditionHandlerInterface\assign(), ilObjCourseGroupingGUI\assignCourse(), ilSoapCourseAdministration\assignCourseMember(), ilSoapGroupAdministration\assignGroupMember(), ilObject2GUI\assignObject(), ilObjectGUI\assignObject(), ilCronWebResourceCheck\check(), ilSoapAdministration\checkObjectAccess(), ilForumNotification\checkParentNodeTree(), ilConditionHandlerInterface\chi_init(), ilContainerGUI\clipboardObject(), ilObjectGUI\cloneAllObject(), ilContainerGUI\cloneAllObject(), ilSoapUtils\cloneDependencies(), ilObjectActivation\cloneDependencies(), ilSoapUtils\cloneNode(), ilObjectCopyGUI\copyContainer(), ilRbacAdmin\copyLocalRoles(), ilSoapObjectAdministration\copyObject(), ilObjectCopyGUI\copySingleObject(), ilObjStyleSheetGUI\copyStyleObject(), ilSoapWebLinkAdministration\createWebLink(), ilSoapObjectAdministration\deleteObject(), ilRepUtil\deleteObjects(), ilSoapLearningProgressAdministration\deleteProgress(), ilContainerReferenceAppEventListener\deleteReferences(), ilObjPaymentSettingsGUI\editDetailsObject(), ilObjPaymentSettingsGUI\editPriceObject(), ilObjSessionGUI\eventsListObject(), ilSoapCourseAdministration\excludeCourseMember(), ilSoapGroupAdministration\excludeGroupMember(), ilTestExpressPageObjectGUI\executeCommand(), ilSessionOverviewGUI\exportCSV(), ilChatroomViewTask\forcePublicRoom(), ilForum\generatePost(), ilMail\getEmailsOfRecipients(), ilSoapGroupAdministration\getGroup(), ilSoapRBACAdministration\getLocalRoles(), ilCourseObjectiveQuestion\getMaxPointsByObjective(), ilCourseObjectiveQuestion\getMaxPointsByTest(), ilSoapObjectAdministration\getObjectByReference(), ilSoapObjectAdministration\getObjectsByTitle(), ilSoapRBACAdministration\getObjectTreeOperations(), ilCourseStartObjectsTableGUI\getPossibleObjects(), ilPaymentShoppingCart\getShoppingCart(), ilCourseStartObjectsTableGUI\getStartObjects(), ilSOAPStructureObjectAdministration\getStructureObjects(), ilSoapObjectAdministration\getTreeChilds(), ilMail\getUserIds(), ilCategoryExporter\getXmlRepresentation(), ilContainerReferenceExporter\getXmlRepresentation(), ilCourseExporter\getXmlRepresentation(), ilGroupExporter\getXmlRepresentation(), ilSoapObjectAdministration\getXMLTree(), ilSoapRBACAdministration\grantPermissions(), ilRemoteObjectBase\handleDelete(), ilECSCategoryMapping\handleUpdate(), ilCourseObjective\ilClone(), ilConditionHandlerInterface\ilConditionHandlerInterface(), ilObjStyleSheetGUI\importStyleObject(), ilSoapUserAdministration\importUsers(), ilCourseImporter\importXmlRepresentation(), ilGroupImporter\importXmlRepresentation(), ilFolderImporter\importXmlRepresentation(), ilCategoryImporter\importXmlRepresentation(), ilContainerReferenceImporter\initReference(), ilDidacticTemplateAction\initSourceObject(), ilRepUtil\insertSavedNodes(), ilSoapCourseAdministration\isAssignedToCourse(), ilSoapGroupAdministration\isAssignedToGroup(), ilObjectGUI\isVisible(), ilSoapUtils\linkNode(), ilObjRoleGUI\listDesktopItemsObject(), ilSessionOverviewGUI\listSessions(), ilLMStatisticsGUI\listUsersGroup(), ilObjiLincCourseGUI\listUsersGroupObject(), ilObjPaymentSettingsGUI\objectsObject(), ilCourseObjectiveQuestionAssignmentTableGUI\parse(), ilContainerGUI\performPasteIntoMultipleObjectsObject(), ilObjDlBookGUI\properties(), ilRepUtil\removeDeletedNodes(), ilSoapObjectAdministration\removeFromSystemByImportId(), ilRepUtil\removeObjectsFromSystem(), ilSoapTestAdministration\removeTestResults(), ilCourseObjectiveResult\reset(), ilRepUtil\restoreObjects(), ilSoapRBACAdministration\revokePermissions(), ilObjStyleSheetGUI\saveObject(), ilLMStatisticsGUI\search(), ilObjiLincCourseGUI\searchObject(), ilSoapObjectAdministration\searchObjects(), ilCourseMembershipMailNotification\send(), ilObjDlBookGUI\showAbstract(), ilPaymentCouponGUI\showCoupons(), ilShopPurchaseGUI\showDemoVersion(), ilShopBoughtObjectsGUI\showItems(), ilMailSearchGroupsGUI\showMembers(), ilWysiwygUtil\showMoveCopyQuestion(), ilPaymentCouponGUI\showObjects(), ilPaymentObjectGUI\showSelectedObject(), ilObjDlBookGUI\showTranslationSelect(), ilECSCmsTreeSynchronizer\syncCategory(), ilSoapCourseAdministration\updateCourse(), ilECSCourseCreationHandler\updateCourseData(), ilSoapGroupAdministration\updateGroup(), ilMembershipRegistrationCodeUtils\useCode(), 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 47 of file class.ilObjectFactory.php.
References $query, $res, and DB_FETCHMODE_ASSOC.
Referenced by ilSoapCourseAdministration\getCoursesForUser(), and ilSoapGroupAdministration\getGroupsForUser().
ilObjectFactory::getTypeByRefId | ( | $a_ref_id, | |
$stop_on_error = true |
|||
) |
get object type by reference id
int | $obj_id | object id |
Definition at line 216 of file class.ilObjectFactory.php.
References DB_FETCHMODE_ASSOC, and exit.
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.