ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
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... | |
setSuggestionEnd ($a_end) | |
Set suggestion end. More... | |
getSuggestionEnd () | |
Get suggestion end. More... | |
setEarliestStart ($a_start) | |
Set earliest start. More... | |
getEarliestStart () | |
Get earliest start. More... | |
setLatestEnd ($a_end) | |
Set latest end. More... | |
getLatestEnd () | |
Get latest end. 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... | |
update ($a_ref_id, $a_parent_id=null) | |
Update db entry. More... | |
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 | 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 | |
$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 | ( | ) |
|
static |
Parse item data for list entries.
array | &$a_item |
Definition at line 353 of file class.ilObjectActivation.php.
References $DIC, $ilUser, $info, ilTimingPlaned\_getPlanedTimings(), ilSessionAppointment\_lookupAppointment(), ilObject\_lookupObjId(), and ilObject\_lookupType().
Referenced by ilObjRootFolder\addAdditionalSubItemInformation(), ilObjCategory\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 415 of file class.ilObjectActivation.php.
References $DIC, $end, $lng, 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 567 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 468 of file class.ilObjectActivation.php.
References $DIC, $ilDB, $query, array, ilDBInterface\manipulate(), ilDBInterface\numRows(), ilDBInterface\query(), ilDBInterface\quote(), and time.
|
static |
Delete all db entries for ref id.
int | $a_ref_id |
Definition at line 539 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 232 of file class.ilObjectActivation.php.
References $changeable.
Referenced by update().
ilObjectActivation::enabledVisible | ( | ) |
Get visible status.
Definition at line 212 of file class.ilObjectActivation.php.
References $visible.
Referenced by update().
ilObjectActivation::getEarliestStart | ( | ) |
Get earliest start.
Definition at line 172 of file class.ilObjectActivation.php.
References $earliest_start.
Referenced by update().
|
static |
Get item data.
int | $a_ref_id |
Definition at line 324 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\doActivationCheck(), ilObjPortfolioTemplate\doRead(), ilObjPoll\doRead(), ilObjectActivationGUI\getValues(), ilObjChatroomAccess\isActivated(), ilObjSurvey\loadFromDb(), ilObjTest\loadFromDb(), 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 762 of file class.ilObjectActivation.php.
Referenced by ilCourseStart\getPossibleStarters(), ilContainerStartObjects\getPossibleStarters(), and ilCourseContentGUI\setColumnSettings().
|
static |
Get session material / event items.
int | $a_event_id | (object id) |
Definition at line 721 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 734 of file class.ilObjectActivation.php.
Referenced by ilContainerContentGUI\renderItemGroup(), and ilRepositoryExplorerGUI\sortChilds().
|
static |
Get objective items.
int | $a_objective_id |
Definition at line 748 of file class.ilObjectActivation.php.
References ilCourseObjectiveMaterials\_getAssignedMaterials().
Referenced by ilContainerObjectiveGUI\renderObjective().
ilObjectActivation::getLatestEnd | ( | ) |
Get latest end.
Definition at line 192 of file class.ilObjectActivation.php.
References $latest_end.
Referenced by update().
ilObjectActivation::getSuggestionEnd | ( | ) |
Get suggestion end.
Definition at line 152 of file class.ilObjectActivation.php.
References $suggestion_end.
Referenced by update(), and validateActivation().
ilObjectActivation::getSuggestionStart | ( | ) |
Get suggestion start.
Definition at line 132 of file class.ilObjectActivation.php.
References $suggestion_start.
Referenced by update(), and validateActivation().
ilObjectActivation::getTimingEnd | ( | ) |
Get timing end.
Definition at line 112 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 800 of file class.ilObjectActivation.php.
References array, and ilUtil\sortArray().
Referenced by ilCourseContentGUI\__renderUserItem(), ilCourseContentGUI\editTimings(), 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 829 of file class.ilObjectActivation.php.
References $DIC, ilEventItems\_getItemsOfContainer(), and array.
Referenced by ilCourseContentGUI\__editAdvancedUserTimings(), ilCourseContentGUI\__editUserTimings(), and ilCourseContentGUI\__renderItem().
ilObjectActivation::getTimingStart | ( | ) |
Get timing start.
Definition at line 92 of file class.ilObjectActivation.php.
References $timing_start.
Referenced by update(), and validateActivation().
ilObjectActivation::getTimingType | ( | ) |
get timing type
Definition at line 72 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 657 of file class.ilObjectActivation.php.
References $DIC, $ilDB, $query, $res, and array.
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 631 of file class.ilObjectActivation.php.
References $DIC, $ilDB, $query, $res, and array.
Referenced by ilCourseMembershipGUI\initParticipantTableGUI().
|
static |
Preload data to internal cache.
array | $a_ref_ids |
Definition at line 304 of file class.ilObjectActivation.php.
References $DIC, $ilDB, and $row.
Referenced by ilNewsItem\getAggregatedNewsData(), and ilObjectListGUIPreloader\preload().
|
staticprotected |
Validate ref ids and add list data.
array | $a_ref_ids |
Definition at line 684 of file class.ilObjectActivation.php.
References $DIC, $res, and array.
ilObjectActivation::setEarliestStart | ( | $a_start | ) |
Set earliest start.
timestamp | $a_start |
Definition at line 162 of file class.ilObjectActivation.php.
ilObjectActivation::setLatestEnd | ( | $a_end | ) |
Set latest end.
timestamp | $a_end |
Definition at line 182 of file class.ilObjectActivation.php.
ilObjectActivation::setSuggestionEnd | ( | $a_end | ) |
Set suggestion end.
timestamp | $a_end |
Definition at line 142 of file class.ilObjectActivation.php.
ilObjectActivation::setSuggestionStart | ( | $a_start | ) |
Set suggestion start.
timestamp | $a_start |
Definition at line 122 of file class.ilObjectActivation.php.
ilObjectActivation::setTimingEnd | ( | $a_end | ) |
Set timing end.
timestamp | $a_end |
Definition at line 102 of file class.ilObjectActivation.php.
ilObjectActivation::setTimingStart | ( | $a_start | ) |
Set timing start.
timestamp | $a_start |
Definition at line 82 of file class.ilObjectActivation.php.
ilObjectActivation::setTimingType | ( | $a_type | ) |
Set timing type.
int | $a_type |
Definition at line 61 of file class.ilObjectActivation.php.
References $a_type.
Referenced by ilObjSurvey\saveToDb(), ilObjTest\saveToDb(), ilObjPortfolioTemplate\updateActivation(), and ilObjCourse\updateSettings().
ilObjectActivation::toggleChangeable | ( | $a_status | ) |
Set changeable status.
bool | $a_status |
Definition at line 222 of file class.ilObjectActivation.php.
ilObjectActivation::toggleVisible | ( | $a_status | ) |
Set visible status.
bool | $a_status |
Definition at line 202 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 271 of file class.ilObjectActivation.php.
References $db, $ilDB, $query, enabledChangeable(), enabledVisible(), getEarliestStart(), getLatestEnd(), getSuggestionEnd(), getSuggestionStart(), getTimingEnd(), getTimingStart(), and getTimingType().
ilObjectActivation::validateActivation | ( | ) |
Validate current properties.
Definition at line 242 of file class.ilObjectActivation.php.
References $error, $ilErr, $lng, getSuggestionEnd(), getSuggestionStart(), getTimingEnd(), getTimingStart(), and getTimingType().
|
protected |
Definition at line 37 of file class.ilObjectActivation.php.
Referenced by enabledChangeable().
|
protected |
Definition at line 27 of file class.ilObjectActivation.php.
Referenced by update().
|
protected |
Definition at line 34 of file class.ilObjectActivation.php.
Referenced by getEarliestStart().
|
protected |
Definition at line 17 of file class.ilObjectActivation.php.
Referenced by validateActivation().
|
protected |
Definition at line 35 of file class.ilObjectActivation.php.
Referenced by getLatestEnd().
|
protected |
Definition at line 22 of file class.ilObjectActivation.php.
Referenced by addListGUIActivationProperty(), and validateActivation().
|
staticprotected |
Definition at line 39 of file class.ilObjectActivation.php.
|
protected |
Definition at line 33 of file class.ilObjectActivation.php.
Referenced by getSuggestionEnd().
|
protected |
Definition at line 32 of file class.ilObjectActivation.php.
Referenced by getSuggestionStart().
|
protected |
Definition at line 31 of file class.ilObjectActivation.php.
Referenced by getTimingEnd().
|
protected |
Definition at line 30 of file class.ilObjectActivation.php.
Referenced by getTimingStart().
|
protected |
Definition at line 29 of file class.ilObjectActivation.php.
Referenced by getTimingType().
|
protected |
Definition at line 36 of file class.ilObjectActivation.php.
Referenced by enabledVisible().
const ilObjectActivation::TIMINGS_ACTIVATION = 0 |
Definition at line 41 of file class.ilObjectActivation.php.
Referenced by ilObjectXMLWriter\__appendTimeTargets(), ilChatroomSettingsGUI\__construct(), ilObjCourse\__readSettings(), ilObjPollAccess\_isActivated(), ilObjCourseAccess\_isActivated(), addListGUIActivationProperty(), ilSoapObjectAdministration\addReferences(), ilObjSurvey\checkReminder(), ilAccess\doActivationCheck(), ilObjPortfolioTemplate\doRead(), ilObjPoll\doRead(), ilObjectActivationGUI\initFormEdit(), ilObjChatroomAccess\isActivated(), ilObjSurvey\loadFromDb(), ilObjTest\loadFromDb(), ilObjChatroom\read(), ilObjSurvey\saveToDb(), ilObjTest\saveToDb(), ilObjPortfolioTemplate\updateActivation(), ilObjPollGUI\updateCustom(), ilSoapObjectAdministration\updateReferences(), and ilObjCourse\updateSettings().
const ilObjectActivation::TIMINGS_DEACTIVATED = 1 |
Definition at line 42 of file class.ilObjectActivation.php.
Referenced by ilObjectXMLWriter\__appendTimeTargets(), ilChatroomSettingsGUI\__construct(), ilObjChatroom\__construct(), ilObjPoll\__construct(), ilSoapObjectAdministration\addReferences(), ilObjectActivationGUI\getValues(), ilObjectActivationGUI\initFormEdit(), ilObjSurvey\saveToDb(), ilObjTest\saveToDb(), ilObjPortfolioTemplate\updateActivation(), ilObjPollGUI\updateCustom(), ilSoapObjectAdministration\updateReferences(), ilObjCourse\updateSettings(), and ilCourseContentGUI\updateTimings().
const ilObjectActivation::TIMINGS_FIXED = 3 |
Definition at line 44 of file class.ilObjectActivation.php.
const ilObjectActivation::TIMINGS_PRESETTING = 2 |
Definition at line 43 of file class.ilObjectActivation.php.
Referenced by ilObjectXMLWriter\__appendTimeTargets(), ilCourseContentGUI\__loadFromPost(), ilCourseContentGUI\__renderItem(), ilCourseContentGUI\__renderUserItem(), ilTimingCache\_showWarning(), addListGUIActivationProperty(), ilSoapObjectAdministration\addReferences(), ilCourseContentGUI\editTimings(), ilObjectActivationGUI\initFormEdit(), ilTimingCache\readObjectInformation(), ilCourseContentGUI\showUserTimings(), ilSoapObjectAdministration\updateReferences(), and ilCourseContentGUI\updateTimings().