ILIAS
Release_4_0_x_branch Revision 61816
|
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 ilAdministrationCommandGUI\delete(), 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 $ilDB, $location, $q, DB_FETCHMODE_ASSOC, and exit.
Referenced by ilRoleDesktopItem\__assign(), ilObjCategoryGUI\__checkGlobalRoles(), ilCalendarUserSettings\__construct(), ilAdminUserSearchGUI\__fillRoleTable(), ilAdminUserSearchGUI\__fillUserTable(), ilObjExercise\__formatRecipients(), ilObjCategoryGUI\__getAssignableRoles(), ilPaymentObjectGUI\__getVendors(), ilPaymentBillAdminGUI\__initBillVendorData(), ilObjectGUIAdapter\__initGUIObject(), ilLPListOfProgressGUI\__initUser(), ilObjChatGUI\__preparePrivateRoomForAsyncOutput(), ilLinkChecker\__sendMail(), ilObjCategoryGUI\__showRolesTable(), ilObjCourseGUI\__showSubscribers(), ilObjPaymentSettingsGUI\__showVendorSelector(), 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(), ilObjectGUI\assignObject(), ilObjCategoryGUI\assignRolesObject(), ilParticipants\assignSubscriber(), ilRbacAdmin\assignUser(), ilObjiLincCourseGUI\changeMemberObject(), ilCronCheckUserAccounts\checkNotConfirmedUserAccounts(), ilStartUpGUI\confirmRegistration(), ilExerciseMembers\deassignMember(), ilRepUtil\deleteObjects(), ilSoapRBACAdministration\deleteRole(), ilObjCourseGUI\deleteSubscribers(), ilSoapUserAdministration\deleteUser(), ilSoapRBACAdministration\deleteUserRoleEntry(), ilObjExerciseGUI\downloadAllObject(), ilObjUserFolderGUI\editAppliedUsersObject(), ilPaymentStatisticGUI\editStatistic(), ilObjPaymentSettingsGUI\editStatisticObject(), ilObjCourseGUI\fetchPrintMemberData(), ilObjCourseGUI\fetchPrintSubscriberData(), ilExerciseMemberTableGUI\fillRow(), ilSoapCourseAdministration\getCoursesForUser(), ilObjCourse\getDefaultAdminRole(), ilObjCourse\getDefaultMemberRole(), ilObjCourse\getDefaultTutorRole(), ilSoapExerciseAdministration\getExerciseXML(), ilSoapFileAdministration\getFileXML(), ilSoapGroupAdministration\getGroupsForUser(), ilSoapSCORMAdministration\getIMSManifestXML(), ilSoapRBACAdministration\getLocalRoles(), ilSoapObjectAdministration\getObjectsByTitle(), ilSoapRBACAdministration\getObjectTreeOperations(), ilSoapRBACAdministration\getRoles(), ilSoapUserAdministration\getUser(), ilForum\getUser(), ilForum\getUserData(), ilObjForumGUI\getUserInstance(), ilSoapRBACAdministration\getUserRoles(), ilSoapRBACAdministration\grantPermissions(), ilECSTaskScheduler\handleDeprecatedAccounts(), ilECSAppEventListener\handleEvent(), ilECSTaskScheduler\handleNewlyCreate(), ilECSTaskScheduler\handleUpdate(), ilParticipants\isGroupingMember(), ilLMStatisticsGUI\listUsersGroup(), ilObjiLincCourseGUI\listUsersGroupObject(), ilObjRoleGUI\listUsersGroupObject(), ilLMStatisticsGUI\listUsersRole(), ilObjiLincCourseGUI\listUsersRoleObject(), ilObjRoleGUI\listUsersRoleObject(), ilObjGroupGUI\membersGalleryObject(), ilObjiLincCourseGUI\membersGalleryObject(), ilObjCourseGUI\membersGalleryObject(), ilObjPaymentSettingsGUI\objectsObject(), ilObjContentObjectGUI\pasteChapter(), ilObjCategoryGUI\performDeleteUsersObject(), ilPaymentTrusteeGUI\performSearch(), ilPaymentStatisticGUI\performSearch(), ilObjPaymentSettingsGUI\performSearchSPObject(), ilParticipants\readSubscribers(), ilObjCourseGUI\removeFromWaitingList(), ilObjiLincCourseGUI\removeMemberObject(), ilSoapRBACAdministration\revokePermissions(), ilLMStatisticsGUI\search(), ilObjiLincCourseGUI\searchObject(), ilObjRoleGUI\searchObject(), ilObjPaymentSettingsGUI\searchObject(), ilObjChat\sendMessage(), ilObjChat\sendMessageForRoom(), ilObjPaymentSettingsGUI\showCustomerTable(), ilPaymentBuyedObjectsGUI\showItems(), ilShopBoughtObjectsGUI\showItems(), ilMailSearchCoursesGUI\showMembers(), ilForumModeratorsGUI\showModerators(), ilForumModeratorsGUI\showModeratorsSearchResult(), ilMailSearchCoursesGUI\showMyCourses(), ilPaymentObjectGUI\showObjects(), ilPaymentTrusteeGUI\showTrustees(), ilObjUserFolderGUI\updateAppliedUsersObject(), ilSoapExerciseAdministration\updateExercise(), ilSoapFileAdministration\updateFile(), ilMailbox\updateMailsOfDeletedUser(), ilSoapObjectAdministration\updateObjects(), ilSoapUserAdministration\updatePassword(), ilRegistrationSettingsGUI\updateRoles(), ilSoapUserAdministration\updateUser(), 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 $ilDB, $location, $query, DB_FETCHMODE_ASSOC, and exit.
Referenced by ilCourseArchives\__addHTMLFiles(), ilCourseArchives\__addZipFiles(), ilCourseXMLWriter\__buildObject(), ilCourseArchives\__buildStructure(), ilShopPurchaseGUI\__construct(), ilMemberExport\__construct(), ilObjPaymentSettingsGUI\__editPricesTable(), ilPaymentObjectGUI\__editPricesTable(), ilAdminUserSearchGUI\__fillGroupTable(), ilForum\__formatMessage(), ilObjExerciseGUI\__getMembersOfObject(), ilPurchaseBillGUI\__getShoppingCart(), ilCourseObjectivesGUI\__initCourseObject(), ilCourseArchivesGUI\__initCourseObject(), ilCourseObjectivePresentationGUI\__initCourseObject(), ilCourseContentGUI\__initCourseObject(), ilObjectGUIAdapter\__initGUIObject(), ilCourseItemAdministrationGUI\__initItem(), ilObjExerciseGUI\__showObjectSelect(), ilPurchaseBillGUI\__showShoppingCart(), ilPurchaseBMFGUI\__showShoppingCart(), ilECSContentWriter\_handleDelete(), ilChatServerCommunicator\_initObject(), ilShopUtils\_sendNotificationToVATAdministration(), ilSoapCourseAdministration\addCourse(), ilPaymentStatisticGUI\addCustomer(), ilObjPaymentSettingsGUI\addCustomerObject(), ilSoapExerciseAdministration\addExercise(), ilSoapFileAdministration\addFile(), ilSoapObjectAdministration\addObject(), ilPaymentObjectGUI\addPrice(), ilObjPaymentSettingsGUI\addPriceObject(), ilSoapObjectAdministration\addReference(), ilSoapObjectAdministration\addReferences(), ilSoapRBACAdministration\addRole(), ilSoapRBACAdministration\addRoleFromTemplate(), ilObjRoleGUI\askDeleteDesktopItemObject(), ilConditionHandlerInterface\assign(), ilObjCourseGroupingGUI\assignCourse(), ilSoapCourseAdministration\assignCourseMember(), ilSoapGroupAdministration\assignGroupMember(), ilObjectGUI\assignObject(), ilCronWebResourceCheck\check(), ilSoapAdministration\checkObjectAccess(), ilConditionHandlerInterface\chi_init(), ilContainerGUI\clipboardObject(), ilObjectGUI\cloneAllObject(), ilContainerGUI\cloneAllObject(), ilCourseItems\cloneDependencies(), ilObjFolder\cloneDependencies(), ilSoapUtils\cloneDependencies(), ilObjGroup\cloneDependencies(), ilSoapUtils\cloneNode(), ilObjectCopyGUI\copyContainer(), ilRbacAdmin\copyLocalRoles(), ilSoapObjectAdministration\copyObject(), ilObjectCopyGUI\copySingleObject(), ilObjStyleSheetGUI\copyStyleObject(), ilSoapObjectAdministration\deleteObject(), ilRepUtil\deleteObjects(), ilContainerReferenceAppEventListener\deleteReferences(), ilPaymentObjectGUI\editDetails(), ilObjPaymentSettingsGUI\editObjectObject(), ilObjSessionGUI\eventsListObject(), ilSoapCourseAdministration\excludeCourseMember(), ilSoapGroupAdministration\excludeGroupMember(), ilSessionOverviewGUI\exportCSV(), ilForum\generatePost(), ilMail\getEmailsOfRecipients(), ilSoapGroupAdministration\getGroup(), ilSoapRBACAdministration\getLocalRoles(), ilCourseObjectiveQuestion\getMaxPointsByObjective(), ilCourseObjectiveQuestion\getMaxPointsByTest(), ilSoapObjectAdministration\getObjectByReference(), ilSoapObjectAdministration\getObjectsByTitle(), ilSoapRBACAdministration\getObjectTreeOperations(), ilPaymentShoppingCart\getShoppingCart(), ilSOAPStructureObjectAdministration\getStructureObjects(), ilSoapObjectAdministration\getTreeChilds(), ilMail\getUserIds(), ilSoapObjectAdministration\getXMLTree(), ilSoapRBACAdministration\grantPermissions(), ilECSTaskScheduler\handleDelete(), ilECSCategoryMapping\handleUpdate(), ilCourseObjective\ilClone(), ilConditionHandlerInterface\ilConditionHandlerInterface(), ilForumExplorer\ilForumExplorer(), ilPaymentPurchaseGUI\ilPaymentPurchaseGUI(), ilObjStyleSheetGUI\importStyleObject(), ilSoapUserAdministration\importUsers(), ilRepUtil\insertSavedNodes(), ilSoapCourseAdministration\isAssignedToCourse(), ilSoapGroupAdministration\isAssignedToGroup(), ilRepositoryExplorer\isVisible(), ilObjectGUI\isVisible(), ilSoapUtils\linkNode(), ilObjRoleGUI\listDesktopItemsObject(), ilSessionOverviewGUI\listSessions(), ilObjCourseGUI\listStructureObject(), ilLMStatisticsGUI\listUsersGroup(), ilAdminUserSearchGUI\listUsersGroup(), ilObjiLincCourseGUI\listUsersGroupObject(), ilObjRoleGUI\listUsersGroupObject(), ilObjPaymentSettingsGUI\objectsObject(), ilCourseObjectiveQuestionAssignmentTableGUI\parse(), ilContainerGUI\performPasteIntoMultipleObjectsObject(), ilObjDlBookGUI\properties(), ilRepUtil\removeDeletedNodes(), ilSoapObjectAdministration\removeFromSystemByImportId(), ilRepUtil\removeObjectsFromSystem(), ilCourseObjectiveResult\reset(), ilRepUtil\restoreObjects(), ilSoapRBACAdministration\revokePermissions(), ilObjSessionGUI\saveObject(), ilObjStyleSheetGUI\saveObject(), ilLMStatisticsGUI\search(), ilObjiLincCourseGUI\searchObject(), ilObjRoleGUI\searchObject(), ilSoapObjectAdministration\searchObjects(), ilObjCourseGUI\selectStarterObject(), ilObjDlBookGUI\showAbstract(), ilPaymentBillAdminGUI\showBillData(), ilPaymentCouponGUI\showCoupons(), ilShopPurchaseGUI\showDemoVersion(), ilPaymentBuyedObjectsGUI\showItems(), ilShopBoughtObjectsGUI\showItems(), ilMailSearchGroupsGUI\showMembers(), ilWysiwygUtil\showMoveCopyQuestion(), ilPaymentObjectGUI\showObjects(), ilPaymentCouponGUI\showObjects(), ilPaymentObjectGUI\showSelectedObject(), ilObjDlBookGUI\showTranslationSelect(), ilObjForumGUI\showUserObject(), ilECSSettingsGUI\updateCommunities(), ilSoapCourseAdministration\updateCourse(), ilSoapGroupAdministration\updateGroup(), ilSoapObjectAdministration\updateReferences(), 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 $ilDB, $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 $ilDB, $q, 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.