ILIAS
Release_5_0_x_branch Revision 61816
|
Class ilObjectActivation. More...
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().
|
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().
|
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().
|
staticprotected |
Create db entry with default values.
int | $a_ref_id |
Definition at line 460 of file class.ilObjectActivation.php.
References $ilDB, $query, ilDB\LOCK_WRITE, and TIMINGS_DEACTIVATED.
Referenced by getItem().
|
static |
Delete all db entries for ref id.
int | $a_ref_id |
Definition at line 531 of file class.ilObjectActivation.php.
Referenced by ilObject\delete(), and ilObjPoll\doDelete().
ilObjectActivation::enabledChangeable | ( | ) |
Get changeable status.
Definition at line 213 of file class.ilObjectActivation.php.
References $changeable.
Referenced by update().
ilObjectActivation::enabledVisible | ( | ) |
Get visible status.
Definition at line 193 of file class.ilObjectActivation.php.
References $visible.
Referenced by update().
ilObjectActivation::getEarliestStart | ( | ) |
Get earliest start.
Definition at line 153 of file class.ilObjectActivation.php.
Referenced by update().
|
static |
Get item data.
int | $a_ref_id |
Definition at line 310 of file class.ilObjectActivation.php.
References $ilDB, $row, and createDefaultEntry().
Referenced by ilObjectXMLWriter\__appendTimeTargets(), ilObjCourse\__readSettings(), ilTimingCache\_getTimings(), ilObjPollAccess\_isActivated(), ilObjCourseAccess\_isActivated(), addAdditionalSubItemInformation(), ilObjSurvey\checkReminder(), ilAccessHandler\doActivationCheck(), ilObjPortfolioTemplate\doRead(), ilObjPoll\doRead(), ilObjectActivationGUI\getValues(), ilObjSurvey\loadFromDb(), ilObjTest\loadFromDb(), 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 755 of file class.ilObjectActivation.php.
References addAdditionalSubItemInformation(), and preloadData().
Referenced by cloneDependencies(), ilCourseStart\getPossibleStarters(), ilContainerStartObjects\getPossibleStarters(), getTimingsAdministrationItems(), and ilCourseContentGUI\setColumnSettings().
|
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(), ilContainerGUI\redrawListItemObject(), and ilContainerContentGUI\renderItem().
|
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(), and ilRepositoryExplorerGUI\sortChilds().
|
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().
ilObjectActivation::getLatestEnd | ( | ) |
Get latest end.
Definition at line 173 of file class.ilObjectActivation.php.
Referenced by update().
ilObjectActivation::getSuggestionEnd | ( | ) |
Get suggestion end.
Definition at line 133 of file class.ilObjectActivation.php.
Referenced by update(), and validateActivation().
ilObjectActivation::getSuggestionStart | ( | ) |
Get suggestion start.
Definition at line 113 of file class.ilObjectActivation.php.
Referenced by update(), and validateActivation().
ilObjectActivation::getTimingEnd | ( | ) |
Get timing end.
Definition at line 93 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 798 of file class.ilObjectActivation.php.
References getItems(), 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 832 of file class.ilObjectActivation.php.
References ilEventItems\_getItemsOfContainer().
Referenced by ilCourseContentGUI\__editAdvancedUserTimings(), ilCourseContentGUI\__editUserTimings(), and ilCourseContentGUI\__renderItem().
ilObjectActivation::getTimingStart | ( | ) |
Get timing start.
Definition at line 73 of file class.ilObjectActivation.php.
References $timing_start.
Referenced by update(), and validateActivation().
ilObjectActivation::getTimingType | ( | ) |
get timing type
Definition at line 53 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 649 of file class.ilObjectActivation.php.
References $ilDB, $query, and $res.
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 625 of file class.ilObjectActivation.php.
References $ilDB, $query, and $res.
Referenced by ilObjCourseGUI\membersObject().
|
static |
Preload data to internal cache.
array | $a_ref_ids |
Definition at line 291 of file class.ilObjectActivation.php.
Referenced by ilNewsItem\getAggregatedNewsData(), getItems(), ilObjectListGUIPreloader\preload(), and processListItems().
|
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().
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(), ilObjPortfolioTemplate\updateActivation(), and ilObjCourse\updateSettings().
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 $ilDB, $query, enabledChangeable(), enabledVisible(), getEarliestStart(), getLatestEnd(), getSuggestionEnd(), getSuggestionStart(), getTimingEnd(), getTimingStart(), and getTimingType().
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.
|
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(), ilObjSurvey\checkReminder(), ilAccessHandler\doActivationCheck(), ilObjPortfolioTemplate\doRead(), ilObjPollGUI\getEditFormCustomValues(), ilObjectActivationGUI\initFormEdit(), ilObjSurvey\loadFromDb(), ilObjTest\loadFromDb(), ilObjSurvey\saveToDb(), ilObjTest\saveToDb(), ilObjPortfolioTemplate\updateActivation(), 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(), 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 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().