ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Class ilObjectActivation. More...
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 | ( | ) |
|
static |
Parse item data for list entries.
array | &$a_item |
Definition at line 383 of file class.ilObjectActivation.php.
References $DIC, $ilUser, $info, ilSessionAppointment\_lookupAppointment(), ilObject\_lookupObjId(), ilObject\_lookupType(), ilTimingUser\getStart(), and IL_CAL_UNIX.
Referenced by ilObjCategory\addAdditionalSubItemInformation(), ilObjRootFolder\addAdditionalSubItemInformation(), ilObjFolder\addAdditionalSubItemInformation(), ilObjGroup\addAdditionalSubItemInformation(), and ilObjCourse\addAdditionalSubItemInformation().
|
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, $end, $lng, $start, ilObjectListGUI\addCustomProperty(), ilDatePresentation\formatPeriod(), IL_CAL_UNIX, TIMINGS_ACTIVATION, and TIMINGS_PRESETTING.
Referenced by ilSearchResultTableGUI\fillRow(), ilObjSessionGUI\modifyItemGUI(), ilContainerContentGUI\renderItem(), and ilPDSelectedItemsBlockGUI\setFooterLinks().
|
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(), and ilObjectFactory\getInstanceByRefId().
Referenced by ilObjFolder\cloneDependencies(), ilObjGroup\cloneDependencies(), and ilObjCourse\cloneDependencies().
|
staticprotected |
Create db entry with default values.
int | $a_ref_id |
Definition at line 500 of file class.ilObjectActivation.php.
References $DIC, $ilDB, $query, $tree, ilDBInterface\manipulate(), ilDBInterface\numRows(), ilDBInterface\query(), and ilDBInterface\quote().
|
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 ilObject\countReferences(), ilObjChatroom\delete(), and ilObjPoll\doDelete().
ilObjectActivation::enabledChangeable | ( | ) |
Get changeable status.
Definition at line 247 of file class.ilObjectActivation.php.
References $changeable.
Referenced by update().
ilObjectActivation::enabledVisible | ( | ) |
Get visible status.
Definition at line 227 of file class.ilObjectActivation.php.
References $visible.
Referenced by update().
ilObjectActivation::getEaliestStartRelative | ( | ) |
Definition at line 161 of file class.ilObjectActivation.php.
ilObjectActivation::getEarliestStart | ( | ) |
|
static |
Get item data.
int | $a_ref_id |
Definition at line 354 of file class.ilObjectActivation.php.
References $DIC, $ilDB, and $row.
Referenced by ilObjectXMLWriter\__appendTimeTargets(), ilObjCourse\__readSettings(), ilTimingCache\_getTimings(), ilObjPollAccess\_isActivated(), ilObjCourseAccess\_isActivated(), ilObjSurvey\checkReminder(), ilAccess\doPathCheck(), ilObjPortfolioTemplate\doRead(), ilObjPoll\doRead(), ilTimingsUser\handleNewMembership(), ilObjChatroomAccess\isActivated(), ilObjSurvey\loadFromDb(), ilObjTest\loadFromDb(), ilCalendarScheduleFilterTimings\modifyEvent(), ilObjChatroom\read(), ilTimingCache\readObjectInformation(), ilObjSurvey\saveToDb(), ilObjTest\saveToDb(), ilObjPortfolioTemplate\updateActivation(), ilSoapObjectAdministration\updateReferences(), ilObjCourse\updateSettings(), ilCourseContentGUI\updateTimings(), ilTimingPlaned\validate(), and ilContainerXmlWriter\writeCourseItemInformation().
|
static |
Get sub item data.
int | $a_parent_id | |
bool | $a_with_list_data |
Definition at line 789 of file class.ilObjectActivation.php.
Referenced by ilCourseStart\getPossibleStarters(), ilContainerStartObjects\getPossibleStarters(), ilCourseContentGUI\managePersonalTimings(), and ilCourseContentGUI\setColumnSettings().
|
static |
Get session material / event items.
int | $a_event_id | (object id) |
Definition at line 748 of file class.ilObjectActivation.php.
Referenced by ilAppointmentSessionFileHandler\getFiles(), ilObjSessionGUI\infoScreen(), ilContainerGUI\redrawListItemObject(), and ilContainerContentGUI\renderItem().
|
static |
Get materials of item group.
int | $a_item_group_id | (object id) |
Definition at line 761 of file class.ilObjectActivation.php.
Referenced by ilContainerContentGUI\renderItemGroup(), and ilRepositoryExplorerGUI\sortChilds().
|
static |
Get objective items.
int | $a_objective_id |
Definition at line 775 of file class.ilObjectActivation.php.
References ilCourseObjectiveMaterials\_getAssignedMaterials().
Referenced by ilContainerObjectiveGUI\renderObjective().
ilObjectActivation::getSuggestionEnd | ( | ) |
Get suggestion end.
Definition at line 186 of file class.ilObjectActivation.php.
References $suggestion_end.
Referenced by update(), and validateActivation().
ilObjectActivation::getSuggestionEndRelative | ( | ) |
Definition at line 151 of file class.ilObjectActivation.php.
References $suggestion_end_rel.
Referenced by update(), and validateRelativePlaning().
ilObjectActivation::getSuggestionStart | ( | ) |
Get suggestion start.
Definition at line 136 of file class.ilObjectActivation.php.
References $suggestion_start.
Referenced by update(), and validateActivation().
ilObjectActivation::getSuggestionStartRelative | ( | ) |
Definition at line 141 of file class.ilObjectActivation.php.
References $suggestion_start_rel.
Referenced by update(), and validateRelativePlaning().
ilObjectActivation::getTimingEnd | ( | ) |
Get timing end.
Definition at line 116 of file class.ilObjectActivation.php.
References $timing_end.
Referenced by update(), and validateActivation().
|
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 ilUtil\sortArray().
Referenced by ilCourseContentGUI\__renderUserItem(), ilCourseContentGUI\editTimings(), ilCourseContentGUI\manageTimings(), and ilCourseContentGUI\showUserTimings().
|
static |
Get (sub) item data for timings view (no session material, no side blocks)
int | $a_container_ref_id |
Definition at line 855 of file class.ilObjectActivation.php.
References $DIC, and ilEventItems\_getItemsOfContainer().
Referenced by ilCourseContentGUI\__editAdvancedUserTimings(), ilCourseContentGUI\__editUserTimings(), ilCourseContentGUI\__renderItem(), ilCalendarScheduleFilterTimings\addCustomEvents(), and ilObjCourse\prepareAppointments().
ilObjectActivation::getTimingStart | ( | ) |
Get timing start.
Definition at line 96 of file class.ilObjectActivation.php.
References $timing_start.
Referenced by update(), and validateActivation().
ilObjectActivation::getTimingType | ( | ) |
get timing type
Definition at line 76 of file class.ilObjectActivation.php.
References $timing_type.
Referenced by update(), and validateActivation().
|
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, $res, and $tree.
Referenced by ilCourseContentGUI\__renderUserItem(), ilCourseContentGUI\editUserTimings(), and ilCourseContentGUI\showUserTimings().
|
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, $res, and $tree.
Referenced by ilCourseMembershipGUI\initParticipantTableGUI().
|
static |
Preload data to internal cache.
array | $a_ref_ids |
Definition at line 334 of file class.ilObjectActivation.php.
References $DIC, $ilDB, and $row.
Referenced by ilNewsItem\getAggregatedNewsData(), ilTimingsUser\init(), and ilObjectListGUIPreloader\preload().
|
staticprotected |
Validate ref ids and add list data.
array | $a_ref_ids |
Definition at line 711 of file class.ilObjectActivation.php.
References $DIC, $res, and $tree.
ilObjectActivation::read | ( | $a_ref_id, | |
$a_parent_id = 0 |
|||
) |
$a_ref_id | ||
int | $a_parent_id |
ilDatabaseException |
Definition at line 880 of file class.ilObjectActivation.php.
References $DIC, $ilDB, $query, $res, $row, ilDBConstants\FETCHMODE_OBJECT, setSuggestionEnd(), setSuggestionEndRelative(), setSuggestionStart(), setSuggestionStartRelative(), setTimingEnd(), setTimingStart(), setTimingType(), toggleChangeable(), and toggleVisible().
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().
ilObjectActivation::setSuggestionEndRelative | ( | $a_end | ) |
Definition at line 156 of file class.ilObjectActivation.php.
Referenced by read().
ilObjectActivation::setSuggestionStart | ( | $a_start | ) |
Set suggestion start.
timestamp | $a_start |
Definition at line 126 of file class.ilObjectActivation.php.
Referenced by read().
ilObjectActivation::setSuggestionStartRelative | ( | $a_start | ) |
Definition at line 146 of file class.ilObjectActivation.php.
Referenced by read().
ilObjectActivation::setTimingEnd | ( | $a_end | ) |
Set timing end.
timestamp | $a_end |
Definition at line 106 of file class.ilObjectActivation.php.
Referenced by read().
ilObjectActivation::setTimingStart | ( | $a_start | ) |
Set timing start.
timestamp | $a_start |
Definition at line 86 of file class.ilObjectActivation.php.
Referenced by read().
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(), ilObjSurvey\saveToDb(), ilObjTest\saveToDb(), ilObjPortfolioTemplate\updateActivation(), and ilObjCourse\updateSettings().
ilObjectActivation::toggleChangeable | ( | $a_status | ) |
Set changeable status.
bool | $a_status |
Definition at line 237 of file class.ilObjectActivation.php.
Referenced by read().
ilObjectActivation::toggleVisible | ( | $a_status | ) |
Set visible status.
bool | $a_status |
Definition at line 217 of file class.ilObjectActivation.php.
Referenced by read().
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().
ilObjectActivation::validateActivation | ( | ) |
Validate current properties.
Definition at line 257 of file class.ilObjectActivation.php.
References $error, $ilErr, $lng, getSuggestionEnd(), getSuggestionStart(), getTimingEnd(), getTimingStart(), and getTimingType().
ilObjectActivation::validateRelativePlaning | ( | ) |
Definition at line 283 of file class.ilObjectActivation.php.
References $errors, getSuggestionEndRelative(), and getSuggestionStartRelative().
|
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.
const ilObjectActivation::TIMINGS_ACTIVATION = 0 |
Definition at line 45 of file class.ilObjectActivation.php.
Referenced by ilObjectXMLWriter\__appendTimeTargets(), ilObjCourse\__readSettings(), ilObjPollAccess\_isActivated(), ilObjCourseAccess\_isActivated(), addListGUIActivationProperty(), ilSoapObjectAdministration\addReferences(), ilObjSurvey\checkReminder(), ilAccess\doPathCheck(), ilObjPortfolioTemplate\doRead(), ilObjPoll\doRead(), ilObjectActivationGUI\initFormEdit(), ilObjChatroomAccess\isActivated(), ilObjSurvey\loadFromDb(), ilObjTest\loadFromDb(), ilObjChatroom\read(), ilChatroomSettingsGUI\saveGeneral(), ilObjSurvey\saveToDb(), ilObjTest\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(), ilObjSurvey\saveToDb(), ilObjTest\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(), ilTimingsPersonalTableGUI\fillRow(), ilTimingsManageTableGUI\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().