ILIAS
Release_4_1_x_branch Revision 61804
|
Public Member Functions | |
ilCourseItems ($a_course_ref_id, $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 () | |
_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 | _getItem ($a_item_id) |
static | _readActivationTimes ($a_ref_ids) |
read activation times |
Data Fields | |
$ilErr | |
$ilDB | |
$tree | |
$lng | |
$items | |
$parent | |
$timing_type | |
$timing_start | |
$timing_end |
Private Attributes | |
$course_ref_id |
Definition at line 39 of file class.ilCourseItems.php.
ilCourseItems::__delete | ( | $a_obj_id | ) |
Definition at line 617 of file class.ilCourseItems.php.
References $ilDB, $query, $res, and getParentId().
Referenced by __purgeDeleted().
ilCourseItems::__getItemData | ( | $a_item | ) |
Definition at line 630 of file class.ilCourseItems.php.
References $data, $ilBench, $ilDB, $query, $res, $row, ilTimingPlaned\_getPlanedTimings(), ilSessionAppointment\_lookupAppointment(), createDefaultEntry(), DB_FETCHMODE_OBJECT, 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 776 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 793 of file class.ilCourseItems.php.
References ilEventItems\_isAssigned().
ilCourseItems::__purgeDeleted | ( | ) |
Definition at line 598 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 554 of file class.ilCourseItems.php.
References $ilBench, $test, __getItemData(), __purgeDeleted(), and __sort().
Referenced by moveDown(), moveUp(), setParentId(), and update().
ilCourseItems::__sort | ( | ) |
Definition at line 875 of file class.ilCourseItems.php.
References __splitByActivation(), ilObject\_lookupObjId(), ilContainerSortingSettings\_lookupSortMode(), ilContainer\SORT_ACTIVATION, and ilUtil\sortArray().
Referenced by __read().
ilCourseItems::__splitByActivation | ( | ) |
Definition at line 898 of file class.ilCourseItems.php.
References IL_CRS_TIMINGS_DEACTIVATED.
Referenced by __sort().
ilCourseItems::__switchNodes | ( | $node_a, | |
$node_b | |||
) |
Definition at line 810 of file class.ilCourseItems.php.
References $ilDB, $query, $res, and getParentId().
|
static |
int | $a_item_id | reference id of object in question |
Definition at line 919 of file class.ilCourseItems.php.
References $data, $ilDB, $query, $res, $row, ilTimingPlaned\_getPlanedTimings(), DB_FETCHMODE_OBJECT, IL_CRS_TIMINGS_ACTIVATION, and IL_CRS_TIMINGS_PRESETTING.
Referenced by ilObjectXMLWriter\__appendTimeTargets(), ilTimingCache\_getTimings(), ilObjSessionGUI\infoScreen(), ilTimingPlaned\validate(), and ilContainerXmlWriter\writeCourseItemInformation().
ilCourseItems::_hasChangeableTimings | ( | $a_ref_id | ) |
Definition at line 217 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 158 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 ilPDFPresentation\__showItems().
ilCourseItems::_hasTimings | ( | $a_ref_id | ) |
check if there is any active timing
public
int | ref_id |
Definition at line 197 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 989 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 1018 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 842 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 1046 of file class.ilCourseItems.php.
Referenced by ilObjFolder\addAdditionalSubItemInformation(), and ilObjGroup\addAdditionalSubItemInformation().
ilCourseItems::cloneDependencies | ( | $a_target_id, | |
$a_copy_id | |||
) |
Clone dependencies.
public
int | target ref_id |
int | copy id |
Definition at line 81 of file class.ilCourseItems.php.
References $ilLog, $query, $res, $row, ilCopyWizardOptions\_getInstance(), DB_FETCHMODE_OBJECT, ilObjectFactory\getInstanceByRefId(), getParentId(), ilCourseItems(), and ilDB\query().
Referenced by ilObjFolder\cloneDependencies(), and ilObjGroup\cloneDependencies().
ilCourseItems::createDefaultEntry | ( | $a_item | ) |
Definition at line 737 of file class.ilCourseItems.php.
References $ilDB, $query, $res, and IL_CRS_TIMINGS_DEACTIVATED.
Referenced by __getItemData().
ilCourseItems::deleteAllEntries | ( | ) |
Definition at line 534 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 416 of file class.ilCourseItems.php.
Referenced by ilSoapObjectAdministration\updateReferences(), and ilCourseContentGUI\updateTimings().
ilCourseItems::getItemId | ( | ) |
Definition at line 147 of file class.ilCourseItems.php.
Referenced by save().
ilCourseItems::getItems | ( | ) |
Definition at line 398 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 377 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 151 of file class.ilCourseItems.php.
Referenced by __getItemData().
ilCourseItems::ilCourseItems | ( | $a_course_ref_id, | |
$a_parent = 0 , |
|||
$user_id = 0 |
|||
) |
Definition at line 56 of file class.ilCourseItems.php.
References $ilDB, $ilErr, $lng, $tree, and setParentId().
Referenced by cloneDependencies().
ilCourseItems::moveDown | ( | $item_id | ) |
Definition at line 527 of file class.ilCourseItems.php.
References __read().
ilCourseItems::moveUp | ( | $item_id | ) |
Definition at line 521 of file class.ilCourseItems.php.
References __read().
ilCourseItems::save | ( | ) |
Save.
public
Definition at line 474 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 142 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 238 of file class.ilCourseItems.php.
References $course_ref_id, and __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 498 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 428 of file class.ilCourseItems.php.
References $ilErr, getSuggestionEnd(), getSuggestionStart(), getTimingEnd(), getTimingStart(), getTimingType(), IL_CRS_TIMINGS_ACTIVATION, and IL_CRS_TIMINGS_PRESETTING.
|
private |
Definition at line 41 of file class.ilCourseItems.php.
Referenced by setParentId().
ilCourseItems::$ilDB |
Definition at line 44 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 43 of file class.ilCourseItems.php.
Referenced by ilCourseItems(), and validateActivation().
ilCourseItems::$items |
Definition at line 48 of file class.ilCourseItems.php.
Referenced by getItemsByEvent(), and getItemsByObjective().
ilCourseItems::$lng |
Definition at line 46 of file class.ilCourseItems.php.
Referenced by ilCourseItems().
ilCourseItems::$parent |
Definition at line 49 of file class.ilCourseItems.php.
Referenced by getParentId().
ilCourseItems::$timing_end |
Definition at line 53 of file class.ilCourseItems.php.
Referenced by getTimingEnd().
ilCourseItems::$timing_start |
Definition at line 52 of file class.ilCourseItems.php.
Referenced by getTimingStart().
ilCourseItems::$timing_type |
Definition at line 51 of file class.ilCourseItems.php.
Referenced by getTimingType().
ilCourseItems::$tree |
Definition at line 45 of file class.ilCourseItems.php.
Referenced by __purgeDeleted(), _hasChangeableTimings(), _hasCollectionTimings(), _hasTimings(), and ilCourseItems().