|
ILIAS
release_8 Revision v8.24
|
Class ilObjectActivation. More...
Collaboration diagram for ilObjectActivation:Public Member Functions | |
| __construct () | |
| setTimingType (int $type) | |
| getTimingType () | |
| setTimingStart (?int $start) | |
| getTimingStart () | |
| setTimingEnd (?int $end) | |
| getTimingEnd () | |
| setSuggestionStart (?int $start) | |
| setSuggestionStartRelative (?int $start) | |
| setSuggestionEndRelative (int $end) | |
| setSuggestionEnd (?int $end) | |
| toggleVisible (bool $status) | |
| enabledVisible () | |
| toggleChangeable (bool $status) | |
| enabledChangeable () | |
| update (int $ref_id, ?int $parent_id=null) | |
| read (int $ref_id, int $parent_id=0) | |
Static Public Member Functions | |
| static | preloadData (array $ref_ids) |
| Preload data to internal cache. More... | |
| static | getItem (int $ref_id) |
| static | addAdditionalSubItemInformation (array &$item) |
| Parse item data for list entries. More... | |
| static | addListGUIActivationProperty (ilObjectListGUI $list_gui, array &$item) |
| Get timing details for list gui. More... | |
| static | deleteAllEntries (int $ref_id) |
| Delete all db entries for ref id. More... | |
| static | cloneDependencies (int $ref_id, int $target_id, int $copy_id) |
| static | hasTimings (int $ref_id) |
| Check if there is any active timing (in subtree) More... | |
| static | hasChangeableTimings (int $ref_id) |
| Check if there is any active changeable timing (in subtree) More... | |
| static | getItemsByEvent (int $event_id) |
| Get session material / event items. More... | |
| static | getItemsByItemGroup (int $item_group_ref_id) |
| Get materials of item group. More... | |
| static | getItemsByObjective (int $objective_id) |
| Get objective items. More... | |
| static | getItems (int $parent_id, bool $with_list_data=true) |
| Get sub item data. More... | |
| static | getTimingsAdministrationItems (int $parent_id) |
| Get (sub) item data for timings administration view (active/inactive) More... | |
| static | getTimingsItems (int $container_ref_id) |
| Get (sub) item data for timings view (no session material, no side blocks) More... | |
Data Fields | |
| const | ERR_SUG_START_END = 1 |
| const | TIMINGS_ACTIVATION = 0 |
| const | TIMINGS_DEACTIVATED = 1 |
| const | TIMINGS_PRESETTING = 2 |
| const | TIMINGS_FIXED = 3 |
Static Protected Member Functions | |
| static | createDefaultEntry (int $ref_id) |
| Create db entry with default values. More... | |
| static | processListItems (array $ref_ids) |
| Validate ref ids and add list data. More... | |
Protected Attributes | |
| ilErrorHandling | $error |
| ilLanguage | $lng |
| ilDBInterface | $db |
| int | $timing_type = 0 |
| int | $timing_start = null |
| int | $timing_end = null |
| int | $suggestion_start = null |
| int | $suggestion_end = null |
| bool | $visible = false |
| int | $changeable = 0 |
| int | $suggestion_start_rel = null |
| int | $suggestion_end_rel = null |
Static Protected Attributes | |
| static array | $preloaded_data = array() |
Class ilObjectActivation.
Definition at line 27 of file class.ilObjectActivation.php.
| ilObjectActivation::__construct | ( | ) |
Definition at line 53 of file class.ilObjectActivation.php.
References $DIC, error(), and ILIAS\Repository\lng().
Here is the call graph for this function:
|
static |
Parse item data for list entries.
Definition at line 222 of file class.ilObjectActivation.php.
References $DIC, $ilUser, ilSessionAppointment\_lookupAppointment(), ilObject\_lookupObjId(), ilObject\_lookupType(), getItem(), IL_CAL_UNIX, and TIMINGS_PRESETTING.
Referenced by ilObjCategory\addAdditionalSubItemInformation(), ilObjCourse\addAdditionalSubItemInformation(), ilObjFolder\addAdditionalSubItemInformation(), ilObjGroup\addAdditionalSubItemInformation(), ilObjRootFolder\addAdditionalSubItemInformation(), addListGUIActivationProperty(), getItems(), and processListItems().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Get timing details for list gui.
Definition at line 278 of file class.ilObjectActivation.php.
References $DIC, $lng, addAdditionalSubItemInformation(), ilObjectListGUI\addCustomProperty(), ilDatePresentation\formatPeriod(), IL_CAL_UNIX, ilLanguage\loadLanguageModule(), TIMINGS_ACTIVATION, TIMINGS_PRESETTING, and ilLanguage\txt().
Referenced by ilSearchResultTableGUI\fillRow(), ilPDSelectedItemsBlockGUI\getCardForData(), ilPDSelectedItemsBlockGUI\getListItemForData(), ilPDSelectedItemsBlockGUI\getListItemGroups(), ilObjSessionGUI\modifyItemGUI(), and ilContainerContentGUI\renderItem().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 414 of file class.ilObjectActivation.php.
References $DIC, $ref_id, $target_id, ilCopyWizardOptions\_getInstance(), ilObjectFactory\getInstanceByRefId(), and getItems().
Referenced by ilObjCourse\cloneDependencies(), ilObjGroup\cloneDependencies(), and ilObjFolder\cloneDependencies().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprotected |
Create db entry with default values.
Definition at line 324 of file class.ilObjectActivation.php.
References $db, $DIC, $ref_id, ilDBInterface\buildAtomQuery(), ilDBInterface\numRows(), ilDBInterface\query(), and ilDBInterface\quote().
Referenced by getItem().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Delete all db entries for ref id.
Definition at line 389 of file class.ilObjectActivation.php.
References $db, $DIC, $ref_id, ilDBInterface\manipulate(), and ilDBInterface\quote().
Referenced by ilObjChatroom\delete(), ilObject\delete(), and ilObjPoll\doDelete().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjectActivation::enabledChangeable | ( | ) |
Definition at line 139 of file class.ilObjectActivation.php.
References $changeable.
Referenced by update().
Here is the caller graph for this function:| ilObjectActivation::enabledVisible | ( | ) |
Definition at line 129 of file class.ilObjectActivation.php.
References $visible.
Referenced by update().
Here is the caller graph for this function:
|
static |
Definition at line 193 of file class.ilObjectActivation.php.
References $db, $DIC, $ref_id, createDefaultEntry(), ilDBInterface\fetchAssoc(), ilDBInterface\query(), and ilDBInterface\quote().
Referenced by ilObjCourse\__readSettings(), ilTimingCache\_getTimings(), ilObjCourseAccess\_isActivated(), ilObjPollAccess\_isActivated(), addAdditionalSubItemInformation(), ilObjectXMLWriter\appendTimeTargets(), ilObjSurvey\checkReminder(), ilObjPoll\doRead(), ilObjPortfolioTemplate\doRead(), ilTimingsUser\handleNewMembership(), ilObjChatroomAccess\isActivated(), ilObjSurvey\loadFromDb(), ilObjTest\loadFromDb(), ilObjCmiXapi\loadRepositoryActivationSettings(), ilObjLTIConsumer\loadRepositoryActivationSettings(), ilCalendarScheduleFilterTimings\modifyEvent(), ilObjChatroom\read(), ilTimingCache\readObjectInformation(), ilObjCmiXapi\saveRepositoryActivationSettings(), ilObjLTIConsumer\saveRepositoryActivationSettings(), ilObjSurvey\saveToDb(), ilObjTest\saveToDb(), ilObjPortfolioTemplate\updateActivation(), ilSoapObjectAdministration\updateReferences(), ilObjCourse\updateSettings(), ilTimingPlaned\validate(), and ilContainerXmlWriter\writeCourseItemInformation().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Get sub item data.
Definition at line 588 of file class.ilObjectActivation.php.
References $DIC, addAdditionalSubItemInformation(), ILIAS\Repository\int(), and preloadData().
Referenced by cloneDependencies(), ilCourseStart\getPossibleStarters(), ilContainerStartObjects\getPossibleStarters(), getTimingsAdministrationItems(), and ilCourseContentGUI\managePersonalTimings().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Get session material / event items.
Definition at line 560 of file class.ilObjectActivation.php.
References processListItems().
Referenced by ilAppointmentPresentationSessionGUI\collectPropertiesAndActions(), ilAppointmentSessionFileHandler\getFiles(), ilContainerGUI\redrawListItemObject(), and ilContainerContentGUI\renderItem().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Get materials of item group.
Definition at line 569 of file class.ilObjectActivation.php.
References processListItems().
Referenced by ilContainerContentGUI\renderItemGroup(), and ilRepositoryExplorerGUI\sortChilds().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Get objective items.
Definition at line 579 of file class.ilObjectActivation.php.
References ilCourseObjectiveMaterials\_getAssignedMaterials(), and processListItems().
Here is the call graph for this function:| ilObjectActivation::getTimingEnd | ( | ) |
Definition at line 87 of file class.ilObjectActivation.php.
References $timing_end.
Referenced by update().
Here is the caller graph for this function:
|
static |
Get (sub) item data for timings administration view (active/inactive)
Definition at line 622 of file class.ilObjectActivation.php.
References getItems(), and ilArrayUtil\sortArray().
Referenced by ilCourseContentGUI\__renderUserItem(), ilCourseContentGUI\manageTimings(), and ilCourseContentGUI\showUserTimings().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Get (sub) item data for timings view (no session material, no side blocks)
Definition at line 646 of file class.ilObjectActivation.php.
References $DIC, and ilEventItems\_getItemsOfContainer().
Referenced by ilCalendarScheduleFilterTimings\addCustomEvents(), and ilObjCourse\prepareAppointments().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjectActivation::getTimingStart | ( | ) |
Definition at line 77 of file class.ilObjectActivation.php.
References $timing_start.
Referenced by update().
Here is the caller graph for this function:| ilObjectActivation::getTimingType | ( | ) |
Definition at line 67 of file class.ilObjectActivation.php.
References $timing_type.
Referenced by update().
Here is the caller graph for this function:
|
static |
Check if there is any active changeable timing (in subtree)
Definition at line 499 of file class.ilObjectActivation.php.
References $db, $DIC, $ref_id, $res, ilDBInterface\in(), ilDBInterface\query(), and ilDBInterface\quote().
Referenced by ilCourseContentGUI\__renderUserItem(), and ilCourseContentGUI\showUserTimings().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Check if there is any active timing (in subtree)
Definition at line 473 of file class.ilObjectActivation.php.
References $db, $DIC, $ref_id, $res, ilDBInterface\in(), ilDBInterface\query(), and ilDBInterface\quote().
Referenced by ilCourseMembershipGUI\initParticipantTableGUI().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Preload data to internal cache.
Definition at line 176 of file class.ilObjectActivation.php.
References $db, $DIC, ilDBInterface\fetchAssoc(), ilDBInterface\in(), and ilDBInterface\query().
Referenced by getItems(), ilTimingsUser\init(), ilObjectListGUIPreloader\preload(), and processListItems().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprotected |
Validate ref ids and add list data.
Definition at line 526 of file class.ilObjectActivation.php.
References $DIC, $res, addAdditionalSubItemInformation(), and preloadData().
Referenced by getItemsByEvent(), getItemsByItemGroup(), and getItemsByObjective().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjectActivation::read | ( | int | $ref_id, |
| int | $parent_id = 0 |
||
| ) |
Definition at line 665 of file class.ilObjectActivation.php.
References $db, $DIC, $ref_id, $res, ilDBConstants\FETCHMODE_OBJECT, ilDBInterface\query(), ilDBInterface\quote(), setSuggestionEnd(), setSuggestionEndRelative(), setSuggestionStart(), setSuggestionStartRelative(), setTimingEnd(), setTimingStart(), setTimingType(), toggleChangeable(), and toggleVisible().
Referenced by ilObjectActivationGUI\update().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjectActivation::setSuggestionEnd | ( | ?int | $end | ) |
Definition at line 116 of file class.ilObjectActivation.php.
Referenced by read().
Here is the caller graph for this function:| ilObjectActivation::setSuggestionEndRelative | ( | int | $end | ) |
Definition at line 108 of file class.ilObjectActivation.php.
Referenced by read().
Here is the caller graph for this function:| ilObjectActivation::setSuggestionStart | ( | ?int | $start | ) |
Definition at line 92 of file class.ilObjectActivation.php.
Referenced by read().
Here is the caller graph for this function:| ilObjectActivation::setSuggestionStartRelative | ( | ?int | $start | ) |
Definition at line 100 of file class.ilObjectActivation.php.
Referenced by read().
Here is the caller graph for this function:| ilObjectActivation::setTimingEnd | ( | ?int | $end | ) |
Definition at line 82 of file class.ilObjectActivation.php.
Referenced by read().
Here is the caller graph for this function:| ilObjectActivation::setTimingStart | ( | ?int | $start | ) |
Definition at line 72 of file class.ilObjectActivation.php.
Referenced by read().
Here is the caller graph for this function:| ilObjectActivation::setTimingType | ( | int | $type | ) |
Definition at line 62 of file class.ilObjectActivation.php.
References $type.
Referenced by read().
Here is the caller graph for this function:| ilObjectActivation::toggleChangeable | ( | bool | $status | ) |
Definition at line 134 of file class.ilObjectActivation.php.
References ILIAS\Repository\int().
Referenced by read().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjectActivation::toggleVisible | ( | bool | $status | ) |
Definition at line 124 of file class.ilObjectActivation.php.
Referenced by read().
Here is the caller graph for this function:| ilObjectActivation::update | ( | int | $ref_id, |
| ?int | $parent_id = null |
||
| ) |
Definition at line 144 of file class.ilObjectActivation.php.
References $ref_id, enabledChangeable(), enabledVisible(), getTimingEnd(), getTimingStart(), getTimingType(), and ILIAS\Repository\int().
Here is the call graph for this function:
|
protected |
Definition at line 48 of file class.ilObjectActivation.php.
Referenced by enabledChangeable().
|
protected |
Definition at line 40 of file class.ilObjectActivation.php.
Referenced by createDefaultEntry(), deleteAllEntries(), getItem(), hasChangeableTimings(), hasTimings(), preloadData(), and read().
|
protected |
Definition at line 38 of file class.ilObjectActivation.php.
|
protected |
Definition at line 39 of file class.ilObjectActivation.php.
Referenced by addListGUIActivationProperty().
|
staticprotected |
Definition at line 36 of file class.ilObjectActivation.php.
|
protected |
Definition at line 46 of file class.ilObjectActivation.php.
|
protected |
Definition at line 51 of file class.ilObjectActivation.php.
|
protected |
Definition at line 45 of file class.ilObjectActivation.php.
|
protected |
Definition at line 50 of file class.ilObjectActivation.php.
|
protected |
Definition at line 44 of file class.ilObjectActivation.php.
Referenced by getTimingEnd().
|
protected |
Definition at line 43 of file class.ilObjectActivation.php.
Referenced by getTimingStart().
|
protected |
Definition at line 42 of file class.ilObjectActivation.php.
Referenced by getTimingType().
|
protected |
Definition at line 47 of file class.ilObjectActivation.php.
Referenced by enabledVisible().
| const ilObjectActivation::ERR_SUG_START_END = 1 |
Definition at line 29 of file class.ilObjectActivation.php.
| const ilObjectActivation::TIMINGS_ACTIVATION = 0 |
Definition at line 31 of file class.ilObjectActivation.php.
Referenced by ilObjCourse\__readSettings(), ilObjCourseAccess\_isActivated(), ilObjPollAccess\_isActivated(), ilInfoScreenGUI\addAccessPeriodProperty(), ilInfoScreenGUI\addAvailability(), addListGUIActivationProperty(), ilSoapObjectAdministration\addReferences(), ilObjectXMLWriter\appendTimeTargets(), ilObjSurvey\checkReminder(), ilObjPoll\doRead(), ilObjPortfolioTemplate\doRead(), ilObjectActivationGUI\initFormEdit(), ilObjChatroomAccess\isActivated(), ilObjSurvey\loadFromDb(), ilObjTest\loadFromDb(), ilObjCmiXapi\loadRepositoryActivationSettings(), ilObjLTIConsumer\loadRepositoryActivationSettings(), ilObjChatroom\read(), ilObjCmiXapi\saveRepositoryActivationSettings(), ilObjLTIConsumer\saveRepositoryActivationSettings(), ilObjSurvey\saveToDb(), ilObjTest\saveToDb(), ilObjectActivationGUI\update(), ilObjPortfolioTemplate\updateActivation(), ilObjPollGUI\updateCustom(), ilSoapObjectAdministration\updateReferences(), and ilObjCourse\updateSettings().
| const ilObjectActivation::TIMINGS_DEACTIVATED = 1 |
Definition at line 32 of file class.ilObjectActivation.php.
Referenced by ilObjChatroom\__construct(), ilObjPoll\__construct(), ilSoapObjectAdministration\addReferences(), ilObjectXMLWriter\appendTimeTargets(), ilObjPoll\doRead(), ilObjCmiXapi\saveRepositoryActivationSettings(), ilObjLTIConsumer\saveRepositoryActivationSettings(), ilObjSurvey\saveToDb(), ilObjTest\saveToDb(), ilObjectActivationGUI\update(), ilObjPortfolioTemplate\updateActivation(), ilObjPollGUI\updateCustom(), ilCourseContentGUI\updateManagedTimings(), ilSoapObjectAdministration\updateReferences(), and ilObjCourse\updateSettings().
| const ilObjectActivation::TIMINGS_FIXED = 3 |
Definition at line 34 of file class.ilObjectActivation.php.
| const ilObjectActivation::TIMINGS_PRESETTING = 2 |
Definition at line 33 of file class.ilObjectActivation.php.
Referenced by ilCourseContentGUI\__renderUserItem(), addAdditionalSubItemInformation(), ilCalendarScheduleFilterTimings\addCustomEvents(), addListGUIActivationProperty(), ilSoapObjectAdministration\addReferences(), ilObjectXMLWriter\appendTimeTargets(), ilObjectActivationGUI\edit(), ilTimingsManageTableGUI\fillRow(), ilTimingsPersonalTableGUI\fillRow(), ilTimingsUser\handleNewMembership(), ilTimingsUser\lookupTimings(), ilCalendarScheduleFilterTimings\modifyEvent(), ilTimingsPersonalTableGUI\parse(), ilTimingsPersonalTableGUI\parseUserTimings(), ilObjCourse\prepareAppointments(), ilTimingCache\readObjectInformation(), ilCourseContentGUI\showUserTimings(), ilObjectActivationGUI\update(), ilCourseContentGUI\updateManagedTimings(), and ilSoapObjectAdministration\updateReferences().