ILIAS
release_7 Revision v7.30-3-g800a261c036
|
Public Member Functions | |
__construct ($a_id=0, bool $a_call_by_reference=true) | |
ATTENTION: After using the constructor the object won't be in the cache. More... | |
getSettings () | |
updateSettings (ilStudyProgrammeSettings $settings) | |
create () | |
update () | |
delete () | |
Delete Study Programme and all related data. More... | |
hasAdvancedMetadata () | |
getLastChange () | |
Get the timestamp of the last change on this program or sub program. More... | |
getPoints () | |
Get the amount of points. More... | |
setPoints (int $a_points) | |
Set the amount of points. More... | |
getLPMode () | |
adjustLPMode () | |
Adjust the lp mode to match current state of tree: More... | |
getStatus () | |
setStatus (int $a_status) | |
Set the status of the node. More... | |
isActive () | |
getSubType () | |
Gets the SubType Object. More... | |
getAllPrgChildren () | |
getChildren (bool $include_references=false) | |
Get all ilObjStudyProgrammes that are direct children of this object. More... | |
getParent () | |
Get the parent ilObjStudyProgramme of this object. More... | |
getReferencesToSelf () | |
getParents (bool $include_references=false) | |
Get all parents of the node, where the root of the program comes first. More... | |
hasChildren (bool $include_references=false) | |
Does this StudyProgramme have other ilObjStudyProgrammes as children? More... | |
getAmountOfChildren ($include_references=false) | |
Get the amount of other StudyProgrammes this StudyProgramme has as children. More... | |
getDepth () | |
Get the depth of this StudyProgramme in the tree starting at the topmost StudyProgramme (not root node of the repo tree!). More... | |
getRoot () | |
Get the ilObjStudyProgramme that is the root node of the tree this programme is in. More... | |
getLPChildren () | |
Get the leafs the study programme contains. More... | |
getLPChildrenIds () | |
Get the obj-ids of the leafs the program contains. More... | |
getAmountOfLPChildren () | |
Get the amount of leafs, the study programme contains. More... | |
hasLPChildren () | |
applyToSubTreeNodes (Closure $fun, bool $include_references=false) | |
Apply the given Closure to every node in the subtree starting at this object. More... | |
getCompletedCourses (int $a_user_id) | |
Get courses in this program that the given user already completed. More... | |
addNode (ilObjStudyProgramme $a_prg) | |
Inserts another ilObjStudyProgramme in this object. More... | |
nodeInserted (ilObjStudyProgramme $a_prg) | |
Clears child chache and adds progress for new node. More... | |
putInTree ($a_parent_ref) | |
Overwritten from ilObject. More... | |
removeNode (ilObjStudyProgramme $a_prg) | |
Remove a node from this object. More... | |
canBeRemoved () | |
Check weather a node can be removed. More... | |
addLeaf (ilStudyProgrammeLeaf $a_leaf) | |
Insert a leaf in this object. More... | |
removeLeaf (ilStudyProgrammeLeaf $a_leaf) | |
Remove a leaf from this object. More... | |
moveTo (ilObjStudyProgramme $a_new_parent) | |
Move this tree node to a new parent. More... | |
assignUser (int $usr_id, int $acting_usr_id=null) | |
Assign a user to this node at the study program. More... | |
removeAssignment (ilStudyProgrammeAssignment $assignment) | |
Remove an assignment from this program. More... | |
hasAssignmentOf (int $a_user_id) | |
Check whether user is assigned to this program or any node above. More... | |
getAmountOfAssignmentsOf (int $a_user_id) | |
Get the amount of assignments a user has on this program node or any node above. More... | |
getAssignmentsOf (int $a_user_id) | |
Get the assignments of user at this program or any node above. More... | |
getAssignments () | |
Get all assignments to this program or any node above. More... | |
getMembers () | |
get usr_ids with any progress on this node More... | |
getLocalMembers () | |
get usr_ids with assignment on this node More... | |
hasAssignments () | |
Are there any assignments on this node or any node above? More... | |
updateAllAssignments () | |
Update all assignments to this program node. More... | |
getAssignmentsOfSingleProgramForUser (int $usr_id) | |
Get assignments of user to this program-node only. More... | |
hasAssignmentsOfSingleProgramForUser (int $usr_id) | |
Get assignments of user to this program-node only. More... | |
createProgressForAssignment (ilStudyProgrammeAssignment $ass, int $acting_user=null) | |
Create a progress on this programme for the given assignment. More... | |
getProgressesOf (int $a_user_id) | |
Get the progresses the user has on this node. More... | |
getProgressForAssignment (int $assignment_id) | |
addMissingProgresses () | |
Add missing progress records for all assignments of this programm. More... | |
getProgresses () | |
Get all progresses on this node. More... | |
hasProgresses () | |
Are there any users that have a progress on this programme? More... | |
hasRelevantProgresses () | |
Are there any users that have a relevant progress on this programme? More... | |
getIdsOfUsersWithRelevantProgress () | |
Get the ids of all users that have a relevant progress at this programme. More... | |
getIdsOfUsersWithCompletedProgress () | |
Get the ids of all users that have completed this programme. More... | |
getIdsOfUsersWithFailedProgress () | |
Get the ids of all users that have failed this programme. More... | |
getIdsOfUsersWithNotCompletedAndRelevantProgress () | |
Get the ids of all users that have not completed this programme but have a relevant progress on it. More... | |
getAutomaticContentCategories () | |
Get configuration of categories with auto-content for this StudyProgramme;. More... | |
hasAutomaticContentCategories () | |
storeAutomaticContentCategory (int $category_ref_id) | |
Store a Category with auto-content for this StudyProgramme; a category can only be referenced once (per programme). More... | |
deleteAutomaticContentCategories (array $category_ids=[]) | |
Delete configuration of categories with auto-content for this StudyProgramme;. More... | |
deleteAllAutomaticContentCategories () | |
Delete all configuration of categories with auto-content for this StudyProgramme;. More... | |
isAutoContentApplicable () | |
AutoContent should only be available in active- or draft-mode, and only, if there is no sub-programme. More... | |
getAutomaticMembershipSources () | |
Get sources for auto-memberships. More... | |
storeAutomaticMembershipSource (string $type, int $src_id) | |
Store a source to be monitored for automatic memberships. More... | |
deleteAutomaticMembershipSource (string $type, int $src_id) | |
Delete a membership source. More... | |
deleteAllAutomaticMembershipSources () | |
Delete all membership sources of this StudyProgramme;. More... | |
disableAutomaticMembershipSource (string $type, int $src_id) | |
Disable a membership source. More... | |
enableAutomaticMembershipSource (string $type, int $src_id, $assign_now=false) | |
Enable a membership source. More... | |
getApplicableMembershipSourceForUser (int $usr_id, string $exclude_type) | |
updateCustomIcon () | |
getIdsOfSuccessfulChildren (int $ass_id) | |
getNamesOfCompletedOrAccreditedChildren (int $ass_id) | |
getChildrenProgress ($progress) | |
getPossiblePointsOfRelevantChildren (ilStudyProgrammeProgress $progress) | |
getAchievedPointsOfChildren (ilStudyProgrammeProgress $progress) | |
markAccredited (int $progress_id, int $acting_usr_id, ilPRGMessageCollection $err_collection) | |
unmarkAccredited (int $progress_id, int $acting_usr_id, ilPRGMessageCollection $err_collection) | |
markFailed (int $progress_id, int $acting_usr_id) | |
markNotFailed (int $progress_id, int $acting_usr_id) | |
markNotRelevant (int $progress_id, int $acting_usr_id, ilPRGMessageCollection $err_collection) | |
markRelevant (int $progress_id, int $acting_usr_id, ilPRGMessageCollection $err_collection) | |
invalidate (int $progress_id) | |
succeed (int $progress_id, int $triggering_obj_id) | |
changeProgressDeadline (int $progress_id, int $acting_usr_id, ilPRGMessageCollection $err_collection, ?DateTimeImmutable $deadline) | |
changeProgressValidityDate (int $progress_id, int $acting_usr_id, ilPRGMessageCollection $err_collection, ?DateTimeImmutable $validity) | |
changeAmountOfPoints (int $progress_id, int $acting_usr_id, ilPRGMessageCollection $err_collection, ?int $points) | |
updatePlanFromRepository (int $progress_id, int $acting_usr_id, ilPRGMessageCollection $err_collection=null) | |
canBeCompleted (ilStudyProgrammeProgress $progress) | |
statusToRepr ($a_status) | |
Get a user readable representation of a status. More... | |
![]() | |
__construct ($a_id=0, $a_reference=true) | |
getObjectTranslation () | |
Get object translation. More... | |
setObjectTranslation (ilObjectTranslation $obj_trans) | |
Get object translation. More... | |
createContainerDirectory () | |
Create directory for the container. More... | |
getContainerDirectory () | |
Get the container directory. More... | |
setHiddenFilesFound ($a_hiddenfilesfound) | |
Set Found hidden files (set by getSubItems). More... | |
getHiddenFilesFound () | |
Get Found hidden files (set by getSubItems). More... | |
getStyleSheetId () | |
get ID of assigned style sheet object More... | |
setStyleSheetId ($a_style_id) | |
set ID of assigned style sheet object More... | |
setNewsTimeline ($a_val) | |
Set news timeline. More... | |
getNewsTimeline () | |
Get news timeline. More... | |
setNewsTimelineAutoEntries ($a_val) | |
Set news timeline auto entries. More... | |
getNewsTimelineAutoEntries () | |
Get news timeline auto entries. More... | |
setNewsTimelineLandingPage ($a_val) | |
Set news timline is landing page. More... | |
getNewsTimelineLandingPage () | |
Get news timline is landing page. More... | |
isNewsTimelineEffective () | |
Is news timeline effective? More... | |
isNewsTimelineLandingPageEffective () | |
Is news timeline landing page effective? More... | |
setNewsBlockActivated ($a_val) | |
Set news block activated. More... | |
getNewsBlockActivated () | |
Get news block activated. More... | |
setUseNews ($a_val) | |
Set use news. More... | |
getUseNews () | |
Get use news. More... | |
cloneDependencies ($a_target_id, $a_copy_id) | |
Clone object dependencies (container sorting) More... | |
cloneAllObject ($session_id, $client_id, $new_type, $ref_id, $clone_source, $options, $soap_call=false, $a_submode=1) | |
clone all objects according to this container More... | |
delete () | |
delete category and all related data More... | |
getViewMode () | |
Get container view mode. More... | |
getOrderType () | |
Get order type default implementation. More... | |
setOrderType ($a_value) | |
isClassificationFilterActive () | |
Is classification filter active? More... | |
filteredSubtree () | |
Note grp/crs currently allow to filter in their whole subtrees Catetories only their direct childs. More... | |
getSubItems ( $a_admin_panel_enabled=false, $a_include_side_block=false, $a_get_single=0, \ilContainerUserFilter $container_user_filter=null) | |
Get subitems of container. More... | |
gotItems () | |
Check whether we got any items. More... | |
addAdditionalSubItemInformation (&$object) | |
Add additional information to sub item, e.g. More... | |
getGroupedObjTypes () | |
Get grouped repository object types. More... | |
enablePageEditing () | |
Check whether page editing is allowed for container. More... | |
create () | |
Create. More... | |
putInTree ($a_parent_ref) | |
update () | |
Update. More... | |
read () | |
read More... | |
readContainerSettings () | |
Read container settings. More... | |
removeTranslations () | |
Remove all translations of container. More... | |
deleteTranslation ($a_lang) | |
Delete translation. More... | |
addTranslation ($a_title, $a_desc, $a_lang, $a_lang_default) | |
Add translation. More... | |
![]() | |
__construct ($a_id=0, $a_reference=true) | |
Constructor public. More... | |
withReferences () | |
determines wehter objects are referenced or not (got ref ids or not) More... | |
read () | |
read object data from db into object More... | |
getId () | |
get object id public More... | |
setId ($a_id) | |
set object id public More... | |
setRefId ($a_id) | |
set reference id public More... | |
getRefId () | |
get reference id public More... | |
getType () | |
get object type public More... | |
setType ($a_type) | |
set object type public More... | |
getPresentationTitle () | |
get presentation title Normally same as title Overwritten for sessions More... | |
getTitle () | |
get object title public More... | |
getUntranslatedTitle () | |
get untranslated object title public More... | |
setTitle ($a_title) | |
set object title More... | |
getDescription () | |
get object description More... | |
setDescription ($a_desc) | |
set object description More... | |
getLongDescription () | |
get object long description (stored in object_description) More... | |
getImportId () | |
get import id More... | |
setImportId ($a_import_id) | |
set import id More... | |
setOfflineStatus ($a_status) | |
Set offline status. More... | |
getOfflineStatus () | |
Get offline status. More... | |
supportsOfflineHandling () | |
Check whether object supports offline handling. More... | |
getOwner () | |
get object owner More... | |
getOwnerName () | |
setOwner ($a_owner) | |
set object owner More... | |
getCreateDate () | |
get create date public More... | |
getLastUpdateDate () | |
get last update date public More... | |
getDiskUsage () | |
Gets the disk usage of the object in bytes. More... | |
create () | |
create More... | |
update () | |
update object in db More... | |
MDUpdateListener ($a_element) | |
Meta data update listener. More... | |
createMetaData () | |
create meta data entry More... | |
updateMetaData () | |
update meta data entry More... | |
deleteMetaData () | |
delete meta data entry More... | |
updateOwner () | |
update owner of object in db More... | |
putInTree ($a_parent_ref) | |
maybe this method should be in tree object!? More... | |
setPermissions ($a_parent_ref) | |
set permissions of object More... | |
setParentRolePermissions ($a_parent_ref) | |
Initialize the permissions of parent roles (local roles of categories, global roles...) This method is overwritten in e.g courses, groups for building permission intersections with non_member templates. More... | |
createReference () | |
creates reference for object More... | |
countReferences () | |
count references of object More... | |
delete () | |
delete object or referenced object (in the case of a referenced object, object data is only deleted if last reference is deleted) This function removes an object entirely from system!! More... | |
initDefaultRoles () | |
init default roles settings Purpose of this function is to create a local role folder and local roles, that are needed depending on the object type If you want to setup default local roles you MUST overwrite this method in derived object classes (see ilObjForum for an example) public More... | |
applyDidacticTemplate ($a_tpl_id) | |
Apply template. More... | |
setRegisterMode ($a_bool) | |
isUserRegistered ($a_user_id=0) | |
requireRegistration () | |
getXMLZip () | |
getHTMLDirectory () | |
appendCopyInfo ($a_target_id, $a_copy_id) | |
Prepend Copy info if object with same name exists in that container. More... | |
cloneDependencies ($a_target_id, $a_copy_id) | |
Clone object dependencies. More... | |
cloneMetaData ($target_obj) | |
Copy meta data. More... | |
getPossibleSubObjects ($a_filter=true) | |
get all possible subobjects of this type the object can decide which types of subobjects are possible jut in time overwrite if the decision distinguish from standard model More... | |
Static Public Member Functions | |
static | initStudyProgrammeCache () |
static | getRefIdFor (int $obj_id) |
static | getInstanceByObjId ($obj_id) |
static | getInstanceByRefId ($a_ref_id) |
static | createInstance () |
Create an instance of ilObjStudyProgramme, put in cache. More... | |
static | getAllChildren (int $a_ref_id, bool $include_references=false) |
Get a list of all ilObjStudyProgrammes in the subtree starting at $a_ref_id. More... | |
static | addCrsToProgrammes (int $crs_ref_id, int $cat_ref_id) |
Check, if a category is under surveilllance and automatically add the course. More... | |
static | removeCrsFromProgrammes (int $crs_ref_id, int $cat_ref_id) |
Check, if a category is under surveilllance and automatically remove the deleted course. More... | |
static | addMemberToProgrammes (string $src_type, int $src_id, int $usr_id) |
static | removeMemberFromProgrammes (string $src_type, int $src_id, int $usr_id) |
static | setProgressesCompletedFor (int $a_obj_id, int $a_user_id) |
Set all progresses to completed where the object with given id is a leaf and that belong to the user. More... | |
static | getCreatableSubObjects (array $a_subobjects, $a_ref_id) |
Filter the list of possible subobjects for the objects that actually could be created on a concrete node. More... | |
static | sendReAssignedMail (int $ref_id, int $usr_id) |
static | sendInvalidateMail (int $ref_id, int $usr_id) |
static | sendInformToReAssignMail (int $progress_id, int $usr_id) |
static | sendRiskyToFailMail (int $progress_id, int $usr_id) |
![]() | |
static | _getContainerDirectory ($a_id) |
Get the container directory. More... | |
static | _lookupContainerSetting ($a_id, $a_keyword, $a_default_value=null) |
Lookup a container setting. More... | |
static | _writeContainerSetting ($a_id, $a_keyword, $a_value) |
static | _getContainerSettings ($a_id) |
static | _deleteContainerSettings ($a_id, $a_keyword=null, $a_keyword_like=false) |
static | _exportContainerSettings (ilXmlWriter $a_xml, $a_obj_id) |
static | getCompleteDescriptions (array $objects) |
overwrites description fields to long or short description in an assoc array keys needed (obj_id and description) More... | |
![]() | |
static | _lookupObjIdByImportId ($a_import_id) |
static | _lookupImportId ($a_obj_id) |
static | _lookupOwnerName ($a_owner_id) |
lookup owner name for owner id More... | |
static | _getIdForImportId ($a_import_id) |
get current object id for import id (static) More... | |
static | _getAllReferences ($a_id) |
get all reference ids of object More... | |
static | _lookupTitle ($a_id) |
lookup object title More... | |
static | lookupOfflineStatus ($a_obj_id) |
Lookup offline status using objectDataCache. More... | |
static | _lookupOwner ($a_id) |
lookup object owner More... | |
static | _getIdsForTitle ($title, $type='', $partialmatch=false) |
static | _lookupDescription ($a_id) |
lookup object description More... | |
static | _lookupLastUpdate ($a_id, $a_as_string=false) |
lookup last update More... | |
static | _getLastUpdateOfObjects ($a_objs) |
Get last update for a set of media objects. More... | |
static | _lookupObjId ($a_id) |
static | _setDeletedDate ($a_ref_id, $a_deleted_by) |
static | setDeletedDates ($a_ref_ids, $a_user_id) |
Set deleted date. More... | |
static | _resetDeletedDate ($a_ref_id) |
only called in ilObjectGUI::insertSavedNodes More... | |
static | _lookupDeletedDate ($a_ref_id) |
only called in ilObjectGUI::insertSavedNodes More... | |
static | _writeTitle ($a_obj_id, $a_title) |
write title to db (static) More... | |
static | _writeDescription ($a_obj_id, $a_desc) |
write description to db (static) More... | |
static | _writeImportId ($a_obj_id, $a_import_id) |
write import id to db (static) More... | |
static | _lookupType ($a_id, $a_reference=false) |
lookup object type More... | |
static | _isInTrash ($a_ref_id) |
checks wether object is in trash More... | |
static | _hasUntrashedReference ($a_obj_id) |
checks wether an object has at least one reference that is not in trash More... | |
static | _lookupObjectId ($a_ref_id) |
lookup object id More... | |
static | _getObjectsDataForType ($a_type, $a_omit_trash=false) |
get all objects of a certain type More... | |
static | _exists ($a_id, $a_reference=false, $a_type=null) |
checks if an object exists in object_data More... | |
static | _getObjectsByType ($a_obj_type="", $a_owner="") |
Get objects by type. More... | |
static | _prepareCloneSelection ($a_ref_ids, $new_type, $show_path=true) |
Prepare copy wizard object selection. More... | |
static | _getIcon ( $a_obj_id="", $a_size="big", $a_type="", $a_offline=false) |
Get icon for repository item. More... | |
static | collectDeletionDependencies (&$deps, $a_ref_id, $a_obj_id, $a_type, $a_depth=0) |
Collect deletion dependencies. More... | |
static | getDeletionDependencies ($a_obj_id) |
Get deletion dependencies. More... | |
static | getLongDescriptions (array $a_obj_ids) |
Get long description data. More... | |
static | getAllOwnedRepositoryObjects ($a_user_id) |
Get all ids of objects user owns. More... | |
static | fixMissingTitles ($a_type, array &$a_obj_title_map) |
Try to fix missing object titles. More... | |
static | _lookupCreationDate ($a_id) |
Lookup creation date. More... | |
static | hasAutoRating ($a_type, $a_ref_id) |
Check if auto rating is active for parent group/course. More... | |
Data Fields | |
$webdir | |
$tree | |
$ilUser | |
$object_factory | |
![]() | |
const | VIEW_SESSIONS = 0 |
const | VIEW_OBJECTIVE = 1 |
const | VIEW_TIMING = 2 |
const | VIEW_ARCHIVE = 3 |
const | VIEW_SIMPLE = 4 |
const | VIEW_BY_TYPE = 5 |
const | VIEW_INHERIT = 6 |
const | VIEW_DEFAULT = self::VIEW_BY_TYPE |
const | SORT_TITLE = 0 |
const | SORT_MANUAL = 1 |
const | SORT_ACTIVATION = 2 |
const | SORT_INHERIT = 3 |
const | SORT_CREATION = 4 |
const | SORT_DIRECTION_ASC = 0 |
const | SORT_DIRECTION_DESC = 1 |
const | SORT_NEW_ITEMS_POSITION_TOP = 0 |
const | SORT_NEW_ITEMS_POSITION_BOTTOM = 1 |
const | SORT_NEW_ITEMS_ORDER_TITLE = 0 |
const | SORT_NEW_ITEMS_ORDER_CREATION = 1 |
const | SORT_NEW_ITEMS_ORDER_ACTIVATION = 2 |
![]() | |
const | TITLE_LENGTH = 255 |
max length of object title More... | |
const | DESC_LENGTH = 128 |
$lng | |
$id | |
$ref_id | |
$type | |
$title | |
$untranslatedTitle | |
$desc | |
$long_desc | |
$owner | |
$create_date | |
$last_update | |
$import_id | |
$register = false | |
$referenced | |
$objectList | |
$max_title | |
$max_desc | |
$add_dots | |
Static Public Attributes | |
static | $study_programme_cache = null |
![]() | |
static | $data_preloaded = false |
Protected Member Functions | |
clearParentCache () | |
Clear the cached parent to query it again at the tree. More... | |
clearChildrenCache () | |
Clear the cached children. More... | |
clearLPChildrenCache () | |
Clear the cached lp children. More... | |
getPrgInstanceByObjId (int $obj_id) | |
getProgressRepository () | |
getAssignmentRepository () | |
getSettingsRepository () | |
getTree () | |
getLogger () | |
deleteSettings () | |
deleteAssignmentsAndProgresses () | |
Delete all assignments from the DB. More... | |
getReferencesTo (ilObjStudyProgramme $prg) | |
throwIfNotInTree () | |
getMembersOfMembershipSource (string $src_type, int $src_id) | |
Get member-ids of a certain source. More... | |
updateLastChange () | |
Update last change timestamp on this node and its parents. More... | |
getIdsFromNodesOnPathFromRootToHere (bool $include_references=false) | |
Get the ids from the nodes in the path leading from the root node of this program to this node, including the id of this node. More... | |
getAssignmentsRaw () | |
Get model objects for the assignments on this programm. More... | |
getLoggedInUserId () | |
getNow () | |
getAssignmentForProgress (ilStudyProgrammeProgress $progress) | |
getProgrammeSettingsForProgress (ilStudyProgrammeProgress $progress) | |
getObjIdsOfChildren (int $node_obj_id) | |
getParentProgress (ilStudyProgrammeProgress $progress) | |
refreshLPStatus (int $usr_id, int $node_obj_id=null) | |
updateParentProgress (ilStudyProgrammeProgress $progress) | |
recalculateProgressStatus (ilStudyProgrammeProgress $progress) | |
applyProgressDeadline (ilStudyProgrammeProgress $progress, int $acting_usr_id=null) | |
resetProgressToSettings (ilStudyProgrammeProgress $progress, int $acting_usr_id) | |
updateProgressRelevanceFromSettings ($progress) | |
updateProgressValidityFromSettings ($progress) | |
updateProgressDeadlineFromSettings ($progress) | |
getProgressIdString (ilStudyProgrammeProgress $progress) | |
![]() | |
getInitialSubitems () | |
Get initial subitems. More... | |
applyContainerUserFilter ($objects, ilContainerUserFilter $container_user_filter=null) | |
Apply container user filter on objects. More... | |
legacyOnlineFilter ($obj_ids, $objects, $val) | |
Legacy online filter. More... | |
Static Protected Member Functions | |
static | getProgrammesMonitoringCategory (int $cat_ref_id) |
Get all StudyProgrammes monitoring this category. More... | |
static | getProgrammesMonitoringMemberSource (string $src_type, int $src_id) |
Get all StudyProgrammes monitoring this membership-source. More... | |
static | setProgressesCompletedIfParentIsProgrammeInLPCompletedMode (int $a_ref_id, int $a_obj_id, int $a_user_id) |
static | getParentId (ilObject $a_object) |
Get the obj id of the parent object for the given object. More... | |
Protected Attributes | |
$parent | |
$children | |
$lp_children | |
$type_repository | |
$assignment_repository | |
$progress_repository | |
$auto_categories_repository | |
$auto_memberships_repository | |
$membersourcereader_factory | |
$events | |
$db | |
$plugin_admin | |
$settings_repository | |
$reference_children | |
$members_cache | |
$custom_icon_factory | |
![]() | |
$news | |
$db | |
$log | |
$access | |
$error | |
$rbacsystem | |
$tree | |
$user | |
$obj_definition | |
$order_type = 0 | |
$hiddenfilesfound = false | |
$news_timeline = false | |
$news_timeline_auto_entries = false | |
$setting | |
$obj_trans = null | |
$recommended_content_manager | |
![]() | |
$objDefinition | |
$db | |
$log | |
$error | |
$tree | |
$app_event_handler | |
$rbacadmin | |
$rbacreview | |
Definition at line 5 of file class.ilObjStudyProgramme.php.
ilObjStudyProgramme::__construct | ( | $a_id = 0 , |
|
bool | $a_call_by_reference = true |
||
) |
ATTENTION: After using the constructor the object won't be in the cache.
This could lead to unexpected behaviour when using the tree navigation.
Definition at line 119 of file class.ilObjStudyProgramme.php.
References $dic, $DIC, $ilUser, $tree, ILIAS\GlobalScreen\Provider\__construct(), clearChildrenCache(), clearLPChildrenCache(), clearParentCache(), ilStudyProgrammeDIC\dic(), ilLoggerFactory\getLogger(), and ilObjectFactoryWrapper\singleton().
|
static |
Check, if a category is under surveilllance and automatically add the course.
Definition at line 1453 of file class.ilObjStudyProgramme.php.
References ilObject\_lookupObjectId(), ilLPObjSettings\insert(), and ilContainerReference\TITLE_TYPE_REUSE.
Referenced by ilStudyProgrammeAppEventListener\addCrsToProgrammes().
ilObjStudyProgramme::addLeaf | ( | ilStudyProgrammeLeaf | $a_leaf | ) |
Insert a leaf in this object.
Throws when object already contain ilObjStudyProgrammes as children. Throws when this object is not in tree.
ilStudyProgrammeTreeException | |
ilException |
Definition at line 953 of file class.ilObjStudyProgramme.php.
References clearLPChildrenCache(), ilStudyProgrammeLeaf\createReference(), ilStudyProgrammeLeaf\getRefId(), ilObject\getRefId(), getSettings(), hasChildren(), ilStudyProgrammeSettings\MODE_LP_COMPLETED, ilStudyProgrammeLeaf\putInTree(), and throwIfNotInTree().
|
static |
Definition at line 1631 of file class.ilObjStudyProgramme.php.
References ilStudyProgrammeAutoMembershipSource\SOURCE_MAPPING.
Referenced by ilStudyProgrammeAppEventListener\addMemberToProgrammes().
ilObjStudyProgramme::addMissingProgresses | ( | ) |
Add missing progress records for all assignments of this programm.
Use this after the structure of the programme was modified, i.e.: there was a node added below this one.
Definition at line 1266 of file class.ilObjStudyProgramme.php.
References $assignment_repository, $progress_repository, $settings_repository, getAssignmentRepository(), getChildren(), ilObject\getId(), getLogger(), getProgressRepository(), getSettingsRepository(), and ilStudyProgrammeProgress\STATUS_NOT_RELEVANT.
Referenced by nodeInserted().
ilObjStudyProgramme::addNode | ( | ilObjStudyProgramme | $a_prg | ) |
Inserts another ilObjStudyProgramme in this object.
Throws when object already contains non ilObjStudyProgrammes as children. Throws when $a_prg already is in the tree. Throws when this object is not in tree.
ilStudyProgrammeTreeException |
Definition at line 836 of file class.ilObjStudyProgramme.php.
References ilObject\createReference(), getLPMode(), ilObject\getRefId(), ilStudyProgrammeSettings\MODE_LP_COMPLETED, putInTree(), and throwIfNotInTree().
ilObjStudyProgramme::adjustLPMode | ( | ) |
Adjust the lp mode to match current state of tree:
If there are any non programme children, the mode is MODE_LP_COMPLETED, otherwise its MODE_POINTS.
ilException | when programme is not in draft mode. |
Definition at line 405 of file class.ilObjStudyProgramme.php.
References clearChildrenCache(), clearLPChildrenCache(), getAmountOfChildren(), getAmountOfLPChildren(), getSettings(), ilStudyProgrammeSettings\MODE_LP_COMPLETED, ilStudyProgrammeSettings\MODE_POINTS, and ilStudyProgrammeSettings\MODE_UNDEFINED.
|
protected |
Definition at line 2308 of file class.ilObjStudyProgramme.php.
References $format, ilStudyProgrammeProgress\DATE_FORMAT, ilStudyProgrammeProgress\getDeadline(), getLoggedInUserId(), getNow(), ilStudyProgrammeProgress\getStatus(), ilStudyProgrammeProgress\markFailed(), ilStudyProgrammeProgress\markNotFailed(), ilStudyProgrammeProgress\STATUS_FAILED, and ilStudyProgrammeProgress\STATUS_IN_PROGRESS.
Referenced by changeProgressDeadline(), unmarkAccredited(), and updatePlanFromRepository().
ilObjStudyProgramme::applyToSubTreeNodes | ( | Closure | $fun, |
bool | $include_references = false |
||
) |
Apply the given Closure to every node in the subtree starting at this object.
When the closure returns false, the underlying nodes won't be visited.
ilStudyProgrammeTreeException | Throws when this object is not in tree. |
Definition at line 778 of file class.ilObjStudyProgramme.php.
References getChildren(), and throwIfNotInTree().
Referenced by assignUser(), and getAllPrgChildren().
ilObjStudyProgramme::assignUser | ( | int | $usr_id, |
int | $acting_usr_id = null |
||
) |
Assign a user to this node at the study program.
Throws when node is in DRAFT or OUTDATED status. Throws when there are no settings for the program.
TODO: Should it be allowed to assign inactive users?
ilException |
Definition at line 1046 of file class.ilObjStudyProgramme.php.
References applyToSubTreeNodes(), createProgressForAssignment(), ilObject\getId(), getLoggedInUserId(), getProgressRepository(), getStatus(), resetProgressToSettings(), and ilStudyProgrammeSettings\STATUS_ACTIVE.
Referenced by enableAutomaticMembershipSource().
ilObjStudyProgramme::canBeCompleted | ( | ilStudyProgrammeProgress | $progress | ) |
Definition at line 2710 of file class.ilObjStudyProgramme.php.
References ilStudyProgrammeProgress\getAmountOfPoints(), getLPMode(), getPossiblePointsOfRelevantChildren(), and ilStudyProgrammeSettings\MODE_LP_COMPLETED.
ilObjStudyProgramme::canBeRemoved | ( | ) |
Check weather a node can be removed.
This is allowed when all progresses on the node are marked as not relevant programmatically.
Definition at line 931 of file class.ilObjStudyProgramme.php.
References getProgresses(), and ilStudyProgrammeProgress\STATUS_NOT_RELEVANT.
Referenced by removeNode().
ilObjStudyProgramme::changeAmountOfPoints | ( | int | $progress_id, |
int | $acting_usr_id, | ||
ilPRGMessageCollection | $err_collection, | ||
?int | $points | ||
) |
Definition at line 2575 of file class.ilObjStudyProgramme.php.
References ilPRGMessageCollection\add(), getNow(), getProgressIdString(), getProgressRepository(), recalculateProgressStatus(), refreshLPStatus(), and updateParentProgress().
ilObjStudyProgramme::changeProgressDeadline | ( | int | $progress_id, |
int | $acting_usr_id, | ||
ilPRGMessageCollection | $err_collection, | ||
?DateTimeImmutable | $deadline | ||
) |
Definition at line 2516 of file class.ilObjStudyProgramme.php.
References ilPRGMessageCollection\add(), applyProgressDeadline(), getNow(), getProgressIdString(), getProgressRepository(), refreshLPStatus(), and updateParentProgress().
ilObjStudyProgramme::changeProgressValidityDate | ( | int | $progress_id, |
int | $acting_usr_id, | ||
ilPRGMessageCollection | $err_collection, | ||
?DateTimeImmutable | $validity | ||
) |
Definition at line 2546 of file class.ilObjStudyProgramme.php.
References ilPRGMessageCollection\add(), getNow(), getProgressIdString(), getProgressRepository(), and refreshLPStatus().
|
protected |
Clear the cached children.
Definition at line 178 of file class.ilObjStudyProgramme.php.
Referenced by __construct(), adjustLPMode(), moveTo(), nodeInserted(), and removeNode().
|
protected |
Clear the cached lp children.
Definition at line 186 of file class.ilObjStudyProgramme.php.
Referenced by __construct(), addLeaf(), adjustLPMode(), moveTo(), and removeLeaf().
|
protected |
Clear the cached parent to query it again at the tree.
Definition at line 169 of file class.ilObjStudyProgramme.php.
Referenced by __construct(), moveTo(), and removeNode().
ilObjStudyProgramme::create | ( | ) |
ilException |
Definition at line 293 of file class.ilObjStudyProgramme.php.
References ilObject\$id, and getSettingsRepository().
|
static |
Create an instance of ilObjStudyProgramme, put in cache.
ilException |
Definition at line 244 of file class.ilObjStudyProgramme.php.
Referenced by ilObjStudyProgrammeTest\createSmallTree(), ilPrgRestartAssignmentsCronJobTest\newPrg(), ilPrgInvalidateExpiredProgressesCronJobTest\newPrg(), ilStudyProgrammeProgressCalculationTest\setUp(), ilStudyProgrammeUserAssignmentTest\setUp(), ilStudyProgrammeLPTest\setUp(), ilStudyProgrammeUserProgressTest\setUp(), ilStudyProgrammeEventsTest\setUp(), ilObjStudyProgrammeTest\setUp(), ilStudyProgrammeAssignmentRepositoryTest\setUpBeforeClass(), ilStudyProgrammeProgressCalculationTest\setUpNodes(), ilStudyProgrammeUserProgressTest\test_limited_validity_accredited(), ilStudyProgrammeUserProgressTest\test_limited_validity_date(), ilStudyProgrammeUserProgressTest\test_limited_validity_period(), ilStudyProgrammeUserProgressTest\test_set_failed_limited_validity_future(), ilStudyProgrammeUserProgressTest\test_set_failed_limited_validity_past(), ilStudyProgrammeUserProgressTest\test_set_failed_no_limited_validity(), ilStudyProgrammeUserProgressTest\testCanBeCompleted3(), ilStudyProgrammeUserProgressTest\testCompletionOnDeeplyNestedProgresses(), ilStudyProgrammeLPTest\testNewNodesAreNotRelevant(), ilStudyProgrammeUserProgressTest\testNewNodesAreNotRelevant(), ilStudyProgrammeUserAssignmentTest\testNoRestartDate(), ilStudyProgrammeUserAssignmentTest\testRestartDate(), ilStudyProgrammeUserAssignmentTest\testRstartAssignment(), and ilObjStudyProgrammeTest\testTreeGetParents().
ilObjStudyProgramme::createProgressForAssignment | ( | ilStudyProgrammeAssignment | $ass, |
int | $acting_user = null |
||
) |
Create a progress on this programme for the given assignment.
Definition at line 1239 of file class.ilObjStudyProgramme.php.
References getSettings().
Referenced by assignUser().
ilObjStudyProgramme::delete | ( | ) |
Delete Study Programme and all related data.
ilException |
Definition at line 326 of file class.ilObjStudyProgramme.php.
References Vendor\Package\$e, deleteAllAutomaticContentCategories(), deleteAllAutomaticMembershipSources(), deleteAssignmentsAndProgresses(), deleteSettings(), and ilObject\getId().
ilObjStudyProgramme::deleteAllAutomaticContentCategories | ( | ) |
Delete all configuration of categories with auto-content for this StudyProgramme;.
Definition at line 1445 of file class.ilObjStudyProgramme.php.
References ilObject\getId().
Referenced by delete().
ilObjStudyProgramme::deleteAllAutomaticMembershipSources | ( | ) |
Delete all membership sources of this StudyProgramme;.
Definition at line 1567 of file class.ilObjStudyProgramme.php.
References ilObject\getId().
Referenced by delete().
|
protected |
Delete all assignments from the DB.
ilException |
Definition at line 280 of file class.ilObjStudyProgramme.php.
References $assignment_repository, $progress_repository, getAssignmentRepository(), ilObject\getId(), and getProgressRepository().
Referenced by delete().
ilObjStudyProgramme::deleteAutomaticContentCategories | ( | array | $category_ids = [] | ) |
Delete configuration of categories with auto-content for this StudyProgramme;.
int[] | $category_ids |
Definition at line 1437 of file class.ilObjStudyProgramme.php.
References ilObject\getId().
ilObjStudyProgramme::deleteAutomaticMembershipSource | ( | string | $type, |
int | $src_id | ||
) |
Delete a membership source.
Definition at line 1559 of file class.ilObjStudyProgramme.php.
References ilObject\getId().
|
protected |
Definition at line 270 of file class.ilObjStudyProgramme.php.
References getSettings(), and getSettingsRepository().
Referenced by delete().
ilObjStudyProgramme::disableAutomaticMembershipSource | ( | string | $type, |
int | $src_id | ||
) |
Disable a membership source.
Definition at line 1575 of file class.ilObjStudyProgramme.php.
References ilObject\getId().
ilObjStudyProgramme::enableAutomaticMembershipSource | ( | string | $type, |
int | $src_id, | ||
$assign_now = false |
|||
) |
Enable a membership source.
ilException |
Definition at line 1585 of file class.ilObjStudyProgramme.php.
References ilObject\$type, assignUser(), getAssignmentsOfSingleProgramForUser(), ilObject\getId(), getMembersOfMembershipSource(), and ilStudyProgrammeAutoMembershipSource\SOURCE_MAPPING.
ilObjStudyProgramme::getAchievedPointsOfChildren | ( | ilStudyProgrammeProgress | $progress | ) |
Definition at line 2218 of file class.ilObjStudyProgramme.php.
References $children, and getChildrenProgress().
Referenced by recalculateProgressStatus(), and unmarkAccredited().
|
static |
Get a list of all ilObjStudyProgrammes in the subtree starting at $a_ref_id.
Throws when object is not in tree.
Definition at line 483 of file class.ilObjStudyProgramme.php.
References $ret, and ilObject\getId().
Referenced by ilObjStudyProgrammeTreeGUI\confirmedDelete(), ilObjStudyProgrammeTest\testMoveTo(), and ilObjStudyProgrammeTest\testTreeGetChildren().
ilObjStudyProgramme::getAllPrgChildren | ( | ) |
Definition at line 498 of file class.ilObjStudyProgramme.php.
References $ret, applyToSubTreeNodes(), and ilObject\getId().
Referenced by ilStudyProgrammeDashboardViewGUI\calculatePercent().
ilObjStudyProgramme::getAmountOfAssignmentsOf | ( | int | $a_user_id | ) |
Get the amount of assignments a user has on this program node or any node above.
Definition at line 1117 of file class.ilObjStudyProgramme.php.
References getAssignmentsOf().
Referenced by hasAssignmentOf().
ilObjStudyProgramme::getAmountOfChildren | ( | $include_references = false | ) |
Get the amount of other StudyProgrammes this StudyProgramme has as children.
ilStudyProgrammeTreeException | when this object is not in tree. |
Definition at line 661 of file class.ilObjStudyProgramme.php.
References getChildren().
Referenced by adjustLPMode(), hasChildren(), and isAutoContentApplicable().
ilObjStudyProgramme::getAmountOfLPChildren | ( | ) |
Get the amount of leafs, the study programme contains.
Throws when this object is not in tree.
Definition at line 747 of file class.ilObjStudyProgramme.php.
References getLPChildren().
Referenced by adjustLPMode(), and hasLPChildren().
ilObjStudyProgramme::getApplicableMembershipSourceForUser | ( | int | $usr_id, |
string | $exclude_type | ||
) |
Definition at line 1673 of file class.ilObjStudyProgramme.php.
References getAutomaticMembershipSources(), and getMembersOfMembershipSource().
|
protected |
Definition at line 2121 of file class.ilObjStudyProgramme.php.
References ilStudyProgrammeProgress\getAssignmentId().
|
protected |
Definition at line 222 of file class.ilObjStudyProgramme.php.
References $assignment_repository.
Referenced by addMissingProgresses(), deleteAssignmentsAndProgresses(), getIdsOfSuccessfulChildren(), and updateAllAssignments().
ilObjStudyProgramme::getAssignments | ( | ) |
Get all assignments to this program or any node above.
Definition at line 1156 of file class.ilObjStudyProgramme.php.
References $assignment_repository, and getAssignmentsRaw().
Referenced by hasAssignments().
ilObjStudyProgramme::getAssignmentsOf | ( | int | $a_user_id | ) |
Get the assignments of user at this program or any node above.
The assignments are ordered by last_change, where the most recently changed assignments is the first one.
Definition at line 1129 of file class.ilObjStudyProgramme.php.
References $assignment_repository, and getIdsFromNodesOnPathFromRootToHere().
Referenced by getAmountOfAssignmentsOf().
ilObjStudyProgramme::getAssignmentsOfSingleProgramForUser | ( | int | $usr_id | ) |
Get assignments of user to this program-node only.
Definition at line 1218 of file class.ilObjStudyProgramme.php.
References ilObject\getId().
Referenced by enableAutomaticMembershipSource(), and hasAssignmentsOfSingleProgramForUser().
|
protected |
Get model objects for the assignments on this programm.
Definition at line 1723 of file class.ilObjStudyProgramme.php.
References getIdsFromNodesOnPathFromRootToHere(), and ilStudyProgrammeAssignment\getLastChange().
Referenced by getAssignments().
ilObjStudyProgramme::getAutomaticContentCategories | ( | ) |
Get configuration of categories with auto-content for this StudyProgramme;.
Definition at line 1409 of file class.ilObjStudyProgramme.php.
References ilObject\getId().
Referenced by hasAutomaticContentCategories().
ilObjStudyProgramme::getAutomaticMembershipSources | ( | ) |
Get sources for auto-memberships.
Definition at line 1542 of file class.ilObjStudyProgramme.php.
References ilObject\getId().
Referenced by getApplicableMembershipSourceForUser().
ilObjStudyProgramme::getChildren | ( | bool | $include_references = false | ) |
Get all ilObjStudyProgrammes that are direct children of this object.
ilStudyProgrammeTreeException | when this object is not in tree. |
Definition at line 520 of file class.ilObjStudyProgramme.php.
References $children, $data, ilContainerSorting\_getInstance(), ilObject\getId(), getInstanceByRefId(), ilObject\getRefId(), and throwIfNotInTree().
Referenced by addMissingProgresses(), applyToSubTreeNodes(), getAmountOfChildren(), and getIdsOfSuccessfulChildren().
ilObjStudyProgramme::getChildrenProgress | ( | $progress | ) |
Definition at line 2157 of file class.ilObjStudyProgramme.php.
References $children, $ret, getObjIdsOfChildren(), and getProgressRepository().
Referenced by getAchievedPointsOfChildren(), and getPossiblePointsOfRelevantChildren().
ilObjStudyProgramme::getCompletedCourses | ( | int | $a_user_id | ) |
Get courses in this program that the given user already completed.
Definition at line 794 of file class.ilObjStudyProgramme.php.
References ilObject\_exists(), ilLPStatus\_hasUserCompleted(), ilObject\_lookupDeletedDate(), ilContainerReference\_lookupTargetId(), ilContainerReference\_lookupTitle(), and ilObject\getRefId().
|
static |
Filter the list of possible subobjects for the objects that actually could be created on a concrete node.
Will be called by ilObjDefinition::getCreatableSubObjects.
string[] | $a_subobjects |
Definition at line 1837 of file class.ilObjStudyProgramme.php.
References $parent, ilObject\_lookupType(), getInstanceByRefId(), ilStudyProgrammeSettings\MODE_LP_COMPLETED, ilStudyProgrammeSettings\MODE_POINTS, and ilStudyProgrammeSettings\MODE_UNDEFINED.
Referenced by ilObjectDefinition\getCreatableSubObjects(), ilObjStudyProgrammeTest\testCreatableSubObjectsRaisesOnNonProgramRef(), ilObjStudyProgrammeTest\testCreatableSubObjectsWithoutRef(), and ilObjStudyProgrammeTest\testCreateableSubObjects().
ilObjStudyProgramme::getDepth | ( | ) |
Get the depth of this StudyProgramme in the tree starting at the topmost StudyProgramme (not root node of the repo tree!).
Root node has depth = 0.
ilException | when this object is not in tree. |
Definition at line 672 of file class.ilObjStudyProgramme.php.
|
protected |
Get the ids from the nodes in the path leading from the root node of this program to this node, including the id of this node.
Definition at line 1709 of file class.ilObjStudyProgramme.php.
References ilObject\getId(), and getParents().
Referenced by getAssignmentsOf(), and getAssignmentsRaw().
ilObjStudyProgramme::getIdsOfSuccessfulChildren | ( | int | $ass_id | ) |
Definition at line 2064 of file class.ilObjStudyProgramme.php.
References $children, ilObject\$ref_id, ilObject\_exists(), ilLPStatus\_hasUserCompleted(), ilObject\_lookupDeletedDate(), ilContainerReference\_lookupTargetId(), ilContainerReference\_lookupTargetRefId(), getAssignmentRepository(), getChildren(), ilObject\getRefId(), and getTree().
Referenced by getNamesOfCompletedOrAccreditedChildren().
ilObjStudyProgramme::getIdsOfUsersWithCompletedProgress | ( | ) |
Get the ids of all users that have completed this programme.
Definition at line 1355 of file class.ilObjStudyProgramme.php.
References getProgresses().
Referenced by getIdsOfUsersWithFailedProgress().
ilObjStudyProgramme::getIdsOfUsersWithFailedProgress | ( | ) |
Get the ids of all users that have failed this programme.
Definition at line 1371 of file class.ilObjStudyProgramme.php.
References getIdsOfUsersWithCompletedProgress(), and getProgresses().
ilObjStudyProgramme::getIdsOfUsersWithNotCompletedAndRelevantProgress | ( | ) |
Get the ids of all users that have not completed this programme but have a relevant progress on it.
Definition at line 1389 of file class.ilObjStudyProgramme.php.
References getProgresses().
ilObjStudyProgramme::getIdsOfUsersWithRelevantProgress | ( | ) |
Get the ids of all users that have a relevant progress at this programme.
Definition at line 1339 of file class.ilObjStudyProgramme.php.
References getProgresses().
|
static |
Definition at line 205 of file class.ilObjStudyProgramme.php.
Referenced by ilStudyProgrammeProgressListGUI\buildProgressBar(), ilStudyProgrammeIndividualPlanProgressListGUI\buildProgressStatus(), ilStudyProgrammeProgressListGUI\buildProgressStatus(), ilStudyProgrammeIndividualPlanTableGUI\fetchData(), ilStudyProgrammeMembersTableGUI\fetchData(), ilStudyProgrammeProgressListGUI\fillTemplate(), ilStudyProgrammeDashboardViewGUI\findValid(), ilStudyProgrammeExpandableProgressListGUI\getAccordionContentCoursesHTML(), ilStudyProgrammeExpandableProgressListGUI\getAccordionContentHTML(), ilStudyProgrammeExpandableProgressListGUI\getAccordionContentProgressesHTML(), ilStudyProgrammeDashboardViewGUI\getHTML(), ilPDStudyProgrammeSimpleListGUI\hasPermission(), ilStudyProgrammeDashboardViewGUI\hasPermission(), ilPDStudyProgrammeExpandableListGUI\new_ilStudyProgrammeAssignmentListGUI(), ilPDStudyProgrammeSimpleListGUI\new_ilStudyProgrammeAssignmentListGUI(), ilStudyProgrammeAppEventListener\onServiceUserDeleteUser(), ilPrgUpdateProgressCronJob\run(), ilPrgRestartAssignmentsCronJob\run(), sendInformToReAssignMail(), sendRiskyToFailMail(), ilStudyProgrammeExpandableProgressListGUI\shouldShowSubProgress(), and ilObjStudyProgrammeIndividualPlanGUI\view().
|
static |
Definition at line 210 of file class.ilObjStudyProgramme.php.
Referenced by ilStudyProgrammeMembersTableGUI\__construct(), ilObjStudyProgrammeReferenceAccess\_checkAccess(), ilObjStudyProgrammeAccess\_checkAccess(), getChildren(), getCreatableSubObjects(), ilStudyProgrammeChangeExpireDateGUI\getObject(), ilObjStudyProgrammeAutoCategoriesGUI\getObject(), ilStudyProgrammeChangeDeadlineGUI\getObject(), ilObjStudyProgrammeSettingsGUI\getObject(), ilObjStudyProgrammeAutoMembershipsGUI\getObject(), ilObjStudyProgrammeReference\getParent(), getParent(), ilObjStudyProgrammeReference\getReferencedObject(), ilObjStudyProgrammeTreeExplorerGUI\getRootNode(), ilStudyProgrammeAppEventListener\getStudyProgramme(), ilObjStudyProgrammeMembersGUI\getStudyProgramme(), ilObjStudyProgrammeReference\putInTree(), putInTree(), ilObjStudyProgrammeMembersGUI\remove(), sendInvalidateMail(), sendReAssignedMail(), setProgressesCompletedIfParentIsProgrammeInLPCompletedMode(), ilObjStudyProgrammeIndividualPlanGUI\setRefId(), ilObjStudyProgrammeMembersGUI\setRefId(), ilObjStudyProgrammeTest\testDelete(), ilObjStudyProgrammeTest\testGetInstanceByRefId(), ilObjStudyProgrammeTest\testLoadByObjId(), ilObjStudyProgrammeTest\testSettings(), and ilStudyProgrammeType\updateAssignedStudyProgrammesIcons().
ilObjStudyProgramme::getLastChange | ( | ) |
Get the timestamp of the last change on this program or sub program.
Definition at line 365 of file class.ilObjStudyProgramme.php.
References getSettings().
ilObjStudyProgramme::getLocalMembers | ( | ) |
get usr_ids with assignment on this node
Definition at line 1179 of file class.ilObjStudyProgramme.php.
References $members_cache, and ilObject\getId().
|
protected |
Definition at line 2111 of file class.ilObjStudyProgramme.php.
Referenced by applyProgressDeadline(), and assignUser().
|
protected |
Definition at line 234 of file class.ilObjStudyProgramme.php.
Referenced by addMissingProgresses().
ilObjStudyProgramme::getLPChildren | ( | ) |
Get the leafs the study programme contains.
ilStudyProgrammeTreeException | when this object is not in tree. |
Definition at line 703 of file class.ilObjStudyProgramme.php.
References $lp_children, ilContainerSorting\_getInstance(), ilObject\getId(), ilObject\getRefId(), and throwIfNotInTree().
Referenced by getAmountOfLPChildren(), and getLPChildrenIds().
ilObjStudyProgramme::getLPChildrenIds | ( | ) |
Get the obj-ids of the leafs the program contains.
ilStudyProgrammeTreeException |
Definition at line 735 of file class.ilObjStudyProgramme.php.
References getLPChildren().
ilObjStudyProgramme::getLPMode | ( | ) |
Definition at line 392 of file class.ilObjStudyProgramme.php.
References getSettings().
Referenced by addNode(), canBeCompleted(), and nodeInserted().
ilObjStudyProgramme::getMembers | ( | ) |
get usr_ids with any progress on this node
Definition at line 1168 of file class.ilObjStudyProgramme.php.
References getProgresses().
|
protected |
Get member-ids of a certain source.
InvalidArgumentException | if $src_type is not in AutoMembershipSource-types |
Definition at line 1605 of file class.ilObjStudyProgramme.php.
Referenced by enableAutomaticMembershipSource(), and getApplicableMembershipSourceForUser().
ilObjStudyProgramme::getNamesOfCompletedOrAccreditedChildren | ( | int | $ass_id | ) |
Definition at line 2100 of file class.ilObjStudyProgramme.php.
References ilObject\$ref_id, ilObject\_lookupTitle(), and getIdsOfSuccessfulChildren().
|
protected |
Definition at line 2116 of file class.ilObjStudyProgramme.php.
Referenced by applyProgressDeadline(), changeAmountOfPoints(), changeProgressDeadline(), changeProgressValidityDate(), markAccredited(), markFailed(), markNotFailed(), markNotRelevant(), markRelevant(), resetProgressToSettings(), succeed(), and unmarkAccredited().
|
protected |
Definition at line 2132 of file class.ilObjStudyProgramme.php.
References $nd.
Referenced by getChildrenProgress().
ilObjStudyProgramme::getParent | ( | ) |
Get the parent ilObjStudyProgramme of this object.
Returns null if parent is no StudyProgramme.
ilException | when this object is not in tree. |
Definition at line 574 of file class.ilObjStudyProgramme.php.
References $parent, getInstanceByRefId(), ilObject\getRefId(), and throwIfNotInTree().
Referenced by moveTo(), removeNode(), and updateLastChange().
|
staticprotected |
Get the obj id of the parent object for the given object.
Returns null if object is not in the tree currently.
Definition at line 1794 of file class.ilObjStudyProgramme.php.
References $DIC, $nd, $tree, and ilObject\getRefId().
|
protected |
Definition at line 2171 of file class.ilObjStudyProgramme.php.
References ilObject\_getAllReferences(), ilContainerReference\_lookupSourceIds(), ilStudyProgrammeProgress\getAssignmentId(), ilStudyProgrammeProgress\getNodeId(), and getRefIdFor().
Referenced by markNotRelevant(), and updateParentProgress().
ilObjStudyProgramme::getParents | ( | bool | $include_references = false | ) |
Get all parents of the node, where the root of the program comes first.
Definition at line 618 of file class.ilObjStudyProgramme.php.
References $parent, and getReferencesTo().
Referenced by getIdsFromNodesOnPathFromRootToHere(), and getRoot().
ilObjStudyProgramme::getPoints | ( | ) |
Get the amount of points.
Definition at line 373 of file class.ilObjStudyProgramme.php.
References getSettings().
Referenced by ilStudyProgrammeDashboardViewGUI\calculatePercent(), and resetProgressToSettings().
ilObjStudyProgramme::getPossiblePointsOfRelevantChildren | ( | ilStudyProgrammeProgress | $progress | ) |
Definition at line 2207 of file class.ilObjStudyProgramme.php.
References getChildrenProgress().
Referenced by canBeCompleted().
|
protected |
Definition at line 200 of file class.ilObjStudyProgramme.php.
Referenced by updatePlanFromRepository().
|
protected |
Definition at line 2126 of file class.ilObjStudyProgramme.php.
References ilStudyProgrammeProgress\getNodeId().
|
staticprotected |
Get all StudyProgrammes monitoring this category.
Definition at line 1492 of file class.ilObjStudyProgramme.php.
References $db, ilObject\_getAllReferences(), and ilStudyProgrammeDIC\dic().
|
staticprotected |
Get all StudyProgrammes monitoring this membership-source.
Definition at line 1616 of file class.ilObjStudyProgramme.php.
References $db, ilObject\_getAllReferences(), and ilStudyProgrammeDIC\dic().
ilObjStudyProgramme::getProgresses | ( | ) |
Get all progresses on this node.
Definition at line 1308 of file class.ilObjStudyProgramme.php.
References ilObject\getId().
Referenced by canBeRemoved(), getIdsOfUsersWithCompletedProgress(), getIdsOfUsersWithFailedProgress(), getIdsOfUsersWithNotCompletedAndRelevantProgress(), getIdsOfUsersWithRelevantProgress(), getMembers(), hasProgresses(), and hasRelevantProgresses().
ilObjStudyProgramme::getProgressesOf | ( | int | $a_user_id | ) |
Get the progresses the user has on this node.
int | $a_user_id |
Definition at line 1250 of file class.ilObjStudyProgramme.php.
References ilObject\getId().
Referenced by ilStudyProgrammeMailTemplateContext\getNewestProgressForUser().
ilObjStudyProgramme::getProgressForAssignment | ( | int | $assignment_id | ) |
Definition at line 1255 of file class.ilObjStudyProgramme.php.
References ilObject\getId(), and getProgressRepository().
|
protected |
Definition at line 2745 of file class.ilObjStudyProgramme.php.
References ilObjUser\_lookupFullname(), ilStudyProgrammeProgress\getId(), and ilStudyProgrammeProgress\getUserId().
Referenced by changeAmountOfPoints(), changeProgressDeadline(), changeProgressValidityDate(), markAccredited(), markNotRelevant(), markRelevant(), and unmarkAccredited().
|
protected |
Definition at line 218 of file class.ilObjStudyProgramme.php.
References $progress_repository.
Referenced by addMissingProgresses(), assignUser(), changeAmountOfPoints(), changeProgressDeadline(), changeProgressValidityDate(), deleteAssignmentsAndProgresses(), getChildrenProgress(), getProgressForAssignment(), invalidate(), markAccredited(), markFailed(), markNotFailed(), markNotRelevant(), markRelevant(), succeed(), unmarkAccredited(), updateParentProgress(), and updatePlanFromRepository().
|
protected |
Definition at line 588 of file class.ilObjStudyProgramme.php.
References ilObject\$id, $tree, ilObject\_getAllReferences(), ilContainerReference\_lookupSourceIds(), and ilObject\getId().
Referenced by getParents(), and getReferencesToSelf().
ilObjStudyProgramme::getReferencesToSelf | ( | ) |
Definition at line 608 of file class.ilObjStudyProgramme.php.
References getReferencesTo().
|
static |
Definition at line 191 of file class.ilObjStudyProgramme.php.
References ilObject\_getAllReferences().
Referenced by getParentProgress(), ilStudyProgrammeMailMemberSearchGUI\getRootPrgRefId(), ilObjStudyProgrammeMembersGUI\remove(), and ilStudyProgrammeEvents\userReAssigned().
ilObjStudyProgramme::getRoot | ( | ) |
Get the ilObjStudyProgramme that is the root node of the tree this programme is in.
Definition at line 688 of file class.ilObjStudyProgramme.php.
References getParents().
ilObjStudyProgramme::getSettings | ( | ) |
Definition at line 257 of file class.ilObjStudyProgramme.php.
References ilObject\getId(), and getSettingsRepository().
Referenced by addLeaf(), adjustLPMode(), ilObjStudyProgrammeSettingsGUI\buildForm(), createProgressForAssignment(), deleteSettings(), ilStudyProgrammeChangeDeadlineGUI\getDeadlineSubForm(), getLastChange(), getLPMode(), getPoints(), getStatus(), getSubType(), ilStudyProgrammeChangeExpireDateGUI\getValidityOfQualificationSubForm(), hasAdvancedMetadata(), isAutoContentApplicable(), nodeInserted(), setPoints(), setStatus(), update(), updateLastChange(), updateProgressDeadlineFromSettings(), and updateProgressValidityFromSettings().
|
protected |
Definition at line 226 of file class.ilObjStudyProgramme.php.
References $settings_repository.
Referenced by addMissingProgresses(), create(), deleteSettings(), getSettings(), recalculateProgressStatus(), and updateSettings().
ilObjStudyProgramme::getStatus | ( | ) |
Definition at line 430 of file class.ilObjStudyProgramme.php.
References getSettings().
Referenced by assignUser(), ilStudyProgrammeIndividualPlanProgressListGUI\getTitleForItem(), isActive(), and isAutoContentApplicable().
ilObjStudyProgramme::getSubType | ( | ) |
Gets the SubType Object.
Definition at line 459 of file class.ilObjStudyProgramme.php.
References getSettings().
Referenced by updateCustomIcon().
|
protected |
Definition at line 230 of file class.ilObjStudyProgramme.php.
References $tree.
Referenced by getIdsOfSuccessfulChildren().
ilObjStudyProgramme::hasAdvancedMetadata | ( | ) |
Definition at line 348 of file class.ilObjStudyProgramme.php.
References ilObject\$type, and getSettings().
ilObjStudyProgramme::hasAssignmentOf | ( | int | $a_user_id | ) |
Check whether user is assigned to this program or any node above.
Definition at line 1108 of file class.ilObjStudyProgramme.php.
References getAmountOfAssignmentsOf().
ilObjStudyProgramme::hasAssignments | ( | ) |
Are there any assignments on this node or any node above?
Definition at line 1195 of file class.ilObjStudyProgramme.php.
References getAssignments().
ilObjStudyProgramme::hasAssignmentsOfSingleProgramForUser | ( | int | $usr_id | ) |
Get assignments of user to this program-node only.
Definition at line 1226 of file class.ilObjStudyProgramme.php.
References getAssignmentsOfSingleProgramForUser().
ilObjStudyProgramme::hasAutomaticContentCategories | ( | ) |
Definition at line 1414 of file class.ilObjStudyProgramme.php.
References getAutomaticContentCategories().
ilObjStudyProgramme::hasChildren | ( | bool | $include_references = false | ) |
Does this StudyProgramme have other ilObjStudyProgrammes as children?
ilStudyProgrammeTreeException |
Definition at line 650 of file class.ilObjStudyProgramme.php.
References getAmountOfChildren().
Referenced by addLeaf().
ilObjStudyProgramme::hasLPChildren | ( | ) |
Definition at line 752 of file class.ilObjStudyProgramme.php.
References getAmountOfLPChildren().
Referenced by ilStudyProgrammeDashboardViewGUI\calculatePercent(), and isAutoContentApplicable().
ilObjStudyProgramme::hasProgresses | ( | ) |
Are there any users that have a progress on this programme?
Definition at line 1316 of file class.ilObjStudyProgramme.php.
References getProgresses().
ilObjStudyProgramme::hasRelevantProgresses | ( | ) |
Are there any users that have a relevant progress on this programme?
Definition at line 1324 of file class.ilObjStudyProgramme.php.
References getProgresses().
|
static |
Definition at line 159 of file class.ilObjStudyProgramme.php.
References ilObjStudyProgrammeCache\singleton().
ilObjStudyProgramme::invalidate | ( | int | $progress_id | ) |
Definition at line 2491 of file class.ilObjStudyProgramme.php.
References getProgressRepository(), refreshLPStatus(), and updateParentProgress().
ilObjStudyProgramme::isActive | ( | ) |
Definition at line 449 of file class.ilObjStudyProgramme.php.
References getStatus(), and ilStudyProgrammeSettings\STATUS_ACTIVE.
Referenced by updateProgressRelevanceFromSettings().
ilObjStudyProgramme::isAutoContentApplicable | ( | ) |
AutoContent should only be available in active- or draft-mode, and only, if there is no sub-programme.
ilStudyProgrammeTreeException |
Definition at line 1515 of file class.ilObjStudyProgramme.php.
References getAmountOfChildren(), getSettings(), getStatus(), hasLPChildren(), ilStudyProgrammeSettings\STATUS_ACTIVE, and ilStudyProgrammeSettings\STATUS_DRAFT.
ilObjStudyProgramme::markAccredited | ( | int | $progress_id, |
int | $acting_usr_id, | ||
ilPRGMessageCollection | $err_collection | ||
) |
Definition at line 2340 of file class.ilObjStudyProgramme.php.
References ilPRGMessageCollection\add(), getNow(), getProgressIdString(), getProgressRepository(), refreshLPStatus(), updateParentProgress(), and updateProgressValidityFromSettings().
ilObjStudyProgramme::markFailed | ( | int | $progress_id, |
int | $acting_usr_id | ||
) |
Definition at line 2415 of file class.ilObjStudyProgramme.php.
References getNow(), getProgressRepository(), refreshLPStatus(), and updateParentProgress().
ilObjStudyProgramme::markNotFailed | ( | int | $progress_id, |
int | $acting_usr_id | ||
) |
Definition at line 2428 of file class.ilObjStudyProgramme.php.
References getNow(), getProgressRepository(), refreshLPStatus(), and updateParentProgress().
ilObjStudyProgramme::markNotRelevant | ( | int | $progress_id, |
int | $acting_usr_id, | ||
ilPRGMessageCollection | $err_collection | ||
) |
Definition at line 2441 of file class.ilObjStudyProgramme.php.
References ilPRGMessageCollection\add(), getNow(), getParentProgress(), getProgressIdString(), getProgressRepository(), refreshLPStatus(), ilStudyProgrammeProgress\STATUS_COMPLETED, and updateParentProgress().
ilObjStudyProgramme::markRelevant | ( | int | $progress_id, |
int | $acting_usr_id, | ||
ilPRGMessageCollection | $err_collection | ||
) |
Definition at line 2469 of file class.ilObjStudyProgramme.php.
References ilPRGMessageCollection\add(), getNow(), getProgressIdString(), getProgressRepository(), recalculateProgressStatus(), refreshLPStatus(), and updateParentProgress().
ilObjStudyProgramme::moveTo | ( | ilObjStudyProgramme | $a_new_parent | ) |
Move this tree node to a new parent.
Throws when manipulation of tree is not allowed due to invariants that need to hold on the tree.
ilStudyProgrammeTreeException | |
ilException |
Definition at line 1004 of file class.ilObjStudyProgramme.php.
References $DIC, $parent, ilObject\$rbacadmin, clearChildrenCache(), clearLPChildrenCache(), clearParentCache(), getParent(), and ilObject\getRefId().
ilObjStudyProgramme::nodeInserted | ( | ilObjStudyProgramme | $a_prg | ) |
Clears child chache and adds progress for new node.
called by ilObjStudyProgrammeReference::putInTree, e.g.
ilStudyProgrammeTreeException | |
ilException |
Definition at line 862 of file class.ilObjStudyProgramme.php.
References addMissingProgresses(), clearChildrenCache(), getLPMode(), getSettings(), ilStudyProgrammeSettings\MODE_LP_COMPLETED, and ilStudyProgrammeSettings\MODE_POINTS.
ilObjStudyProgramme::putInTree | ( | $a_parent_ref | ) |
Overwritten from ilObject.
Calls nodeInserted on parent object if parent object is another program.
int | $a_parent_ref |
ilStudyProgrammeTreeException | |
ilException |
Definition at line 887 of file class.ilObjStudyProgramme.php.
References $res, ilObject\_lookupType(), and getInstanceByRefId().
Referenced by addNode().
|
protected |
Definition at line 2249 of file class.ilObjStudyProgramme.php.
References $children, ilObject\_exists(), ilLPStatus\_hasUserCompleted(), ilObject\_lookupDeletedDate(), ilContainerReference\_lookupTargetId(), getAchievedPointsOfChildren(), ilStudyProgrammeProgress\getAmountOfPoints(), ilStudyProgrammeProgress\getNodeId(), getSettingsRepository(), ilStudyProgrammeProgress\getUserId(), ilStudyProgrammeProgress\isRelevant(), ilStudyProgrammeProgress\isSuccessful(), ilStudyProgrammeSettings\MODE_LP_COMPLETED, ilStudyProgrammeSettings\MODE_POINTS, ilStudyProgrammeSettings\MODE_UNDEFINED, ilStudyProgrammeProgress\STATUS_COMPLETED, ilStudyProgrammeProgress\STATUS_IN_PROGRESS, ilStudyProgrammeProgress\withCurrentAmountOfPoints(), and ilStudyProgrammeProgress\withStatus().
Referenced by changeAmountOfPoints(), markRelevant(), updateParentProgress(), and updatePlanFromRepository().
|
protected |
Definition at line 2230 of file class.ilObjStudyProgramme.php.
References ilLPStatusWrapper\_updateStatus(), and ilObject\getId().
Referenced by changeAmountOfPoints(), changeProgressDeadline(), changeProgressValidityDate(), invalidate(), markAccredited(), markFailed(), markNotFailed(), markNotRelevant(), markRelevant(), removeAssignment(), succeed(), unmarkAccredited(), and updatePlanFromRepository().
ilObjStudyProgramme::removeAssignment | ( | ilStudyProgrammeAssignment | $assignment | ) |
Remove an assignment from this program.
Throws when assignment doesn't have this program as root node.
ilException |
Definition at line 1083 of file class.ilObjStudyProgramme.php.
References ilStudyProgrammeAssignment\getId(), ilObject\getId(), ilStudyProgrammeAssignment\getRootId(), ilStudyProgrammeAssignment\getUserId(), and refreshLPStatus().
|
static |
Check, if a category is under surveilllance and automatically remove the deleted course.
ilStudyProgrammeTreeException |
Definition at line 1477 of file class.ilObjStudyProgramme.php.
Referenced by ilStudyProgrammeAppEventListener\removeCrsFromProgrammes().
ilObjStudyProgramme::removeLeaf | ( | ilStudyProgrammeLeaf | $a_leaf | ) |
Remove a leaf from this object.
Throws when leaf is not a child of this object. Throws when manipulation of tree is not allowed due to invariants that need to hold on the tree.
ilException | |
ilStudyProgrammeTreeException |
Definition at line 982 of file class.ilObjStudyProgramme.php.
References clearLPChildrenCache(), ilObject\getId(), and ilStudyProgrammeLeaf\getRefId().
|
static |
Definition at line 1642 of file class.ilObjStudyProgramme.php.
References $assignment_repository, ilStudyProgrammeDIC\dic(), ilStudyProgrammeAutoMembershipSource\SOURCE_MAPPING, and ilStudyProgrammeProgress\STATUS_IN_PROGRESS.
Referenced by ilStudyProgrammeAppEventListener\removeMemberFromProgrammes().
ilObjStudyProgramme::removeNode | ( | ilObjStudyProgramme | $a_prg | ) |
Remove a node from this object.
Throws when node is no child of the object. Throws when manipulation of tree is not allowed due to invariants that need to hold on the tree.
ilException | |
ilStudyProgrammeTreeException |
Definition at line 908 of file class.ilObjStudyProgramme.php.
References canBeRemoved(), clearChildrenCache(), clearParentCache(), ilObject\getId(), getParent(), and ilObject\getRefId().
|
protected |
Definition at line 2637 of file class.ilObjStudyProgramme.php.
References getNow(), getPoints(), ilStudyProgrammeProgress\isRelevant(), updateProgressDeadlineFromSettings(), updateProgressValidityFromSettings(), ilStudyProgrammeProgress\withAmountOfPoints(), ilStudyProgrammeProgress\withLastChange(), and ilStudyProgrammeProgress\withValidityOfQualification().
Referenced by assignUser().
|
static |
Definition at line 1960 of file class.ilObjStudyProgramme.php.
References $DIC, Vendor\Package\$e, ilObject\$lng, ilContainer\$log, $name, ilObjUser\_lookupFullname(), ilObjUser\_lookupGender(), ilObjUser\_lookupLogin(), ANONYMOUS_USER_ID, ilStudyProgrammeDIC\dic(), and getInstanceByObjId().
Referenced by ilStudyProgrammeAppEventListener\sendInformToReAssignMail().
|
static |
Definition at line 1923 of file class.ilObjStudyProgramme.php.
References $DIC, Vendor\Package\$e, ilObject\$lng, $name, ilObjUser\_lookupFullname(), ilObjUser\_lookupGender(), ilObjUser\_lookupLogin(), ANONYMOUS_USER_ID, and getInstanceByRefId().
|
static |
Definition at line 1880 of file class.ilObjStudyProgramme.php.
References $DIC, Vendor\Package\$e, ilObject\$lng, ilContainer\$log, $name, ilObjUser\_lookupFullname(), ilObjUser\_lookupGender(), ilObjUser\_lookupLogin(), ANONYMOUS_USER_ID, and getInstanceByRefId().
Referenced by ilStudyProgrammeAppEventListener\sendReAssignedMail().
|
static |
ilException |
Definition at line 2012 of file class.ilObjStudyProgramme.php.
References $DIC, Vendor\Package\$e, ilObject\$lng, ilContainer\$log, $name, ilObjUser\_lookupFullname(), ilObjUser\_lookupGender(), ilObjUser\_lookupLogin(), ANONYMOUS_USER_ID, ilStudyProgrammeDIC\dic(), and getInstanceByObjId().
Referenced by ilStudyProgrammeAppEventListener\sendRiskyToFailMail().
ilObjStudyProgramme::setPoints | ( | int | $a_points | ) |
Set the amount of points.
ilException |
Definition at line 383 of file class.ilObjStudyProgramme.php.
References getSettings(), and updateLastChange().
|
static |
Set all progresses to completed where the object with given id is a leaf and that belong to the user.
Definition at line 1745 of file class.ilObjStudyProgramme.php.
References ilObject\$ref_id, ilObject\$type, ilObject\_getAllReferences(), and ilObject\_lookupType().
Referenced by ilStudyProgrammeAppEventListener\onServiceTrackingUpdateStatus().
|
staticprotected |
ilException |
Definition at line 1759 of file class.ilObjStudyProgramme.php.
References $DIC, $tree, getInstanceByRefId(), ilStudyProgrammeSettings\MODE_LP_COMPLETED, and ilStudyProgrammeProgress\STATUS_IN_PROGRESS.
ilObjStudyProgramme::setStatus | ( | int | $a_status | ) |
Set the status of the node.
ilException |
Definition at line 440 of file class.ilObjStudyProgramme.php.
References getSettings(), and updateLastChange().
ilObjStudyProgramme::statusToRepr | ( | $a_status | ) |
Get a user readable representation of a status.
Definition at line 2722 of file class.ilObjStudyProgramme.php.
References ilObject\$lng, ilStudyProgrammeProgress\STATUS_ACCREDITED, ilStudyProgrammeProgress\STATUS_COMPLETED, ilStudyProgrammeProgress\STATUS_FAILED, ilStudyProgrammeProgress\STATUS_IN_PROGRESS, and ilStudyProgrammeProgress\STATUS_NOT_RELEVANT.
ilObjStudyProgramme::storeAutomaticContentCategory | ( | int | $category_ref_id | ) |
Store a Category with auto-content for this StudyProgramme; a category can only be referenced once (per programme).
Definition at line 1424 of file class.ilObjStudyProgramme.php.
References ilObject\getId().
ilObjStudyProgramme::storeAutomaticMembershipSource | ( | string | $type, |
int | $src_id | ||
) |
Store a source to be monitored for automatic memberships.
Definition at line 1550 of file class.ilObjStudyProgramme.php.
References ilObject\getId().
ilObjStudyProgramme::succeed | ( | int | $progress_id, |
int | $triggering_obj_id | ||
) |
Definition at line 2501 of file class.ilObjStudyProgramme.php.
References getNow(), getProgressRepository(), refreshLPStatus(), updateParentProgress(), and updateProgressValidityFromSettings().
|
protected |
ilStudyProgrammeTreeException | if object is not in tree. |
Definition at line 760 of file class.ilObjStudyProgramme.php.
Referenced by addLeaf(), addNode(), applyToSubTreeNodes(), getChildren(), getLPChildren(), and getParent().
ilObjStudyProgramme::unmarkAccredited | ( | int | $progress_id, |
int | $acting_usr_id, | ||
ilPRGMessageCollection | $err_collection | ||
) |
Definition at line 2377 of file class.ilObjStudyProgramme.php.
References ilPRGMessageCollection\add(), applyProgressDeadline(), getAchievedPointsOfChildren(), getNow(), getProgressIdString(), getProgressRepository(), refreshLPStatus(), and updateParentProgress().
ilObjStudyProgramme::update | ( | ) |
ilException |
Definition at line 303 of file class.ilObjStudyProgramme.php.
References ilObject\getId(), getSettings(), and ilAdvancedMDRecord\saveObjRecSelection().
Referenced by updateLastChange().
ilObjStudyProgramme::updateAllAssignments | ( | ) |
Update all assignments to this program node.
Definition at line 1203 of file class.ilObjStudyProgramme.php.
References getAssignmentRepository(), and ilObject\getId().
ilObjStudyProgramme::updateCustomIcon | ( | ) |
Definition at line 1807 of file class.ilObjStudyProgramme.php.
References ilObject\getId(), getSubType(), and ilObject\getType().
Referenced by ilObjStudyProgrammeSettingsGUI\buildForm().
|
protected |
Update last change timestamp on this node and its parents.
Definition at line 1694 of file class.ilObjStudyProgramme.php.
References $parent, getParent(), getSettings(), and update().
Referenced by setPoints(), and setStatus().
|
protected |
Definition at line 2238 of file class.ilObjStudyProgramme.php.
References getParentProgress(), getProgressRepository(), and recalculateProgressStatus().
Referenced by changeAmountOfPoints(), changeProgressDeadline(), invalidate(), markAccredited(), markFailed(), markNotFailed(), markNotRelevant(), markRelevant(), succeed(), unmarkAccredited(), and updatePlanFromRepository().
ilObjStudyProgramme::updatePlanFromRepository | ( | int | $progress_id, |
int | $acting_usr_id, | ||
ilPRGMessageCollection | $err_collection = null |
||
) |
Definition at line 2605 of file class.ilObjStudyProgramme.php.
References applyProgressDeadline(), getPrgInstanceByObjId(), getProgressRepository(), recalculateProgressStatus(), refreshLPStatus(), and updateParentProgress().
|
protected |
Definition at line 2694 of file class.ilObjStudyProgramme.php.
References getSettings().
Referenced by resetProgressToSettings().
|
protected |
Definition at line 2658 of file class.ilObjStudyProgramme.php.
References isActive(), ilStudyProgrammeProgress\STATUS_IN_PROGRESS, ilStudyProgrammeProgress\STATUS_NOT_RELEVANT, and ilStudyProgrammeProgress\withStatus().
|
protected |
Definition at line 2670 of file class.ilObjStudyProgramme.php.
References ilStudyProgrammeProgress\getCompletionDate(), and getSettings().
Referenced by markAccredited(), resetProgressToSettings(), and succeed().
ilObjStudyProgramme::updateSettings | ( | ilStudyProgrammeSettings | $settings | ) |
Definition at line 262 of file class.ilObjStudyProgramme.php.
References ilObject\getId(), ilStudyProgrammeSettings\getObjId(), and getSettingsRepository().
Referenced by ilObjStudyProgrammeSettingsGUI\buildForm().
|
protected |
Definition at line 30 of file class.ilObjStudyProgramme.php.
Referenced by addMissingProgresses(), deleteAssignmentsAndProgresses(), getAssignmentRepository(), getAssignments(), getAssignmentsOf(), and removeMemberFromProgrammes().
|
protected |
Definition at line 40 of file class.ilObjStudyProgramme.php.
|
protected |
Definition at line 45 of file class.ilObjStudyProgramme.php.
|
protected |
Definition at line 15 of file class.ilObjStudyProgramme.php.
Referenced by getAchievedPointsOfChildren(), getChildren(), getChildrenProgress(), getIdsOfSuccessfulChildren(), and recalculateProgressStatus().
|
protected |
Definition at line 113 of file class.ilObjStudyProgramme.php.
|
protected |
Definition at line 77 of file class.ilObjStudyProgramme.php.
Referenced by getProgrammesMonitoringCategory(), and getProgrammesMonitoringMemberSource().
|
protected |
Definition at line 55 of file class.ilObjStudyProgramme.php.
ilObjStudyProgramme::$ilUser |
Definition at line 72 of file class.ilObjStudyProgramme.php.
Referenced by __construct().
|
protected |
Definition at line 20 of file class.ilObjStudyProgramme.php.
Referenced by getLPChildren().
|
protected |
Definition at line 108 of file class.ilObjStudyProgramme.php.
Referenced by getLocalMembers().
|
protected |
Definition at line 50 of file class.ilObjStudyProgramme.php.
ilObjStudyProgramme::$object_factory |
Definition at line 93 of file class.ilObjStudyProgramme.php.
|
protected |
Definition at line 10 of file class.ilObjStudyProgramme.php.
Referenced by getCreatableSubObjects(), getParent(), getParents(), moveTo(), and updateLastChange().
|
protected |
Definition at line 82 of file class.ilObjStudyProgramme.php.
|
protected |
Definition at line 35 of file class.ilObjStudyProgramme.php.
Referenced by addMissingProgresses(), deleteAssignmentsAndProgresses(), and getProgressRepository().
|
protected |
Definition at line 98 of file class.ilObjStudyProgramme.php.
|
protected |
Definition at line 87 of file class.ilObjStudyProgramme.php.
Referenced by addMissingProgresses(), and getSettingsRepository().
|
static |
Definition at line 103 of file class.ilObjStudyProgramme.php.
ilObjStudyProgramme::$tree |
Definition at line 67 of file class.ilObjStudyProgramme.php.
Referenced by __construct(), getParentId(), getReferencesTo(), getTree(), and setProgressesCompletedIfParentIsProgrammeInLPCompletedMode().
|
protected |
Definition at line 25 of file class.ilObjStudyProgramme.php.
ilObjStudyProgramme::$webdir |
Definition at line 62 of file class.ilObjStudyProgramme.php.