ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
|
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... | |
read () | |
create () | |
update () | |
delete () | |
Delete Study Programme and all related data. More... | |
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... | |
getTypeSettings () | |
setTypeSettings (\ilStudyProgrammeTypeSettings $type_settings) | |
getAssessmentSettings () | |
setAssessmentSettings (\ilStudyProgrammeAssessmentSettings $assessment_settings) | |
getDeadlineSettings () | |
setDeadlineSettings (\ilStudyProgrammeDeadlineSettings $deadline_settings) | |
getValidityOfQualificationSettings () | |
setValidityOfQualificationSettings (\ilStudyProgrammeValidityOfAchievedQualificationSettings $validity_of_qualification_settings) | |
getAccessControlByOrguPositionsGlobal () | |
getPositionSettingsIsActiveForPrg () | |
getPositionSettingsIsChangeableForPrg () | |
getAutoMailSettings () | |
setAutoMailSettings (\ilStudyProgrammeAutoMailSettings $automail_settings) | |
shouldSendReAssignedMail () | |
shouldSendInfoToReAssignMail () | |
shouldSendRiskyToFailMail () | |
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 ids of the leafs the program contains. More... | |
getAmountOfLPChildren () | |
Get the amount of leafs, the study programme contains. More... | |
hasLPChildren () | |
Does this StudyProgramme has leafs? More... | |
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 $a_usr_id, int $a_assigning_usr_id=null) | |
Assign a user to this node at the study program. More... | |
removeAssignment (ilStudyProgrammeUserAssignment $a_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 () | |
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) | |
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 $a_assignment_id) | |
Get the progress for an assignment on this node. More... | |
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) | |
Enable a membership source. More... | |
getApplicableMembershipSourceForUser (int $usr_id, string $exclude_type) | |
getRawSettings () | |
Get the underlying model of this program. 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... | |
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 | 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 | sendInvalidateMail (int $ref_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 | 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... | |
readSettings () | |
Load Settings from DB. More... | |
createSettings () | |
Create new settings object. More... | |
updateSettings () | |
Update settings in DB. More... | |
deleteSettings () | |
Delete settings from DB. More... | |
deleteAssignments () | |
Delete all assignments from the DB. More... | |
getReferencesTo (ilObjStudyProgramme $prg) | |
throwIfNotInTree () | |
Helper function to check, weather object is in tree. More... | |
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... | |
getLog () | |
![]() | |
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 | |
$settings | |
$parent | |
$children | |
$lp_children | |
$type_repository | |
$assignment_repository | |
$progress_repository | |
$auto_categories_repository | |
$auto_memberships_repository | |
$membersourcereader_factory | |
$progress_db | |
$assignment_db | |
$events | |
$db | |
$plugin_admin | |
$settings_repository | |
$ps | |
$reference_children = [] | |
$members_cache | |
![]() | |
$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 7 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 136 of file class.ilObjStudyProgramme.php.
References $DIC, $ilUser, $tree, ILIAS\GlobalScreen\Provider\__construct(), clearChildrenCache(), clearLPChildrenCache(), clearParentCache(), ilStudyProgrammeDIC\dic(), settings(), and ilObjectFactoryWrapper\singleton().
|
static |
Check, if a category is under surveilllance and automatically add the course.
Definition at line 1573 of file class.ilObjStudyProgramme.php.
References ilObject\_lookupObjectId(), 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 1062 of file class.ilObjStudyProgramme.php.
References clearLPChildrenCache(), ilStudyProgrammeLeaf\createReference(), ilStudyProgrammeLeaf\getRefId(), ilObject\getRefId(), hasChildren(), ilStudyProgrammeSettings\MODE_LP_COMPLETED, ilStudyProgrammeLeaf\putInTree(), settings(), and throwIfNotInTree().
|
static |
Definition at line 1746 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.
ilStudyProgrammeUserAssignment[]
Definition at line 1392 of file class.ilObjStudyProgramme.php.
References Vendor\Package\$e, ilObject\$id, ilContainer\$log, $progress_repository, applyToSubTreeNodes(), getAssignments(), getLog(), setStatus(), 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 946 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 433 of file class.ilObjStudyProgramme.php.
References getAmountOfChildren(), getAmountOfLPChildren(), ilStudyProgrammeSettings\MODE_LP_COMPLETED, ilStudyProgrammeSettings\MODE_POINTS, ilStudyProgrammeSettings\MODE_UNDEFINED, and settings().
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 892 of file class.ilObjStudyProgramme.php.
References getChildren(), and throwIfNotInTree().
Referenced by addMissingProgresses(), assignUser(), and getAllPrgChildren().
ilObjStudyProgramme::assignUser | ( | int | $a_usr_id, |
int | $a_assigning_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 1155 of file class.ilObjStudyProgramme.php.
References applyToSubTreeNodes(), createProgressForAssignment(), getDeadlineSettings(), ilObject\getId(), getStatus(), settings(), ilStudyProgrammeSettings\STATUS_ACTIVE, and ilStudyProgrammeProgress\STATUS_NOT_RELEVANT.
Referenced by enableAutomaticMembershipSource().
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 1040 of file class.ilObjStudyProgramme.php.
References getProgresses(), and ilStudyProgrammeProgress\STATUS_NOT_RELEVANT.
Referenced by removeNode().
|
protected |
Clear the cached children.
Definition at line 200 of file class.ilObjStudyProgramme.php.
Referenced by __construct(), moveTo(), nodeInserted(), and removeNode().
|
protected |
Clear the cached lp children.
Definition at line 208 of file class.ilObjStudyProgramme.php.
Referenced by __construct(), addLeaf(), moveTo(), and removeLeaf().
|
protected |
Clear the cached parent to query it again at the tree.
Definition at line 191 of file class.ilObjStudyProgramme.php.
Referenced by __construct(), moveTo(), and removeNode().
ilObjStudyProgramme::create | ( | ) |
ilException |
Definition at line 330 of file class.ilObjStudyProgramme.php.
References ilObject\$id, and createSettings().
|
static |
Create an instance of ilObjStudyProgramme, put in cache.
ilException |
Definition at line 226 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 | ) |
Create a progress on this programme for the given assignment.
Definition at line 1357 of file class.ilObjStudyProgramme.php.
References settings().
Referenced by assignUser().
|
protected |
Create new settings object.
Throws when settings are already loaded or id is null.
ilException | if settings are already created |
ilException | if there is no oid to create settings |
Definition at line 265 of file class.ilObjStudyProgramme.php.
References ilObject\$id, ilObject\getId(), and settings().
Referenced by create().
ilObjStudyProgramme::delete | ( | ) |
Delete Study Programme and all related data.
ilException |
Definition at line 364 of file class.ilObjStudyProgramme.php.
References Vendor\Package\$e, deleteAllAutomaticContentCategories(), deleteAllAutomaticMembershipSources(), deleteAssignments(), deleteSettings(), and ilObject\getId().
ilObjStudyProgramme::deleteAllAutomaticContentCategories | ( | ) |
Delete all configuration of categories with auto-content for this StudyProgramme;.
Definition at line 1565 of file class.ilObjStudyProgramme.php.
References ilObject\getId().
Referenced by delete().
ilObjStudyProgramme::deleteAllAutomaticMembershipSources | ( | ) |
Delete all membership sources of this StudyProgramme;.
Definition at line 1683 of file class.ilObjStudyProgramme.php.
References ilObject\getId().
Referenced by delete().
|
protected |
Delete all assignments from the DB.
ilException |
Definition at line 311 of file class.ilObjStudyProgramme.php.
References getAssignments().
Referenced by delete().
ilObjStudyProgramme::deleteAutomaticContentCategories | ( | array | $category_ids = [] | ) |
Delete configuration of categories with auto-content for this StudyProgramme;.
int[] | $category_ids |
Definition at line 1557 of file class.ilObjStudyProgramme.php.
References ilObject\getId().
ilObjStudyProgramme::deleteAutomaticMembershipSource | ( | string | $type, |
int | $src_id | ||
) |
Delete a membership source.
Definition at line 1675 of file class.ilObjStudyProgramme.php.
References ilObject\getId().
|
protected |
Delete settings from DB.
Throws when settings are not loaded.
ilException | if no settings are loaded |
Definition at line 298 of file class.ilObjStudyProgramme.php.
References settings().
Referenced by delete().
ilObjStudyProgramme::disableAutomaticMembershipSource | ( | string | $type, |
int | $src_id | ||
) |
Disable a membership source.
Definition at line 1691 of file class.ilObjStudyProgramme.php.
References ilObject\getId().
ilObjStudyProgramme::enableAutomaticMembershipSource | ( | string | $type, |
int | $src_id | ||
) |
Enable a membership source.
ilException |
Definition at line 1701 of file class.ilObjStudyProgramme.php.
References ilObject\$type, assignUser(), getAssignmentsOfSingleProgramForUser(), ilObject\getId(), getMembersOfMembershipSource(), and ilStudyProgrammeAutoMembershipSource\SOURCE_MAPPING.
ilObjStudyProgramme::getAccessControlByOrguPositionsGlobal | ( | ) |
Definition at line 534 of file class.ilObjStudyProgramme.php.
References getPositionSettingsIsActiveForPrg(), and getPositionSettingsIsChangeableForPrg().
|
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 589 of file class.ilObjStudyProgramme.php.
References $ret, and ilObject\getId().
Referenced by ilObjStudyProgrammeTreeGUI\confirmedDelete(), ilObjStudyProgrammeTest\testMoveTo(), and ilObjStudyProgrammeTest\testTreeGetChildren().
ilObjStudyProgramme::getAllPrgChildren | ( | ) |
Definition at line 604 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 1247 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 768 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 853 of file class.ilObjStudyProgramme.php.
References getLPChildren().
Referenced by adjustLPMode(), and hasLPChildren().
ilObjStudyProgramme::getApplicableMembershipSourceForUser | ( | int | $usr_id, |
string | $exclude_type | ||
) |
Definition at line 1786 of file class.ilObjStudyProgramme.php.
References getAutomaticMembershipSources(), and getMembersOfMembershipSource().
ilObjStudyProgramme::getAssessmentSettings | ( | ) |
Definition at line 500 of file class.ilObjStudyProgramme.php.
References settings().
Referenced by ilObjStudyProgrammeSettingsGUI\buildFormElements(), getStatus(), setPoints(), and setStatus().
ilObjStudyProgramme::getAssignments | ( | ) |
Get all assignments to this program or any node above.
Definition at line 1286 of file class.ilObjStudyProgramme.php.
References $assignment_db, and getAssignmentsRaw().
Referenced by addMissingProgresses(), deleteAssignments(), and 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 1259 of file class.ilObjStudyProgramme.php.
References $assignment_db, and getIdsFromNodesOnPathFromRootToHere().
Referenced by getAmountOfAssignmentsOf().
ilObjStudyProgramme::getAssignmentsOfSingleProgramForUser | ( | int | $usr_id | ) |
Get assignments of user to this program-node only.
Definition at line 1336 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 1836 of file class.ilObjStudyProgramme.php.
References getIdsFromNodesOnPathFromRootToHere(), and ilStudyProgrammeAssignment\getLastChange().
Referenced by getAssignments().
ilObjStudyProgramme::getAutoMailSettings | ( | ) |
Definition at line 552 of file class.ilObjStudyProgramme.php.
References settings().
Referenced by ilObjStudyProgrammeSettingsGUI\buildFormElements(), shouldSendInfoToReAssignMail(), shouldSendReAssignedMail(), and shouldSendRiskyToFailMail().
ilObjStudyProgramme::getAutomaticContentCategories | ( | ) |
Get configuration of categories with auto-content for this StudyProgramme;.
Definition at line 1529 of file class.ilObjStudyProgramme.php.
References ilObject\getId().
Referenced by hasAutomaticContentCategories().
ilObjStudyProgramme::getAutomaticMembershipSources | ( | ) |
Get sources for auto-memberships.
Definition at line 1658 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 626 of file class.ilObjStudyProgramme.php.
References $children, $data, ilContainerSorting\_getInstance(), ilObject\getId(), getInstanceByRefId(), ilObject\getRefId(), and throwIfNotInTree().
Referenced by applyToSubTreeNodes(), and getAmountOfChildren().
ilObjStudyProgramme::getCompletedCourses | ( | int | $a_user_id | ) |
Get courses in this program that the given user already completed.
Definition at line 908 of file class.ilObjStudyProgramme.php.
References ilLPStatus\_hasUserCompleted(), ilContainerReference\_lookupTargetId(), ilContainerReference\_lookupTargetTitle(), 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 1971 of file class.ilObjStudyProgramme.php.
References $DIC, Vendor\Package\$e, ilObject\$lng, ilContainer\$log, $name, $parent, ilObject\$ref_id, ilObjUser\_lookupFullname(), ilObjUser\_lookupGender(), ilObjUser\_lookupLogin(), 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::getDeadlineSettings | ( | ) |
Definition at line 511 of file class.ilObjStudyProgramme.php.
References settings().
Referenced by assignUser(), ilObjStudyProgrammeSettingsGUI\buildFormElements(), and ilStudyProgrammeChangeDeadlineGUI\getDeadlineSubForm().
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 780 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 1822 of file class.ilObjStudyProgramme.php.
References ilObject\getId(), and getParents().
Referenced by getAssignmentsOf(), and getAssignmentsRaw().
ilObjStudyProgramme::getIdsOfUsersWithCompletedProgress | ( | ) |
Get the ids of all users that have completed this programme.
Definition at line 1473 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 1490 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 1509 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 1457 of file class.ilObjStudyProgramme.php.
References getProgresses().
|
static |
Definition at line 213 of file class.ilObjStudyProgramme.php.
Referenced by ilStudyProgrammeMembersTableGUI\__construct(), ilObjStudyProgrammeReferenceAccess\_checkAccess(), ilObjStudyProgrammeAccess\_checkAccess(), getChildren(), getCreatableSubObjects(), ilObjStudyProgrammeAutoCategoriesGUI\getObject(), ilStudyProgrammeChangeExpireDateGUI\getObject(), ilStudyProgrammeChangeDeadlineGUI\getObject(), ilObjStudyProgrammeSettingsGUI\getObject(), ilObjStudyProgrammeAutoMembershipsGUI\getObject(), ilObjStudyProgrammeReference\getParent(), getParent(), ilObjStudyProgrammeReference\getReferencedObject(), ilObjStudyProgrammeTreeExplorerGUI\getRootNode(), ilStudyProgrammeUserAssignment\getStudyProgramme(), ilStudyProgrammeUserProgress\getStudyProgramme(), ilStudyProgrammeAppEventListener\getStudyProgramme(), ilObjStudyProgrammeMembersGUI\getStudyProgramme(), ilObjStudyProgrammeReference\putInTree(), putInTree(), sendInvalidateMail(), setProgressesCompletedIfParentIsProgrammeInLPCompletedMode(), 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 393 of file class.ilObjStudyProgramme.php.
References settings().
|
protected |
Definition at line 2097 of file class.ilObjStudyProgramme.php.
References ilLoggerFactory\getLogger().
Referenced by addMissingProgresses().
ilObjStudyProgramme::getLPChildren | ( | ) |
Get the leafs the study programme contains.
ilStudyProgrammeTreeException | when this object is not in tree. |
Definition at line 808 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 ids of the leafs the program contains.
ilStudyProgrammeTreeException |
Definition at line 841 of file class.ilObjStudyProgramme.php.
References getLPChildren().
ilObjStudyProgramme::getLPMode | ( | ) |
Definition at line 420 of file class.ilObjStudyProgramme.php.
References settings().
Referenced by addNode(), and nodeInserted().
ilObjStudyProgramme::getMembers | ( | ) |
Definition at line 1297 of file class.ilObjStudyProgramme.php.
References $members_cache, and ilObject\getId().
Referenced by ilStudyProgrammePositionBasedAccess\getUsersInPrgAccessibleForOperation().
|
protected |
Get member-ids of a certain source.
InvalidArgumentException | if $src_type is not in AutoMembershipSource-types |
Definition at line 1720 of file class.ilObjStudyProgramme.php.
Referenced by enableAutomaticMembershipSource(), and getApplicableMembershipSourceForUser().
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 680 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 1907 of file class.ilObjStudyProgramme.php.
References $DIC, $nd, $tree, and ilObject\getRefId().
ilObjStudyProgramme::getParents | ( | bool | $include_references = false | ) |
Get all parents of the node, where the root of the program comes first.
Definition at line 724 of file class.ilObjStudyProgramme.php.
References $parent, and getReferencesTo().
Referenced by getIdsFromNodesOnPathFromRootToHere(), and getRoot().
ilObjStudyProgramme::getPoints | ( | ) |
Get the amount of points.
Definition at line 401 of file class.ilObjStudyProgramme.php.
References settings().
Referenced by ilStudyProgrammeDashboardViewGUI\calculatePercent().
ilObjStudyProgramme::getPositionSettingsIsActiveForPrg | ( | ) |
Definition at line 542 of file class.ilObjStudyProgramme.php.
Referenced by getAccessControlByOrguPositionsGlobal().
ilObjStudyProgramme::getPositionSettingsIsChangeableForPrg | ( | ) |
Definition at line 547 of file class.ilObjStudyProgramme.php.
Referenced by getAccessControlByOrguPositionsGlobal().
|
staticprotected |
Get all StudyProgrammes monitoring this category.
Definition at line 1608 of file class.ilObjStudyProgramme.php.
References $db, ilObject\_getAllReferences(), and ilStudyProgrammeDIC\dic().
|
staticprotected |
Get all StudyProgrammes monitoring this membership-source.
Definition at line 1731 of file class.ilObjStudyProgramme.php.
References $db, ilObject\_getAllReferences(), and ilStudyProgrammeDIC\dic().
ilObjStudyProgramme::getProgresses | ( | ) |
Get all progresses on this node.
Definition at line 1426 of file class.ilObjStudyProgramme.php.
References ilObject\getId().
Referenced by canBeRemoved(), getIdsOfUsersWithCompletedProgress(), getIdsOfUsersWithFailedProgress(), getIdsOfUsersWithNotCompletedAndRelevantProgress(), getIdsOfUsersWithRelevantProgress(), 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 1368 of file class.ilObjStudyProgramme.php.
References ilObject\getId().
Referenced by ilStudyProgrammeMailTemplateContext\getNewestProgressForUser().
ilObjStudyProgramme::getProgressForAssignment | ( | int | $a_assignment_id | ) |
Get the progress for an assignment on this node.
Throws when assignment does not belong to this program.
int | $a_assignment_id |
ilException |
Definition at line 1382 of file class.ilObjStudyProgramme.php.
References ilObject\getId().
Referenced by ilStudyProgrammeUserAssignment\delete().
ilObjStudyProgramme::getRawSettings | ( | ) |
Get the underlying model of this program.
ATTENTION: Only use the model object if you know what you are doing.
Definition at line 1926 of file class.ilObjStudyProgramme.php.
References $DIC, $settings, ilObject\getId(), getSubType(), and ilObject\getType().
|
protected |
Definition at line 694 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 714 of file class.ilObjStudyProgramme.php.
References getReferencesTo().
ilObjStudyProgramme::getRoot | ( | ) |
Get the ilObjStudyProgramme that is the root node of the tree this programme is in.
Definition at line 796 of file class.ilObjStudyProgramme.php.
References getParents().
ilObjStudyProgramme::getStatus | ( | ) |
Definition at line 452 of file class.ilObjStudyProgramme.php.
References getAssessmentSettings().
Referenced by assignUser(), and isActive().
ilObjStudyProgramme::getSubType | ( | ) |
Gets the SubType Object.
Definition at line 480 of file class.ilObjStudyProgramme.php.
References getTypeSettings().
Referenced by getRawSettings().
ilObjStudyProgramme::getTypeSettings | ( | ) |
Definition at line 490 of file class.ilObjStudyProgramme.php.
References settings().
Referenced by ilObjStudyProgrammeSettingsGUI\buildForm(), ilObjStudyProgrammeSettingsGUI\buildFormElements(), getSubType(), and update().
ilObjStudyProgramme::getValidityOfQualificationSettings | ( | ) |
Definition at line 521 of file class.ilObjStudyProgramme.php.
References settings().
Referenced by ilObjStudyProgrammeSettingsGUI\buildFormElements(), ilStudyProgrammeChangeExpireDateGUI\getValidityOfQualificationSubForm(), and ilStudyProgrammeUserProgress\maybeLimitProgressValidity().
ilObjStudyProgramme::hasAssignmentOf | ( | int | $a_user_id | ) |
Check whether user is assigned to this program or any node above.
Definition at line 1238 of file class.ilObjStudyProgramme.php.
References getAmountOfAssignmentsOf().
ilObjStudyProgramme::hasAssignments | ( | ) |
Are there any assignments on this node or any node above?
Definition at line 1313 of file class.ilObjStudyProgramme.php.
References getAssignments().
ilObjStudyProgramme::hasAssignmentsOfSingleProgramForUser | ( | int | $usr_id | ) |
Get assignments of user to this program-node only.
Definition at line 1344 of file class.ilObjStudyProgramme.php.
References getAssignmentsOfSingleProgramForUser().
ilObjStudyProgramme::hasAutomaticContentCategories | ( | ) |
Definition at line 1534 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 756 of file class.ilObjStudyProgramme.php.
References getAmountOfChildren().
Referenced by addLeaf().
ilObjStudyProgramme::hasLPChildren | ( | ) |
Does this StudyProgramme has leafs?
Throws when this object is not in tree.
Definition at line 865 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 1434 of file class.ilObjStudyProgramme.php.
References getProgresses().
ilObjStudyProgramme::hasRelevantProgresses | ( | ) |
Are there any users that have a relevant progress on this programme?
Definition at line 1442 of file class.ilObjStudyProgramme.php.
References getProgresses().
|
static |
Definition at line 181 of file class.ilObjStudyProgramme.php.
References ilObjStudyProgrammeCache\singleton().
ilObjStudyProgramme::isActive | ( | ) |
Definition at line 470 of file class.ilObjStudyProgramme.php.
References getStatus(), and ilStudyProgrammeSettings\STATUS_ACTIVE.
ilObjStudyProgramme::isAutoContentApplicable | ( | ) |
AutoContent should only be available in active- or draft-mode, and only, if there is no sub-programme.
ilStudyProgrammeTreeException |
Definition at line 1631 of file class.ilObjStudyProgramme.php.
References getAmountOfChildren(), hasLPChildren(), settings(), ilStudyProgrammeSettings\STATUS_ACTIVE, and ilStudyProgrammeSettings\STATUS_DRAFT.
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 1113 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.
ilStudyProgrammeTreeException | |
ilException |
Definition at line 971 of file class.ilObjStudyProgramme.php.
References addMissingProgresses(), clearChildrenCache(), getLPMode(), ilStudyProgrammeSettings\MODE_LP_COMPLETED, ilStudyProgrammeSettings\MODE_POINTS, and settings().
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 996 of file class.ilObjStudyProgramme.php.
References $res, ilObject\_lookupType(), and getInstanceByRefId().
Referenced by addNode().
ilObjStudyProgramme::read | ( | ) |
ilException |
Definition at line 321 of file class.ilObjStudyProgramme.php.
References readSettings().
|
protected |
Load Settings from DB.
Throws when settings are already loaded or id is null.
ilException | if settings are already loaded |
ilException | if there is no oid to load settings |
Definition at line 246 of file class.ilObjStudyProgramme.php.
References ilObject\$id, ilObject\getId(), and settings().
Referenced by read().
ilObjStudyProgramme::removeAssignment | ( | ilStudyProgrammeUserAssignment | $a_assignment | ) |
Remove an assignment from this program.
Throws when assignment doesn't have this program as root node.
ilException |
Definition at line 1217 of file class.ilObjStudyProgramme.php.
References ilStudyProgrammeUserAssignment\delete(), ilStudyProgrammeUserAssignment\getId(), ilObject\getId(), and ilStudyProgrammeUserAssignment\getStudyProgramme().
|
static |
Check, if a category is under surveilllance and automatically remove the deleted course.
ilStudyProgrammeTreeException |
Definition at line 1593 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 1091 of file class.ilObjStudyProgramme.php.
References clearLPChildrenCache(), ilObject\getId(), and ilStudyProgrammeLeaf\getRefId().
|
static |
Definition at line 1756 of file class.ilObjStudyProgramme.php.
References $assignment_db, 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 1017 of file class.ilObjStudyProgramme.php.
References canBeRemoved(), clearChildrenCache(), clearParentCache(), ilObject\getId(), getParent(), and ilObject\getRefId().
|
static |
Definition at line 2059 of file class.ilObjStudyProgramme.php.
References $DIC, Vendor\Package\$e, ilObject\$lng, $name, ilObjUser\_lookupFullname(), ilObjUser\_lookupGender(), ilObjUser\_lookupLogin(), and getInstanceByRefId().
ilObjStudyProgramme::setAssessmentSettings | ( | \ilStudyProgrammeAssessmentSettings | $assessment_settings | ) |
Definition at line 505 of file class.ilObjStudyProgramme.php.
References settings().
Referenced by ilObjStudyProgrammeSettingsGUI\buildForm(), setPoints(), and setStatus().
ilObjStudyProgramme::setAutoMailSettings | ( | \ilStudyProgrammeAutoMailSettings | $automail_settings | ) |
Definition at line 557 of file class.ilObjStudyProgramme.php.
References settings().
Referenced by ilObjStudyProgrammeSettingsGUI\buildForm().
ilObjStudyProgramme::setDeadlineSettings | ( | \ilStudyProgrammeDeadlineSettings | $deadline_settings | ) |
Definition at line 516 of file class.ilObjStudyProgramme.php.
References settings().
Referenced by ilObjStudyProgrammeSettingsGUI\buildForm().
ilObjStudyProgramme::setPoints | ( | int | $a_points | ) |
Set the amount of points.
ilException |
Definition at line 411 of file class.ilObjStudyProgramme.php.
References $settings, getAssessmentSettings(), setAssessmentSettings(), 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 1858 of file class.ilObjStudyProgramme.php.
References ilObject\$ref_id, ilObject\$type, ilObject\_getAllReferences(), ilContainerReference\_lookupSourceIds(), and ilObject\_lookupType().
Referenced by ilStudyProgrammeAppEventListener\onServiceTrackingUpdateStatus().
|
staticprotected |
ilException |
Definition at line 1880 of file class.ilObjStudyProgramme.php.
References $DIC, $tree, getInstanceByRefId(), and ilStudyProgrammeSettings\MODE_LP_COMPLETED.
ilObjStudyProgramme::setStatus | ( | int | $a_status | ) |
Set the status of the node.
ilException |
Definition at line 462 of file class.ilObjStudyProgramme.php.
References $settings, getAssessmentSettings(), setAssessmentSettings(), and updateLastChange().
Referenced by addMissingProgresses().
ilObjStudyProgramme::setTypeSettings | ( | \ilStudyProgrammeTypeSettings | $type_settings | ) |
Definition at line 495 of file class.ilObjStudyProgramme.php.
References settings().
Referenced by ilObjStudyProgrammeSettingsGUI\buildForm().
ilObjStudyProgramme::setValidityOfQualificationSettings | ( | \ilStudyProgrammeValidityOfAchievedQualificationSettings | $validity_of_qualification_settings | ) |
Definition at line 526 of file class.ilObjStudyProgramme.php.
References settings().
Referenced by ilObjStudyProgrammeSettingsGUI\buildForm().
ilObjStudyProgramme::shouldSendInfoToReAssignMail | ( | ) |
Definition at line 567 of file class.ilObjStudyProgramme.php.
References getAutoMailSettings().
ilObjStudyProgramme::shouldSendReAssignedMail | ( | ) |
Definition at line 562 of file class.ilObjStudyProgramme.php.
References getAutoMailSettings().
ilObjStudyProgramme::shouldSendRiskyToFailMail | ( | ) |
Definition at line 572 of file class.ilObjStudyProgramme.php.
References getAutoMailSettings().
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 1544 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 1666 of file class.ilObjStudyProgramme.php.
References ilObject\getId().
|
protected |
Helper function to check, weather object is in tree.
Throws ilStudyProgrammeTreeException if object is not in tree.
Definition at line 874 of file class.ilObjStudyProgramme.php.
Referenced by addLeaf(), addNode(), applyToSubTreeNodes(), getChildren(), getLPChildren(), and getParent().
ilObjStudyProgramme::update | ( | ) |
ilException |
Definition at line 341 of file class.ilObjStudyProgramme.php.
References ilObject\getId(), getTypeSettings(), ilAdvancedMDRecord\saveObjRecSelection(), and updateSettings().
Referenced by updateLastChange().
ilObjStudyProgramme::updateAllAssignments | ( | ) |
Update all assignments to this program node.
Definition at line 1321 of file class.ilObjStudyProgramme.php.
References ilObject\getId().
|
protected |
Update last change timestamp on this node and its parents.
Definition at line 1807 of file class.ilObjStudyProgramme.php.
References $parent, getParent(), settings(), and update().
Referenced by setPoints(), and setStatus().
|
protected |
Update settings in DB.
Throws when settings are not loaded.
ilException | if no settings are loaded |
Definition at line 284 of file class.ilObjStudyProgramme.php.
References settings().
Referenced by update().
|
protected |
Definition at line 67 of file class.ilObjStudyProgramme.php.
Referenced by getAssignments(), getAssignmentsOf(), and removeMemberFromProgrammes().
|
protected |
Definition at line 37 of file class.ilObjStudyProgramme.php.
|
protected |
Definition at line 47 of file class.ilObjStudyProgramme.php.
|
protected |
Definition at line 52 of file class.ilObjStudyProgramme.php.
|
protected |
Definition at line 22 of file class.ilObjStudyProgramme.php.
Referenced by getChildren().
|
protected |
Definition at line 94 of file class.ilObjStudyProgramme.php.
Referenced by getProgrammesMonitoringCategory(), and getProgrammesMonitoringMemberSource().
|
protected |
Definition at line 72 of file class.ilObjStudyProgramme.php.
ilObjStudyProgramme::$ilUser |
Definition at line 89 of file class.ilObjStudyProgramme.php.
Referenced by __construct().
|
protected |
Definition at line 27 of file class.ilObjStudyProgramme.php.
Referenced by getLPChildren().
|
protected |
Definition at line 130 of file class.ilObjStudyProgramme.php.
Referenced by getMembers().
|
protected |
Definition at line 57 of file class.ilObjStudyProgramme.php.
ilObjStudyProgramme::$object_factory |
Definition at line 110 of file class.ilObjStudyProgramme.php.
|
protected |
Definition at line 17 of file class.ilObjStudyProgramme.php.
Referenced by getCreatableSubObjects(), getParent(), getParents(), moveTo(), and updateLastChange().
|
protected |
Definition at line 99 of file class.ilObjStudyProgramme.php.
|
protected |
Definition at line 62 of file class.ilObjStudyProgramme.php.
|
protected |
Definition at line 42 of file class.ilObjStudyProgramme.php.
Referenced by addMissingProgresses().
|
protected |
Definition at line 115 of file class.ilObjStudyProgramme.php.
|
protected |
Definition at line 120 of file class.ilObjStudyProgramme.php.
|
protected |
Definition at line 12 of file class.ilObjStudyProgramme.php.
Referenced by getRawSettings(), setPoints(), and setStatus().
|
protected |
Definition at line 104 of file class.ilObjStudyProgramme.php.
|
static |
Definition at line 125 of file class.ilObjStudyProgramme.php.
ilObjStudyProgramme::$tree |
Definition at line 84 of file class.ilObjStudyProgramme.php.
Referenced by __construct(), getParentId(), getReferencesTo(), and setProgressesCompletedIfParentIsProgrammeInLPCompletedMode().
|
protected |
Definition at line 32 of file class.ilObjStudyProgramme.php.
ilObjStudyProgramme::$webdir |
Definition at line 79 of file class.ilObjStudyProgramme.php.