|
ILIAS
release_4-3 Revision
|
Class ilObjectActivation. More...
Inheritance diagram for ilObjectActivation:
Collaboration diagram for ilObjectActivation:Public Member Functions | |
| __construct () | |
| setTimingType ($a_type) | |
| Set timing type. | |
| getTimingType () | |
| get timing type | |
| setTimingStart ($a_start) | |
| Set timing start. | |
| getTimingStart () | |
| Get timing start. | |
| setTimingEnd ($a_end) | |
| Set timing end. | |
| getTimingEnd () | |
| Get timing end. | |
| setSuggestionStart ($a_start) | |
| Set suggestion start. | |
| getSuggestionStart () | |
| Get suggestion start. | |
| setSuggestionEnd ($a_end) | |
| Set suggestion end. | |
| getSuggestionEnd () | |
| Get suggestion end. | |
| setEarliestStart ($a_start) | |
| Set earliest start. | |
| getEarliestStart () | |
| Get earliest start. | |
| setLatestEnd ($a_end) | |
| Set latest end. | |
| getLatestEnd () | |
| Get latest end. | |
| toggleVisible ($a_status) | |
| Set visible status. | |
| enabledVisible () | |
| Get visible status. | |
| toggleChangeable ($a_status) | |
| Set changeable status. | |
| enabledChangeable () | |
| Get changeable status. | |
| validateActivation () | |
| Validate current properties. | |
| update ($a_ref_id, $a_parent_id=null) | |
| Update db entry. | |
Static Public Member Functions | |
| static | preloadData (array $a_ref_ids) |
| Preload data to internal cache. | |
| static | getItem ($a_ref_id) |
| Get item data. | |
| static | addAdditionalSubItemInformation (array &$a_item) |
| Parse item data for list entries. | |
| static | addListGUIActivationProperty (ilObjectListGUI $a_list_gui, array &$a_item) |
| Get timing details for list gui. | |
| static | deleteAllEntries ($a_ref_id) |
| Delete all db entries for ref id. | |
| static | cloneDependencies ($a_ref_id, $a_target_id, $a_copy_id) |
| Clone dependencies. | |
| static | hasTimings ($a_ref_id) |
| Check if there is any active timing (in subtree) | |
| static | hasChangeableTimings ($a_ref_id) |
| Check if there is any active changeable timing (in subtree) | |
| static | getItemsByEvent ($a_event_id) |
| Get session material / event items. | |
| static | getItemsByItemGroup ($a_item_group_ref_id) |
| Get materials of item group. | |
| static | getItemsByObjective ($a_objective_id) |
| Get objective items. | |
| static | getItems ($a_parent_id, $a_with_list_data=true) |
| Get sub item data. | |
| static | getTimingsAdministrationItems ($a_parent_id) |
| Get (sub) item data for timings administration view (active/inactive) | |
| static | getTimingsItems ($a_container_ref_id) |
| Get (sub) item data for timings view (no session material, no side blocks) | |
Data Fields | |
| 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. | |
| static | processListItems (array $a_ref_ids) |
| Validate ref ids and add list data. | |
Protected Attributes | |
| $timing_type | |
| $timing_start | |
| $timing_end | |
| $suggestion_start | |
| $suggestion_end | |
| $earliest_start | |
| $latest_end | |
| $visible | |
| $changeable | |
Static Protected Attributes | |
| static | $preloaded_data = array() |
Class ilObjectActivation.
Definition at line 12 of file class.ilObjectActivation.php.
| ilObjectActivation::__construct | ( | ) |
Definition at line 31 of file class.ilObjectActivation.php.
|
static |
Parse item data for list entries.
| array | &$a_item |
Definition at line 340 of file class.ilObjectActivation.php.
References $ilUser, ilTimingPlaned\_getPlanedTimings(), ilSessionAppointment\_lookupAppointment(), ilObject\_lookupObjId(), ilObject\_lookupType(), and getItem().
Referenced by 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 411 of file class.ilObjectActivation.php.
References $lng, addAdditionalSubItemInformation(), ilObjectListGUI\addCustomProperty(), ilDatePresentation\formatPeriod(), IL_CAL_UNIX, TIMINGS_ACTIVATION, and TIMINGS_PRESETTING.
Referenced by ilSearchResultTableGUI\fillRow(), ilPDSelectedItemsBlockGUI\getMembershipItemsPerLocation(), ilPDSelectedItemsBlockGUI\getMembershipItemsPerType(), ilPDSelectedItemsBlockGUI\getSelectedItemsPerLocation(), ilPDSelectedItemsBlockGUI\getSelectedItemsPerType(), ilObjSessionGUI\modifyItemGUI(), 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 558 of file class.ilObjectActivation.php.
References $ilLog, ilCopyWizardOptions\_getInstance(), ilObjectFactory\getInstanceByRefId(), and getItems().
Here is the call graph for this function:
|
staticprotected |
Create db entry with default values.
| int | $a_ref_id |
Definition at line 460 of file class.ilObjectActivation.php.
References $query, ilDB\LOCK_WRITE, and TIMINGS_DEACTIVATED.
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 531 of file class.ilObjectActivation.php.
References $query.
Referenced by ilObject\delete(), and ilObjPoll\doDelete().
Here is the caller graph for this function:| ilObjectActivation::enabledChangeable | ( | ) |
Get changeable status.
Definition at line 213 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 193 of file class.ilObjectActivation.php.
References $visible.
Referenced by update().
Here is the caller graph for this function:| ilObjectActivation::getEarliestStart | ( | ) |
Get earliest start.
Definition at line 153 of file class.ilObjectActivation.php.
Referenced by update().
Here is the caller graph for this function:
|
static |
Get item data.
| int | $a_ref_id |
Definition at line 310 of file class.ilObjectActivation.php.
References $row, and createDefaultEntry().
Referenced by ilObjectXMLWriter\__appendTimeTargets(), ilObjCourse\__readSettings(), ilTimingCache\_getTimings(), ilObjPollAccess\_isActivated(), ilObjCourseAccess\_isActivated(), addAdditionalSubItemInformation(), ilAccessHandler\doActivationCheck(), ilObjPoll\doRead(), ilObjectActivationGUI\getValues(), ilObjSurvey\loadFromDb(), ilObjTest\loadFromDb(), ilObjSurvey\saveToDb(), ilObjTest\saveToDb(), 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 755 of file class.ilObjectActivation.php.
References addAdditionalSubItemInformation(), and preloadData().
Referenced by ilCourseObjectivePresentationGUI\__getAllTests(), ilCourseObjectivePresentationGUI\__getOtherResources(), cloneDependencies(), ilCourseStart\getPossibleStarters(), getTimingsAdministrationItems(), 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 714 of file class.ilObjectActivation.php.
References processListItems().
Referenced by ilObjSessionGUI\infoScreen(), 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 727 of file class.ilObjectActivation.php.
References processListItems().
Referenced by ilContainerContentGUI\renderItemGroup().
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 741 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::getLatestEnd | ( | ) |
Get latest end.
Definition at line 173 of file class.ilObjectActivation.php.
Referenced by update().
Here is the caller graph for this function:| ilObjectActivation::getSuggestionEnd | ( | ) |
Get suggestion end.
Definition at line 133 of file class.ilObjectActivation.php.
Referenced by update(), and validateActivation().
Here is the caller graph for this function:| ilObjectActivation::getSuggestionStart | ( | ) |
Get suggestion start.
Definition at line 113 of file class.ilObjectActivation.php.
Referenced by update(), and validateActivation().
Here is the caller graph for this function:| ilObjectActivation::getTimingEnd | ( | ) |
Get timing end.
Definition at line 93 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 798 of file class.ilObjectActivation.php.
References getItems(), and ilUtil\sortArray().
Referenced by ilCourseContentGUI\__renderUserItem(), ilCourseContentGUI\editTimings(), 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 832 of file class.ilObjectActivation.php.
References ilEventItems\_getItemsOfContainer().
Referenced by ilCourseContentGUI\__editAdvancedUserTimings(), ilCourseContentGUI\__editUserTimings(), and ilCourseContentGUI\__renderItem().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjectActivation::getTimingStart | ( | ) |
Get timing start.
Definition at line 73 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 53 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 649 of file class.ilObjectActivation.php.
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 625 of file class.ilObjectActivation.php.
Referenced by ilObjCourseGUI\membersObject().
Here is the caller graph for this function:
|
static |
Preload data to internal cache.
| array | $a_ref_ids |
Definition at line 291 of file class.ilObjectActivation.php.
References $row.
Referenced by ilNewsItem\getAggregatedNewsData(), getItems(), ilContainer\getSubItems(), 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 674 of file class.ilObjectActivation.php.
References $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::setEarliestStart | ( | $a_start | ) |
Set earliest start.
| timestamp | $a_start |
Definition at line 143 of file class.ilObjectActivation.php.
| ilObjectActivation::setLatestEnd | ( | $a_end | ) |
Set latest end.
| timestamp | $a_end |
Definition at line 163 of file class.ilObjectActivation.php.
| ilObjectActivation::setSuggestionEnd | ( | $a_end | ) |
Set suggestion end.
| timestamp | $a_end |
Definition at line 123 of file class.ilObjectActivation.php.
| ilObjectActivation::setSuggestionStart | ( | $a_start | ) |
Set suggestion start.
| timestamp | $a_start |
Definition at line 103 of file class.ilObjectActivation.php.
| ilObjectActivation::setTimingEnd | ( | $a_end | ) |
Set timing end.
| timestamp | $a_end |
Definition at line 83 of file class.ilObjectActivation.php.
| ilObjectActivation::setTimingStart | ( | $a_start | ) |
Set timing start.
| timestamp | $a_start |
Definition at line 63 of file class.ilObjectActivation.php.
| ilObjectActivation::setTimingType | ( | $a_type | ) |
Set timing type.
| int | $a_type |
Definition at line 42 of file class.ilObjectActivation.php.
Referenced by ilObjSurvey\saveToDb(), ilObjTest\saveToDb(), and ilObjCourse\updateSettings().
Here is the caller graph for this function:| ilObjectActivation::toggleChangeable | ( | $a_status | ) |
Set changeable status.
| bool | $a_status |
Definition at line 203 of file class.ilObjectActivation.php.
| ilObjectActivation::toggleVisible | ( | $a_status | ) |
Set visible status.
| bool | $a_status |
Definition at line 183 of file class.ilObjectActivation.php.
| ilObjectActivation::update | ( | $a_ref_id, | |
$a_parent_id = null |
|||
| ) |
Update db entry.
| int | $a_ref_id | |
| int | $a_parent_id |
Definition at line 257 of file class.ilObjectActivation.php.
References $query, enabledChangeable(), enabledVisible(), getEarliestStart(), getLatestEnd(), getSuggestionEnd(), getSuggestionStart(), getTimingEnd(), getTimingStart(), and getTimingType().
Here is the call graph for this function:| ilObjectActivation::validateActivation | ( | ) |
Validate current properties.
Definition at line 223 of file class.ilObjectActivation.php.
References $ilErr, $lng, getSuggestionEnd(), getSuggestionStart(), getTimingEnd(), getTimingStart(), getTimingType(), and TIMINGS_PRESETTING.
Here is the call graph for this function:
|
protected |
Definition at line 22 of file class.ilObjectActivation.php.
Referenced by enabledChangeable().
|
protected |
Definition at line 19 of file class.ilObjectActivation.php.
|
protected |
Definition at line 20 of file class.ilObjectActivation.php.
|
staticprotected |
Definition at line 24 of file class.ilObjectActivation.php.
|
protected |
Definition at line 18 of file class.ilObjectActivation.php.
|
protected |
Definition at line 17 of file class.ilObjectActivation.php.
|
protected |
Definition at line 16 of file class.ilObjectActivation.php.
Referenced by getTimingEnd().
|
protected |
Definition at line 15 of file class.ilObjectActivation.php.
Referenced by getTimingStart().
|
protected |
Definition at line 14 of file class.ilObjectActivation.php.
Referenced by getTimingType().
|
protected |
Definition at line 21 of file class.ilObjectActivation.php.
Referenced by enabledVisible().
| const ilObjectActivation::TIMINGS_ACTIVATION = 0 |
Definition at line 26 of file class.ilObjectActivation.php.
Referenced by ilObjectXMLWriter\__appendTimeTargets(), ilObjCourse\__readSettings(), ilObjPollAccess\_isActivated(), ilObjCourseAccess\_isActivated(), addListGUIActivationProperty(), ilSoapObjectAdministration\addReferences(), ilAccessHandler\doActivationCheck(), ilObjPollGUI\initEditCustomForm(), ilObjectActivationGUI\initFormEdit(), ilObjSurveyGUI\initPropertiesForm(), ilObjSurvey\loadFromDb(), ilObjTest\loadFromDb(), ilObjTestGUI\propertiesObject(), ilObjSurveyGUI\savePropertiesObject(), ilObjTestGUI\savePropertiesObject(), ilObjSurvey\saveToDb(), ilObjTest\saveToDb(), ilObjPollGUI\updateCustom(), ilSoapObjectAdministration\updateReferences(), and ilObjCourse\updateSettings().
| const ilObjectActivation::TIMINGS_DEACTIVATED = 1 |
Definition at line 27 of file class.ilObjectActivation.php.
Referenced by ilObjectXMLWriter\__appendTimeTargets(), ilObjPoll\__construct(), ilSoapObjectAdministration\addReferences(), createDefaultEntry(), ilObjectActivationGUI\getValues(), ilObjPollGUI\initEditCustomForm(), ilObjectActivationGUI\initFormEdit(), ilObjSurveyGUI\initPropertiesForm(), ilObjTestGUI\propertiesObject(), ilObjSurvey\saveToDb(), ilObjTest\saveToDb(), ilSoapObjectAdministration\updateReferences(), ilObjCourse\updateSettings(), and ilCourseContentGUI\updateTimings().
| const ilObjectActivation::TIMINGS_FIXED = 3 |
Definition at line 29 of file class.ilObjectActivation.php.
| const ilObjectActivation::TIMINGS_PRESETTING = 2 |
Definition at line 28 of file class.ilObjectActivation.php.
Referenced by ilObjectXMLWriter\__appendTimeTargets(), ilCourseContentGUI\__loadFromPost(), ilCourseContentGUI\__renderItem(), ilCourseContentGUI\__renderUserItem(), ilTimingCache\_showWarning(), addListGUIActivationProperty(), ilSoapObjectAdministration\addReferences(), ilCourseContentGUI\editTimings(), ilObjectActivationGUI\initFormEdit(), ilCourseContentGUI\showUserTimings(), ilSoapObjectAdministration\updateReferences(), ilCourseContentGUI\updateTimings(), and validateActivation().