|
ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
|
Class ilObjectActivation. More...
Inheritance diagram for ilObjectActivation:
Collaboration diagram for ilObjectActivation:Public Member Functions | |
| __construct () | |
| setTimingType ($a_type) | |
| Set timing type. More... | |
| getTimingType () | |
| get timing type More... | |
| setTimingStart ($a_start) | |
| Set timing start. More... | |
| getTimingStart () | |
| Get timing start. More... | |
| setTimingEnd ($a_end) | |
| Set timing end. More... | |
| getTimingEnd () | |
| Get timing end. More... | |
| setSuggestionStart ($a_start) | |
| Set suggestion start. More... | |
| getSuggestionStart () | |
| Get suggestion start. More... | |
| getSuggestionStartRelative () | |
| setSuggestionStartRelative ($a_start) | |
| getSuggestionEndRelative () | |
| setSuggestionEndRelative ($a_end) | |
| getEaliestStartRelative () | |
| setEarliestStartRelative ($a_start) | |
| setSuggestionEnd ($a_end) | |
| Set suggestion end. More... | |
| getSuggestionEnd () | |
| Get suggestion end. More... | |
| setEarliestStart ($a_start) | |
| Set earliest start. More... | |
| getEarliestStart () | |
| Get earliest start. More... | |
| toggleVisible ($a_status) | |
| Set visible status. More... | |
| enabledVisible () | |
| Get visible status. More... | |
| toggleChangeable ($a_status) | |
| Set changeable status. More... | |
| enabledChangeable () | |
| Get changeable status. More... | |
| validateActivation () | |
| Validate current properties. More... | |
| validateRelativePlaning () | |
| update ($a_ref_id, $a_parent_id=null) | |
| Update db entry. More... | |
| read ($a_ref_id, $a_parent_id=0) | |
Static Public Member Functions | |
| static | preloadData (array $a_ref_ids) |
| Preload data to internal cache. More... | |
| static | getItem ($a_ref_id) |
| Get item data. More... | |
| static | addAdditionalSubItemInformation (array &$a_item) |
| Parse item data for list entries. More... | |
| static | addListGUIActivationProperty (ilObjectListGUI $a_list_gui, array &$a_item) |
| Get timing details for list gui. More... | |
| static | deleteAllEntries ($a_ref_id) |
| Delete all db entries for ref id. More... | |
| static | cloneDependencies ($a_ref_id, $a_target_id, $a_copy_id) |
| Clone dependencies. More... | |
| static | hasTimings ($a_ref_id) |
| Check if there is any active timing (in subtree) More... | |
| static | hasChangeableTimings ($a_ref_id) |
| Check if there is any active changeable timing (in subtree) More... | |
| static | getItemsByEvent ($a_event_id) |
| Get session material / event items. More... | |
| static | getItemsByItemGroup ($a_item_group_ref_id) |
| Get materials of item group. More... | |
| static | getItemsByObjective ($a_objective_id) |
| Get objective items. More... | |
| static | getItems ($a_parent_id, $a_with_list_data=true) |
| Get sub item data. More... | |
| static | getTimingsAdministrationItems ($a_parent_id) |
| Get (sub) item data for timings administration view (active/inactive) More... | |
| static | getTimingsItems ($a_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 ($a_ref_id) |
| Create db entry with default values. More... | |
| static | processListItems (array $a_ref_ids) |
| Validate ref ids and add list data. More... | |
Protected Attributes | |
| $error | |
| $lng | |
| $db | |
| $timing_type | |
| $timing_start | |
| $timing_end | |
| $suggestion_start | |
| $suggestion_end | |
| $visible | |
| $changeable | |
| $suggestion_start_rel | |
| $suggestion_end_rel | |
Static Protected Attributes | |
| static | $preloaded_data = array() |
Class ilObjectActivation.
Definition at line 12 of file class.ilObjectActivation.php.
| ilObjectActivation::__construct | ( | ) |
Definition at line 50 of file class.ilObjectActivation.php.
Here is the call graph for this function:
|
static |
Parse item data for list entries.
| array | &$a_item |
Definition at line 383 of file class.ilObjectActivation.php.
References $DIC, $ilUser, ilSessionAppointment\_lookupAppointment(), ilObject\_lookupObjId(), ilObject\_lookupType(), getItem(), and IL_CAL_UNIX.
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.
| ilObjectListGUI | $a_list_gui | |
| array | &$a_item |
Definition at line 447 of file class.ilObjectActivation.php.
References $DIC, $lng, addAdditionalSubItemInformation(), ilObjectListGUI\addCustomProperty(), ilDatePresentation\formatPeriod(), IL_CAL_UNIX, TIMINGS_ACTIVATION, and TIMINGS_PRESETTING.
Referenced by ilSearchResultTableGUI\fillRow(), ilPDObjectsTileRenderer\getCard(), ilPDSelectedItemsBlockGUI\getLegacyContent(), ilPDSelectedItemsBlockGUI\getListItemGroups(), ilObjSessionGUI\modifyItemGUI(), ilPDObjectsListRenderer\render(), and ilContainerContentGUI\renderItem().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Clone dependencies.
| int | $a_ref_id | |
| int | $a_target_id | |
| int | $a_copy_id |
Definition at line 595 of file class.ilObjectActivation.php.
References $DIC, $ilLog, ilCopyWizardOptions\_getInstance(), ilObjectFactory\getInstanceByRefId(), and getItems().
Referenced by ilObjCourse\cloneDependencies(), ilObjFolder\cloneDependencies(), and ilObjGroup\cloneDependencies().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprotected |
Create db entry with default values.
| int | $a_ref_id |
Definition at line 500 of file class.ilObjectActivation.php.
Referenced by getItem().
Here is the caller graph for this function:
|
static |
Delete all db entries for ref id.
| int | $a_ref_id |
Definition at line 567 of file class.ilObjectActivation.php.
References $DIC, $ilDB, and $query.
Referenced by ilObjChatroom\delete(), and ilObjPoll\doDelete().
Here is the caller graph for this function:| ilObjectActivation::enabledChangeable | ( | ) |
Get changeable status.
Definition at line 247 of file class.ilObjectActivation.php.
References $changeable.
Referenced by update().
Here is the caller graph for this function:| ilObjectActivation::enabledVisible | ( | ) |
Get visible status.
Definition at line 227 of file class.ilObjectActivation.php.
References $visible.
Referenced by update().
Here is the caller graph for this function:| ilObjectActivation::getEaliestStartRelative | ( | ) |
Definition at line 161 of file class.ilObjectActivation.php.
| ilObjectActivation::getEarliestStart | ( | ) |
Get earliest start.
Definition at line 206 of file class.ilObjectActivation.php.
|
static |
Get item data.
| int | $a_ref_id |
Definition at line 354 of file class.ilObjectActivation.php.
References $DIC, $ilDB, and createDefaultEntry().
Referenced by ilObjectXMLWriter\__appendTimeTargets(), ilObjCourse\__readSettings(), ilTimingCache\_getTimings(), ilObjCourseAccess\_isActivated(), ilObjPollAccess\_isActivated(), addAdditionalSubItemInformation(), 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(), ilObjTest\saveToDb(), ilObjSurvey\saveToDb(), ilObjPortfolioTemplate\updateActivation(), ilSoapObjectAdministration\updateReferences(), ilObjCourse\updateSettings(), ilCourseContentGUI\updateTimings(), 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.
| int | $a_parent_id | |
| bool | $a_with_list_data |
Definition at line 789 of file class.ilObjectActivation.php.
References $DIC, addAdditionalSubItemInformation(), and preloadData().
Referenced by cloneDependencies(), ilCourseStart\getPossibleStarters(), ilContainerStartObjects\getPossibleStarters(), getTimingsAdministrationItems(), ilCourseContentGUI\managePersonalTimings(), and ilCourseContentGUI\setColumnSettings().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Get session material / event items.
| int | $a_event_id | (object id) |
Definition at line 748 of file class.ilObjectActivation.php.
References processListItems().
Referenced by ilAppointmentSessionFileHandler\getFiles(), ilObjSessionGUI\infoScreen(), 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.
| int | $a_item_group_id | (object id) |
Definition at line 761 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.
| int | $a_objective_id |
Definition at line 775 of file class.ilObjectActivation.php.
References ilCourseObjectiveMaterials\_getAssignedMaterials(), and processListItems().
Referenced by ilContainerObjectiveGUI\renderObjective().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjectActivation::getSuggestionEnd | ( | ) |
Get suggestion end.
Definition at line 186 of file class.ilObjectActivation.php.
References $suggestion_end.
Referenced by update(), and validateActivation().
Here is the caller graph for this function:| ilObjectActivation::getSuggestionEndRelative | ( | ) |
Definition at line 151 of file class.ilObjectActivation.php.
References $suggestion_end_rel.
Referenced by update(), and validateRelativePlaning().
Here is the caller graph for this function:| ilObjectActivation::getSuggestionStart | ( | ) |
Get suggestion start.
Definition at line 136 of file class.ilObjectActivation.php.
References $suggestion_start.
Referenced by update(), and validateActivation().
Here is the caller graph for this function:| ilObjectActivation::getSuggestionStartRelative | ( | ) |
Definition at line 141 of file class.ilObjectActivation.php.
References $suggestion_start_rel.
Referenced by update(), and validateRelativePlaning().
Here is the caller graph for this function:| ilObjectActivation::getTimingEnd | ( | ) |
Get timing end.
Definition at line 116 of file class.ilObjectActivation.php.
References $timing_end.
Referenced by update(), and validateActivation().
Here is the caller graph for this function:
|
static |
Get (sub) item data for timings administration view (active/inactive)
| int | $a_parent_id |
Definition at line 826 of file class.ilObjectActivation.php.
References getItems(), and ilUtil\sortArray().
Referenced by ilCourseContentGUI\__renderUserItem(), ilCourseContentGUI\editTimings(), 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)
| int | $a_container_ref_id |
Definition at line 853 of file class.ilObjectActivation.php.
References $DIC, and ilEventItems\_getItemsOfContainer().
Referenced by ilCourseContentGUI\__editAdvancedUserTimings(), ilCourseContentGUI\__editUserTimings(), ilCourseContentGUI\__renderItem(), ilCalendarScheduleFilterTimings\addCustomEvents(), and ilObjCourse\prepareAppointments().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjectActivation::getTimingStart | ( | ) |
Get timing start.
Definition at line 96 of file class.ilObjectActivation.php.
References $timing_start.
Referenced by update(), and validateActivation().
Here is the caller graph for this function:| ilObjectActivation::getTimingType | ( | ) |
get timing type
Definition at line 76 of file class.ilObjectActivation.php.
References $timing_type.
Referenced by update(), and validateActivation().
Here is the caller graph for this function:
|
static |
Check if there is any active changeable timing (in subtree)
| int | ref_id |
Definition at line 684 of file class.ilObjectActivation.php.
References $DIC, $ilDB, $query, and $res.
Referenced by ilCourseContentGUI\__renderUserItem(), ilCourseContentGUI\editUserTimings(), and ilCourseContentGUI\showUserTimings().
Here is the caller graph for this function:
|
static |
Check if there is any active timing (in subtree)
| int | ref_id |
Definition at line 658 of file class.ilObjectActivation.php.
References $DIC, $ilDB, $query, and $res.
Referenced by ilCourseMembershipGUI\initParticipantTableGUI().
Here is the caller graph for this function:
|
static |
Preload data to internal cache.
| array | $a_ref_ids |
Definition at line 334 of file class.ilObjectActivation.php.
Referenced by ilNewsItem\getAggregatedNewsData(), getItems(), ilTimingsUser\init(), ilObjectListGUIPreloader\preload(), and processListItems().
Here is the caller graph for this function:
|
staticprotected |
Validate ref ids and add list data.
| array | $a_ref_ids |
Definition at line 711 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 | ( | $a_ref_id, | |
$a_parent_id = 0 |
|||
| ) |
| $a_ref_id | ||
| int | $a_parent_id |
| ilDatabaseException |
Definition at line 878 of file class.ilObjectActivation.php.
References $DIC, $ilDB, $query, $res, ilDBConstants\FETCHMODE_OBJECT, setSuggestionEnd(), setSuggestionEndRelative(), setSuggestionStart(), setSuggestionStartRelative(), setTimingEnd(), setTimingStart(), setTimingType(), toggleChangeable(), and toggleVisible().
Here is the call graph for this function:| ilObjectActivation::setEarliestStart | ( | $a_start | ) |
Set earliest start.
| int | $a_start |
Definition at line 196 of file class.ilObjectActivation.php.
| ilObjectActivation::setEarliestStartRelative | ( | $a_start | ) |
Definition at line 166 of file class.ilObjectActivation.php.
| ilObjectActivation::setSuggestionEnd | ( | $a_end | ) |
Set suggestion end.
| int | $a_end |
Definition at line 176 of file class.ilObjectActivation.php.
Referenced by read().
Here is the caller graph for this function:| ilObjectActivation::setSuggestionEndRelative | ( | $a_end | ) |
Definition at line 156 of file class.ilObjectActivation.php.
Referenced by read().
Here is the caller graph for this function:| ilObjectActivation::setSuggestionStart | ( | $a_start | ) |
Set suggestion start.
| timestamp | $a_start |
Definition at line 126 of file class.ilObjectActivation.php.
Referenced by read().
Here is the caller graph for this function:| ilObjectActivation::setSuggestionStartRelative | ( | $a_start | ) |
Definition at line 146 of file class.ilObjectActivation.php.
Referenced by read().
Here is the caller graph for this function:| ilObjectActivation::setTimingEnd | ( | $a_end | ) |
Set timing end.
| timestamp | $a_end |
Definition at line 106 of file class.ilObjectActivation.php.
Referenced by read().
Here is the caller graph for this function:| ilObjectActivation::setTimingStart | ( | $a_start | ) |
Set timing start.
| timestamp | $a_start |
Definition at line 86 of file class.ilObjectActivation.php.
Referenced by read().
Here is the caller graph for this function:| ilObjectActivation::setTimingType | ( | $a_type | ) |
Set timing type.
| int | $a_type |
Definition at line 65 of file class.ilObjectActivation.php.
References $a_type.
Referenced by read(), ilObjCmiXapi\saveRepositoryActivationSettings(), ilObjLTIConsumer\saveRepositoryActivationSettings(), ilObjTest\saveToDb(), ilObjSurvey\saveToDb(), ilObjPortfolioTemplate\updateActivation(), and ilObjCourse\updateSettings().
Here is the caller graph for this function:| ilObjectActivation::toggleChangeable | ( | $a_status | ) |
Set changeable status.
| bool | $a_status |
Definition at line 237 of file class.ilObjectActivation.php.
Referenced by read().
Here is the caller graph for this function:| ilObjectActivation::toggleVisible | ( | $a_status | ) |
Set visible status.
| bool | $a_status |
Definition at line 217 of file class.ilObjectActivation.php.
Referenced by read().
Here is the caller graph for this function:| ilObjectActivation::update | ( | $a_ref_id, | |
$a_parent_id = null |
|||
| ) |
Update db entry.
| int | $a_ref_id | |
| int | $a_parent_id |
Definition at line 301 of file class.ilObjectActivation.php.
References $db, $ilDB, $query, enabledChangeable(), enabledVisible(), getSuggestionEnd(), getSuggestionEndRelative(), getSuggestionStart(), getSuggestionStartRelative(), getTimingEnd(), getTimingStart(), and getTimingType().
Here is the call graph for this function:| ilObjectActivation::validateActivation | ( | ) |
Validate current properties.
Definition at line 257 of file class.ilObjectActivation.php.
References $error, $ilErr, $lng, getSuggestionEnd(), getSuggestionStart(), getTimingEnd(), getTimingStart(), and getTimingType().
Here is the call graph for this function:| ilObjectActivation::validateRelativePlaning | ( | ) |
Definition at line 283 of file class.ilObjectActivation.php.
References $errors, ERR_SUG_START_END, getSuggestionEndRelative(), and getSuggestionStartRelative().
Here is the call graph for this function:
|
protected |
Definition at line 38 of file class.ilObjectActivation.php.
Referenced by enabledChangeable().
|
protected |
Definition at line 30 of file class.ilObjectActivation.php.
Referenced by update().
|
protected |
Definition at line 20 of file class.ilObjectActivation.php.
Referenced by validateActivation().
|
protected |
Definition at line 25 of file class.ilObjectActivation.php.
Referenced by addListGUIActivationProperty(), and validateActivation().
|
staticprotected |
Definition at line 43 of file class.ilObjectActivation.php.
|
protected |
Definition at line 36 of file class.ilObjectActivation.php.
Referenced by getSuggestionEnd().
|
protected |
Definition at line 41 of file class.ilObjectActivation.php.
Referenced by getSuggestionEndRelative().
|
protected |
Definition at line 35 of file class.ilObjectActivation.php.
Referenced by getSuggestionStart().
|
protected |
Definition at line 40 of file class.ilObjectActivation.php.
Referenced by getSuggestionStartRelative().
|
protected |
Definition at line 34 of file class.ilObjectActivation.php.
Referenced by getTimingEnd().
|
protected |
Definition at line 33 of file class.ilObjectActivation.php.
Referenced by getTimingStart().
|
protected |
Definition at line 32 of file class.ilObjectActivation.php.
Referenced by getTimingType().
|
protected |
Definition at line 37 of file class.ilObjectActivation.php.
Referenced by enabledVisible().
| const ilObjectActivation::ERR_SUG_START_END = 1 |
Definition at line 14 of file class.ilObjectActivation.php.
Referenced by validateRelativePlaning().
| const ilObjectActivation::TIMINGS_ACTIVATION = 0 |
Definition at line 45 of file class.ilObjectActivation.php.
Referenced by ilObjectXMLWriter\__appendTimeTargets(), ilObjCourse\__readSettings(), ilObjCourseAccess\_isActivated(), ilObjPollAccess\_isActivated(), ilInfoScreenGUI\addAccessPeriodProperty(), ilInfoScreenGUI\addAvailability(), addListGUIActivationProperty(), ilSoapObjectAdministration\addReferences(), ilObjSurvey\checkReminder(), ilObjPoll\doRead(), ilObjPortfolioTemplate\doRead(), ilObjectActivationGUI\initFormEdit(), ilObjChatroomAccess\isActivated(), ilObjSurvey\loadFromDb(), ilObjTest\loadFromDb(), ilObjCmiXapi\loadRepositoryActivationSettings(), ilObjLTIConsumer\loadRepositoryActivationSettings(), ilObjChatroom\read(), ilChatroomSettingsGUI\saveGeneral(), ilObjCmiXapi\saveRepositoryActivationSettings(), ilObjLTIConsumer\saveRepositoryActivationSettings(), ilObjTest\saveToDb(), ilObjSurvey\saveToDb(), ilObjectActivationGUI\update(), ilObjPortfolioTemplate\updateActivation(), ilObjPollGUI\updateCustom(), ilSoapObjectAdministration\updateReferences(), and ilObjCourse\updateSettings().
| const ilObjectActivation::TIMINGS_DEACTIVATED = 1 |
Definition at line 46 of file class.ilObjectActivation.php.
Referenced by ilObjectXMLWriter\__appendTimeTargets(), ilObjChatroom\__construct(), ilObjPoll\__construct(), ilSoapObjectAdministration\addReferences(), ilChatroomSettingsGUI\saveGeneral(), ilObjCmiXapi\saveRepositoryActivationSettings(), ilObjLTIConsumer\saveRepositoryActivationSettings(), ilObjTest\saveToDb(), ilObjSurvey\saveToDb(), ilObjectActivationGUI\update(), ilObjPortfolioTemplate\updateActivation(), ilObjPollGUI\updateCustom(), ilCourseContentGUI\updateManagedTimings(), ilSoapObjectAdministration\updateReferences(), ilObjCourse\updateSettings(), and ilCourseContentGUI\updateTimings().
| const ilObjectActivation::TIMINGS_FIXED = 3 |
Definition at line 48 of file class.ilObjectActivation.php.
| const ilObjectActivation::TIMINGS_PRESETTING = 2 |
Definition at line 47 of file class.ilObjectActivation.php.
Referenced by ilObjectXMLWriter\__appendTimeTargets(), ilCourseContentGUI\__loadFromPost(), ilCourseContentGUI\__renderItem(), ilCourseContentGUI\__renderUserItem(), ilTimingCache\_showWarning(), ilCalendarScheduleFilterTimings\addCustomEvents(), addListGUIActivationProperty(), ilSoapObjectAdministration\addReferences(), ilObjectActivationGUI\edit(), ilCourseContentGUI\editTimings(), ilTimingsManageTableGUI\fillRow(), ilTimingsPersonalTableGUI\fillRow(), ilTimingsUser\handleNewMembership(), ilTimingsUser\lookupTimings(), ilCalendarScheduleFilterTimings\modifyEvent(), ilTimingsPersonalTableGUI\parse(), ilTimingsPersonalTableGUI\parseUserTimings(), ilObjCourse\prepareAppointments(), ilTimingCache\readObjectInformation(), ilCourseContentGUI\showUserTimings(), ilObjectActivationGUI\update(), ilCourseContentGUI\updateManagedTimings(), ilSoapObjectAdministration\updateReferences(), and ilCourseContentGUI\updateTimings().