|
ILIAS
release_9 Revision v9.13-25-g2c18ec4c24f
|
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 = [] |
Class ilObjectActivation.
Definition at line 27 of file class.ilObjectActivation.php.
| ilObjectActivation::__construct | ( | ) |
Definition at line 53 of file class.ilObjectActivation.php.
References $DIC, 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, ilSessionAppointment\_lookupAppointment(), ilObject\_lookupObjId(), ilObject\_lookupType(), ilTimingUser\getStart(), IL_CAL_UNIX, ilCourseConstants\IL_CRS_VIEW_TIMING_RELATIVE, and ilObjCourse\lookupTimingMode().
Referenced by ilObjRootFolder\addAdditionalSubItemInformation(), ilObjFolder\addAdditionalSubItemInformation(), ilObjCategory\addAdditionalSubItemInformation(), ilObjGroup\addAdditionalSubItemInformation(), ilObjCourse\addAdditionalSubItemInformation(), and ILIAS\Container\Content\ItemSetManager\addAdditionalSubItemInformationToObject().
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 280 of file class.ilObjectActivation.php.
References $DIC, ilObjectListGUI\addCustomProperty(), ilDatePresentation\formatPeriod(), IL_CAL_UNIX, ilLanguage\loadLanguageModule(), TIMINGS_ACTIVATION, TIMINGS_PRESETTING, and ilLanguage\txt().
Referenced by ilSearchResultTableGUI\fillRow(), ilObjSessionGUI\modifyItemGUI(), ILIAS\Containter\Content\ItemRenderer\renderItem(), and ilContainerContentGUI\renderItem().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 416 of file class.ilObjectActivation.php.
References $DIC, ilCopyWizardOptions\_getInstance(), and ilObjectFactory\getInstanceByRefId().
Referenced by ilObjFolder\cloneDependencies(), ilObjGroup\cloneDependencies(), and ilObjCourse\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 326 of file class.ilObjectActivation.php.
References $DIC, $ref_id, ilDBInterface\buildAtomQuery(), ilDBInterface\insert(), ilDBInterface\numRows(), ilDBInterface\query(), and ilDBInterface\quote().
Here is the call graph for this function:
|
static |
Delete all db entries for ref id.
Definition at line 391 of file class.ilObjectActivation.php.
References $DIC, ilDBInterface\manipulate(), and ilDBInterface\quote().
Referenced by 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 $DIC, $ref_id, ilDBInterface\fetchAssoc(), ilDBInterface\query(), and ilDBInterface\quote().
Referenced by ilObjCourse\__readSettings(), ilTimingCache\_getTimings(), ilObjCourseAccess\_isActivated(), ilObjectXMLWriter\appendTimeTargets(), ilObjSurvey\checkReminder(), ilAccess\doActivationCheck(), ilObjPortfolioTemplate\doRead(), ilObjPoll\doRead(), ilTimingsUser\handleNewMembership(), ilObjTest\loadFromDb(), ilObjSurvey\loadFromDb(), ilObjLTIConsumer\loadRepositoryActivationSettings(), ilObjCmiXapi\loadRepositoryActivationSettings(), ilCalendarScheduleFilterTimings\modifyEvent(), ilTimingCache\readObjectInformation(), ilObjLTIConsumer\saveRepositoryActivationSettings(), ilObjCmiXapi\saveRepositoryActivationSettings(), ilObjSurvey\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 590 of file class.ilObjectActivation.php.
References $DIC, and ILIAS\Repository\int().
Referenced by ilCourseStart\getPossibleStarters(), ilContainerStartObjects\getPossibleStarters(), 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 562 of file class.ilObjectActivation.php.
Referenced by ilAppointmentPresentationSessionGUI\collectPropertiesAndActions(), ilAppointmentSessionFileHandler\getFiles(), ilContainer\getSubItems(), ilContainerGUI\redrawListItemObject(), ILIAS\Containter\Content\ItemRenderer\renderItem(), ilContainerContentGUI\renderItem(), ilContainerRenderer\renderItemBlockSequence(), and ilObjSessionGUI\showJoinRequestButton().
Here is the caller graph for this function:
|
static |
Get materials of item group.
Definition at line 571 of file class.ilObjectActivation.php.
Referenced by ILIAS\Container\Content\ItemBlock\ItemBlockSequenceGenerator\getItemGroupItemRefIds(), ilContainerContentGUI\renderItemGroup(), and ilRepositoryExplorerGUI\sortChilds().
Here is the caller graph for this function:
|
static |
Get objective items.
Definition at line 581 of file class.ilObjectActivation.php.
References ilCourseObjectiveMaterials\_getAssignedMaterials().
Referenced by ILIAS\Container\Content\ItemBlock\ItemBlockSequenceGenerator\getBlocksForPart(), and ILIAS\Containter\Content\ObjectiveRenderer\renderObjective().
Here is the call graph for this function:
Here is the caller 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 624 of file class.ilObjectActivation.php.
References 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 648 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 501 of file class.ilObjectActivation.php.
References $DIC, $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 475 of file class.ilObjectActivation.php.
References $DIC, $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 $DIC, ilDBInterface\fetchAssoc(), ilDBInterface\in(), and ilDBInterface\query().
Referenced by ilNewsItem\getAggregatedNewsData(), ilTimingsUser\init(), and ilObjectListGUIPreloader\preload().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprotected |
| ilObjectActivation::read | ( | int | $ref_id, |
| int | $parent_id = 0 |
||
| ) |
Definition at line 667 of file class.ilObjectActivation.php.
References $DIC, $res, ilDBConstants\FETCHMODE_OBJECT, ilDBInterface\query(), ilDBInterface\quote(), setSuggestionEnd(), setSuggestionEndRelative(), setSuggestionStart(), setSuggestionStartRelative(), setTimingEnd(), setTimingStart(), setTimingType(), toggleChangeable(), and toggleVisible().
Here is the call 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.
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.
|
protected |
Definition at line 38 of file class.ilObjectActivation.php.
|
protected |
Definition at line 39 of file class.ilObjectActivation.php.
|
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(), ilInfoScreenGUI\addAccessPeriodProperty(), ilInfoScreenGUI\addAvailability(), addListGUIActivationProperty(), ilSoapObjectAdministration\addReferences(), ilObjectXMLWriter\appendTimeTargets(), ilObjSurvey\checkReminder(), ilAccess\doActivationCheck(), ilObjPortfolioTemplate\doRead(), ilObjPoll\doRead(), ilPollStateInfo\isOfflineOrUnavailable(), ilObjTest\loadFromDb(), ilObjSurvey\loadFromDb(), ilObjLTIConsumer\loadRepositoryActivationSettings(), ilObjCmiXapi\loadRepositoryActivationSettings(), ILIAS\Object\Properties\ObjectReferenceProperties\ObjectAvailabilityPeriodPropertiesCachedRepository\retrieveDataForWhereClause(), ilObjLTIConsumer\saveRepositoryActivationSettings(), ilObjCmiXapi\saveRepositoryActivationSettings(), ilObjSurvey\saveToDb(), ilObjTest\storeActivationSettings(), 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 ilObjPoll\__construct(), ilSoapObjectAdministration\addReferences(), ilObjectXMLWriter\appendTimeTargets(), ilObjPoll\doRead(), ilObjLTIConsumer\saveRepositoryActivationSettings(), ilObjCmiXapi\saveRepositoryActivationSettings(), ilObjSurvey\saveToDb(), ilObjTest\storeActivationSettings(), 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(), ilCalendarScheduleFilterTimings\addCustomEvents(), addListGUIActivationProperty(), ilSoapObjectAdministration\addReferences(), ilObjectXMLWriter\appendTimeTargets(), ilTimingsPersonalTableGUI\fillRow(), ilTimingsManageTableGUI\fillRow(), ilTimingsUser\handleNewMembership(), ilTimingsUser\lookupTimings(), ilCalendarScheduleFilterTimings\modifyEvent(), ilTimingsPersonalTableGUI\parse(), ilTimingsPersonalTableGUI\parseUserTimings(), ilObjCourse\prepareAppointments(), ilTimingCache\readObjectInformation(), ilCourseContentGUI\showUserTimings(), ilCourseContentGUI\updateManagedTimings(), and ilSoapObjectAdministration\updateReferences().