ILIAS
Release_4_0_x_branch Revision 61816
|
Public Member Functions | |
ilCourseItems (&$course_obj, $a_parent=0, $user_id=0) | |
cloneDependencies ($a_target_id, $a_copy_id) | |
Clone dependencies. | |
setItemId ($a_item_id) | |
getItemId () | |
getUserId () | |
_hasCollectionTimings ($a_ref_id) | |
_hasTimings ($a_ref_id) | |
check if there is any active timing | |
_hasChangeableTimings ($a_ref_id) | |
setParentId ($a_parent=0) | |
getParentId () | |
setTimingType ($a_type) | |
getTimingType () | |
setTimingStart ($a_start) | |
getTimingStart () | |
setTimingEnd ($a_end) | |
getTimingEnd () | |
setSuggestionStart ($a_start) | |
getSuggestionStart () | |
setSuggestionEnd ($a_end) | |
getSuggestionEnd () | |
setEarliestStart ($a_start) | |
getEarliestStart () | |
setLatestEnd ($a_end) | |
getLatestEnd () | |
toggleVisible ($a_status) | |
enabledVisible () | |
toggleChangeable ($a_status) | |
enabledChangeable () | |
setPosition ($a_pos) | |
getAllItems () | |
getFilteredItems ($a_container_ref_id) | |
Get all items. | |
getItemsByEvent ($a_event_id) | |
getItemsByObjective ($a_objective_id) | |
getItems () | |
getItem ($a_item_id) | |
validateActivation () | |
save () | |
Save. | |
update ($a_item_id) | |
moveUp ($item_id) | |
moveDown ($item_id) | |
deleteAllEntries () | |
__read () | |
__purgeDeleted () | |
__delete ($a_obj_id) | |
__getItemData ($a_item) | |
createDefaultEntry ($a_item) | |
__getLastPosition () | |
__isMovable ($a_ref_id) | |
__switchNodes ($node_a, $node_b) | |
__sort () | |
__splitByActivation () | |
_getItem ($a_item_id) | |
_isActivated ($a_item_id) | |
addAdditionalSubItemInformation (&$a_item) | |
Adds information to object/item array needed to be displayed in repository. |
Static Public Member Functions | |
static | _sort ($a_sort_mode, $a_items) |
sort items | |
static | _readActivationTimes ($a_ref_ids) |
read activation times |
Data Fields | |
$course_obj | |
$ilErr | |
$ilDB | |
$tree | |
$lng | |
$items | |
$parent | |
$timing_type | |
$timing_start | |
$timing_end |
Definition at line 39 of file class.ilCourseItems.php.
ilCourseItems::__delete | ( | $a_obj_id | ) |
Definition at line 609 of file class.ilCourseItems.php.
References $ilDB, $query, $res, and getParentId().
Referenced by __purgeDeleted().
ilCourseItems::__getItemData | ( | $a_item | ) |
Definition at line 622 of file class.ilCourseItems.php.
References $data, $ilBench, $ilDB, $query, $res, $row, ilTimingPlaned\_getPlanedTimings(), ilSessionAppointment\_lookupAppointment(), createDefaultEntry(), DB_FETCHMODE_OBJECT, elseif(), getUserId(), IL_CRS_TIMINGS_ACTIVATION, IL_CRS_TIMINGS_FIXED, IL_CRS_TIMINGS_PRESETTING, and ilDB\query().
Referenced by __read(), getItemsByEvent(), and getItemsByObjective().
ilCourseItems::__getLastPosition | ( | ) |
Definition at line 768 of file class.ilCourseItems.php.
References $ilDB, $query, $res, $row, DB_FETCHMODE_OBJECT, getParentId(), and ilDB\query().
ilCourseItems::__isMovable | ( | $a_ref_id | ) |
Definition at line 785 of file class.ilCourseItems.php.
References ilEventItems\_isAssigned().
ilCourseItems::__purgeDeleted | ( | ) |
Definition at line 590 of file class.ilCourseItems.php.
References $ilDB, $query, $res, $row, $tree, __delete(), DB_FETCHMODE_OBJECT, getParentId(), and ilDB\query().
Referenced by __read().
ilCourseItems::__read | ( | ) |
Definition at line 546 of file class.ilCourseItems.php.
References $ilBench, $test, __getItemData(), __purgeDeleted(), and __sort().
Referenced by moveDown(), moveUp(), setParentId(), and update().
ilCourseItems::__sort | ( | ) |
Definition at line 867 of file class.ilCourseItems.php.
References __splitByActivation(), ilContainer\SORT_ACTIVATION, and ilUtil\sortArray().
Referenced by __read().
ilCourseItems::__splitByActivation | ( | ) |
Definition at line 888 of file class.ilCourseItems.php.
References IL_CRS_TIMINGS_DEACTIVATED.
Referenced by __sort().
ilCourseItems::__switchNodes | ( | $node_a, | |
$node_b | |||
) |
Definition at line 802 of file class.ilCourseItems.php.
References $ilDB, $query, $res, and getParentId().
ilCourseItems::_getItem | ( | $a_item_id | ) |
int | $a_item_id | reference id of object in question |
Definition at line 909 of file class.ilCourseItems.php.
References $data, $ilDB, $query, $res, $row, ilTimingPlaned\_getPlanedTimings(), DB_FETCHMODE_OBJECT, elseif(), IL_CRS_TIMINGS_ACTIVATION, and IL_CRS_TIMINGS_PRESETTING.
Referenced by ilObjectXMLWriter\__appendTimeTargets(), ilTimingCache\_getTimings(), ilObjSessionGUI\infoScreen(), and ilTimingPlaned\validate().
ilCourseItems::_hasChangeableTimings | ( | $a_ref_id | ) |
Definition at line 216 of file class.ilCourseItems.php.
References $ilDB, $query, $res, $tree, and IL_CRS_TIMINGS_PRESETTING.
Referenced by ilCourseContentGUI\__renderUserItem(), ilCourseContentGUI\editUserTimings(), and ilCourseContentGUI\showUserTimings().
ilCourseItems::_hasCollectionTimings | ( | $a_ref_id | ) |
Definition at line 157 of file class.ilCourseItems.php.
References $ilDB, $query, $res, $tree, ilLPCollectionCache\_getItems(), ilLPObjSettings\_lookupMode(), IL_CRS_TIMINGS_PRESETTING, LP_MODE_COLLECTION, and LP_MODE_MANUAL_BY_TUTOR.
Referenced by ilLPListOfProgressGUI\__showContainerList(), ilPDFPresentation\__showItems(), and ilLPListOfObjectsGUI\__showUsersList().
ilCourseItems::_hasTimings | ( | $a_ref_id | ) |
check if there is any active timing
public
int | ref_id |
Definition at line 196 of file class.ilCourseItems.php.
References $ilDB, $query, $res, $tree, and IL_CRS_TIMINGS_PRESETTING.
Referenced by ilObjCourseGUI\membersObject().
ilCourseItems::_isActivated | ( | $a_item_id | ) |
Definition at line 979 of file class.ilCourseItems.php.
References $ilDB, $query, $res, $row, and DB_FETCHMODE_OBJECT.
Referenced by ilRepositoryExplorer\isVisible(), and ilObjectGUI\isVisible().
|
static |
read activation times
public
array | array(int) ref_ids |
Definition at line 1008 of file class.ilCourseItems.php.
References $ilDB, $query, $res, $row, and DB_FETCHMODE_OBJECT.
Referenced by ilAccessHandler\doActivationCheck(), and ilAccessHandler\preloadActivationTimes().
|
static |
sort items
public
@return |
Definition at line 834 of file class.ilCourseItems.php.
References IL_CRS_TIMINGS_DEACTIVATED, ilContainer\SORT_ACTIVATION, and ilUtil\sortArray().
Referenced by ilCourseContentGUI\__showMaterials().
ilCourseItems::addAdditionalSubItemInformation | ( | & | $a_item | ) |
Adds information to object/item array needed to be displayed in repository.
Definition at line 1036 of file class.ilCourseItems.php.
ilCourseItems::cloneDependencies | ( | $a_target_id, | |
$a_copy_id | |||
) |
Clone dependencies.
public
int | target ref_id |
int | copy id |
Definition at line 80 of file class.ilCourseItems.php.
References $ilLog, $query, $res, $row, ilCopyWizardOptions\_getInstance(), DB_FETCHMODE_OBJECT, ilObjectFactory\getInstanceByRefId(), getParentId(), ilCourseItems(), and ilDB\query().
ilCourseItems::createDefaultEntry | ( | $a_item | ) |
Definition at line 729 of file class.ilCourseItems.php.
References $ilDB, $query, $res, and IL_CRS_TIMINGS_DEACTIVATED.
Referenced by __getItemData().
ilCourseItems::deleteAllEntries | ( | ) |
Definition at line 526 of file class.ilCourseItems.php.
References $ilDB, $query, and $res.
ilCourseItems::enabledChangeable | ( | ) |
Definition at line 319 of file class.ilCourseItems.php.
Referenced by save(), and update().
ilCourseItems::enabledVisible | ( | ) |
Definition at line 311 of file class.ilCourseItems.php.
Referenced by save(), and update().
ilCourseItems::getAllItems | ( | ) |
Definition at line 329 of file class.ilCourseItems.php.
ilCourseItems::getEarliestStart | ( | ) |
Definition at line 295 of file class.ilCourseItems.php.
Referenced by save(), and update().
ilCourseItems::getFilteredItems | ( | $a_container_ref_id | ) |
Get all items.
(No events, no side blocks)
Definition at line 337 of file class.ilCourseItems.php.
References ilEventItems\_getItemsOfContainer().
Referenced by ilCourseContentGUI\__editUserTimings().
ilCourseItems::getItem | ( | $a_item_id | ) |
Definition at line 408 of file class.ilCourseItems.php.
Referenced by ilCourseContentGUI\updateTimings().
ilCourseItems::getItemId | ( | ) |
Definition at line 146 of file class.ilCourseItems.php.
Referenced by save().
ilCourseItems::getItems | ( | ) |
Definition at line 390 of file class.ilCourseItems.php.
Referenced by ilCourseContentGUI\__editAdvancedUserTimings(), and ilCourseContentGUI\showUserTimings().
ilCourseItems::getItemsByEvent | ( | $a_event_id | ) |
Definition at line 355 of file class.ilCourseItems.php.
References $items, and __getItemData().
ilCourseItems::getItemsByObjective | ( | $a_objective_id | ) |
Definition at line 373 of file class.ilCourseItems.php.
References $items, $ref_id, __getItemData(), and ilCourseObjectiveMaterials\_getAssignedMaterials().
ilCourseItems::getLatestEnd | ( | ) |
Definition at line 303 of file class.ilCourseItems.php.
Referenced by save(), and update().
ilCourseItems::getParentId | ( | ) |
Definition at line 245 of file class.ilCourseItems.php.
References $parent.
Referenced by __delete(), __getLastPosition(), __purgeDeleted(), __switchNodes(), cloneDependencies(), save(), and update().
ilCourseItems::getSuggestionEnd | ( | ) |
Definition at line 287 of file class.ilCourseItems.php.
Referenced by save(), update(), and validateActivation().
ilCourseItems::getSuggestionStart | ( | ) |
Definition at line 279 of file class.ilCourseItems.php.
Referenced by save(), update(), and validateActivation().
ilCourseItems::getTimingEnd | ( | ) |
Definition at line 271 of file class.ilCourseItems.php.
References $timing_end.
Referenced by save(), update(), and validateActivation().
ilCourseItems::getTimingStart | ( | ) |
Definition at line 263 of file class.ilCourseItems.php.
References $timing_start.
Referenced by save(), update(), and validateActivation().
ilCourseItems::getTimingType | ( | ) |
Definition at line 254 of file class.ilCourseItems.php.
References $timing_type.
Referenced by save(), update(), and validateActivation().
ilCourseItems::getUserId | ( | ) |
Definition at line 150 of file class.ilCourseItems.php.
Referenced by __getItemData().
ilCourseItems::ilCourseItems | ( | & | $course_obj, |
$a_parent = 0 , |
|||
$user_id = 0 |
|||
) |
Definition at line 55 of file class.ilCourseItems.php.
References $course_obj, $ilDB, $ilErr, $lng, $tree, and setParentId().
Referenced by cloneDependencies().
ilCourseItems::moveDown | ( | $item_id | ) |
Definition at line 519 of file class.ilCourseItems.php.
References __read().
ilCourseItems::moveUp | ( | $item_id | ) |
Definition at line 513 of file class.ilCourseItems.php.
References __read().
ilCourseItems::save | ( | ) |
Save.
public
Definition at line 466 of file class.ilCourseItems.php.
References $ilDB, $ilLog, $query, $res, enabledChangeable(), enabledVisible(), getEarliestStart(), getItemId(), getLatestEnd(), getParentId(), getSuggestionEnd(), getSuggestionStart(), getTimingEnd(), getTimingStart(), and getTimingType().
ilCourseItems::setEarliestStart | ( | $a_start | ) |
Definition at line 291 of file class.ilCourseItems.php.
ilCourseItems::setItemId | ( | $a_item_id | ) |
Definition at line 141 of file class.ilCourseItems.php.
ilCourseItems::setLatestEnd | ( | $a_end | ) |
Definition at line 299 of file class.ilCourseItems.php.
ilCourseItems::setParentId | ( | $a_parent = 0 | ) |
Definition at line 237 of file class.ilCourseItems.php.
References __read().
Referenced by ilCourseItems().
ilCourseItems::setPosition | ( | $a_pos | ) |
Definition at line 324 of file class.ilCourseItems.php.
ilCourseItems::setSuggestionEnd | ( | $a_end | ) |
Definition at line 283 of file class.ilCourseItems.php.
ilCourseItems::setSuggestionStart | ( | $a_start | ) |
Definition at line 275 of file class.ilCourseItems.php.
ilCourseItems::setTimingEnd | ( | $a_end | ) |
Definition at line 267 of file class.ilCourseItems.php.
ilCourseItems::setTimingStart | ( | $a_start | ) |
Definition at line 259 of file class.ilCourseItems.php.
ilCourseItems::setTimingType | ( | $a_type | ) |
Definition at line 250 of file class.ilCourseItems.php.
ilCourseItems::toggleChangeable | ( | $a_status | ) |
Definition at line 315 of file class.ilCourseItems.php.
ilCourseItems::toggleVisible | ( | $a_status | ) |
Definition at line 307 of file class.ilCourseItems.php.
ilCourseItems::update | ( | $a_item_id | ) |
Definition at line 490 of file class.ilCourseItems.php.
References $ilDB, $query, $res, __read(), enabledChangeable(), enabledVisible(), getEarliestStart(), getLatestEnd(), getParentId(), getSuggestionEnd(), getSuggestionStart(), getTimingEnd(), getTimingStart(), and getTimingType().
ilCourseItems::validateActivation | ( | ) |
Definition at line 420 of file class.ilCourseItems.php.
References $ilErr, getSuggestionEnd(), getSuggestionStart(), getTimingEnd(), getTimingStart(), getTimingType(), IL_CRS_TIMINGS_ACTIVATION, and IL_CRS_TIMINGS_PRESETTING.
ilCourseItems::$course_obj |
Definition at line 41 of file class.ilCourseItems.php.
Referenced by ilCourseItems().
ilCourseItems::$ilDB |
Definition at line 43 of file class.ilCourseItems.php.
Referenced by __delete(), __getItemData(), __getLastPosition(), __purgeDeleted(), __switchNodes(), _getItem(), _hasChangeableTimings(), _hasCollectionTimings(), _hasTimings(), _isActivated(), _readActivationTimes(), createDefaultEntry(), deleteAllEntries(), ilCourseItems(), save(), and update().
ilCourseItems::$ilErr |
Definition at line 42 of file class.ilCourseItems.php.
Referenced by ilCourseItems(), and validateActivation().
ilCourseItems::$items |
Definition at line 47 of file class.ilCourseItems.php.
Referenced by getItemsByEvent(), and getItemsByObjective().
ilCourseItems::$lng |
Definition at line 45 of file class.ilCourseItems.php.
Referenced by ilCourseItems().
ilCourseItems::$parent |
Definition at line 48 of file class.ilCourseItems.php.
Referenced by getParentId().
ilCourseItems::$timing_end |
Definition at line 52 of file class.ilCourseItems.php.
Referenced by getTimingEnd().
ilCourseItems::$timing_start |
Definition at line 51 of file class.ilCourseItems.php.
Referenced by getTimingStart().
ilCourseItems::$timing_type |
Definition at line 50 of file class.ilCourseItems.php.
Referenced by getTimingType().
ilCourseItems::$tree |
Definition at line 44 of file class.ilCourseItems.php.
Referenced by __purgeDeleted(), _hasChangeableTimings(), _hasCollectionTimings(), _hasTimings(), and ilCourseItems().