|
ILIAS
release_9 Revision v9.13-25-g2c18ec4c24f
|
Inheritance diagram for ilObjStudyProgramme:
Collaboration diagram for ilObjStudyProgramme:Public Member Functions | |
| __construct (int $id=0, bool $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 () | |
| cloneObject (int $target_ref_id, int $copy_id=0, bool $omit_tree=false) | |
| getLastChange () | |
| Get the timestamp of the last change on this program or sub program. More... | |
| getPoints () | |
| Get the amount of points. More... | |
| setPoints (int $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... | |
| isCertificateActive () | |
| 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 $usr_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 ($prg) | |
| Clears child cache and adds progress for new node. More... | |
| putInTree (int $parent_ref_id) | |
| Overwritten from ilObject. More... | |
| removeNode (ilObjStudyProgramme $a_prg) | |
| Remove a node from this object. More... | |
| canBeRemoved () | |
| Check weather a node can be removed. More... | |
| moveTo (ilObjStudyProgramme $new_parent) | |
| Move this tree node to a new parent. More... | |
| assignUser (int $usr_id, int $acting_usr_id=null, $raise_event=true) | |
| Assign a user to this node at the study program. More... | |
| removeAssignment (ilPRGAssignment $assignment) | |
| Remove an assignment from this program. More... | |
| getSpecificAssignment (int $assignment_id) | |
| storeExpiryInfoSentFor (ilPRGAssignment $ass) | |
| resetExpiryInfoSentFor (ilPRGAssignment $ass) | |
| storeRiskyToFailSentFor (ilPRGAssignment $ass) | |
| resetRiskyToFailSentFor (ilPRGAssignment $ass) | |
| hasAssignmentOf (int $user_id) | |
| Check whether user is assigned to this program or any node above. More... | |
| getAmountOfAssignmentsOf (int $user_id) | |
| Get the amount of assignments a user has on this program node or any node above. More... | |
| getAssignmentsOf (int $user_id) | |
| Get the assignments of user at this program or any node above. More... | |
| getAssignments () | |
| 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... | |
| 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... | |
| getCertificateRelevantAssignmentIds (int ... $usr_ids) | |
| addMissingProgresses () | |
| Add missing progress records for all assignments of this programm. More... | |
| hasRelevantProgresses () | |
| Are there any users that have a relevant progress on this programme? More... | |
| getIdsOfUsersWithRelevantProgress () | |
| 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, bool $assign_now=false) | |
| Enable a membership source. More... | |
| getApplicableMembershipSourceForUser (int $usr_id, ?int $exclude_id) | |
| succeed (int $usr_id, int $triggering_obj_id, ilPRGAssignment $ass=null) | |
| updateCustomIcon () | |
| markAccredited (int $assignment_id, int $acting_usr_id, ilPRGMessageCollection $err_collection) | |
| unmarkAccredited (int $assignment_id, int $acting_usr_id, ilPRGMessageCollection $err_collection) | |
| markNotRelevant (int $assignment_id, int $acting_usr_id, ilPRGMessageCollection $err_collection) | |
| markRelevant (int $assignment_id, int $acting_usr_id, ilPRGMessageCollection $err_collection) | |
| changeProgressDeadline (int $assignment_id, int $acting_usr_id, ilPRGMessageCollection $err_collection, ?DateTimeImmutable $deadline) | |
| changeProgressValidityDate (int $assignment_id, int $acting_usr_id, ilPRGMessageCollection $err_collection, ?DateTimeImmutable $validity) | |
| changeAmountOfPoints (int $assignment_id, int $acting_usr_id, ilPRGMessageCollection $err_collection, int $points) | |
| updatePlanFromRepository (int $assignment_id, int $acting_usr_id, ilPRGMessageCollection $err_collection=null) | |
| acknowledgeCourses (int $assignment_id, array $nodes, ilPRGMessageCollection $err_collection=null) | |
| canBeCompleted (ilPRGProgress $progress) | |
| statusToRepr (int $status) | |
| Get a user readable representation of a status. More... | |
| hasContentPage () | |
| createContentPage () | |
Public Member Functions inherited from ilContainer | |
| getTileSizes () | |
| getObjectTranslation () | |
| setObjectTranslation (?ilObjectTranslation $obj_trans) | |
| createContainerDirectory () | |
| getContainerDirectory () | |
| setHiddenFilesFound (bool $a_hiddenfilesfound) | |
| getHiddenFilesFound () | |
| getStyleSheetId () | |
| setStyleSheetId (int $a_style_id) | |
| setNewsTimeline (bool $a_val) | |
| getNewsTimeline () | |
| setNewsTimelineAutoEntries (bool $a_val) | |
| getNewsTimelineAutoEntries () | |
| setNewsTimelineLandingPage (bool $a_val) | |
| getNewsTimelineLandingPage () | |
| isNewsTimelineEffective () | |
| isNewsTimelineLandingPageEffective () | |
| setNewsBlockActivated (bool $a_val) | |
| getNewsBlockActivated () | |
| setUseNews (bool $a_val) | |
| getUseNews () | |
| cloneDependencies (int $target_id, int $copy_id) | |
| Clone object dependencies (container sorting) More... | |
| cloneAllObject (string $session_id, string $client_id, string $new_type, int $ref_id, int $clone_source, array $options, bool $soap_call=false, int $a_submode=1) | |
| delete () | |
| delete category and all related data More... | |
| getViewMode () | |
| getOrderType () | |
| setOrderType (int $a_value) | |
| isClassificationFilterActive () | |
| filteredSubtree () | |
| Note grp/crs currently allow to filter in their whole subtrees Catetories only their direct childs. More... | |
| getSubItems (bool $a_admin_panel_enabled=false, bool $a_include_side_block=false, int $a_get_single=0, ilContainerUserFilter $container_user_filter=null) | |
| gotItems () | |
| addAdditionalSubItemInformation (array &$object) | |
| Add additional information to sub item, e.g. More... | |
| getGroupedObjTypes () | |
| enablePageEditing () | |
| create () | |
| putInTree (int $parent_ref_id) | |
| update () | |
| read () | |
| readContainerSettings () | |
| removeTranslations () | |
| deleteTranslation (string $a_lang) | |
| addTranslation (string $a_title, string $a_desc, string $a_lang, string $a_lang_default) | |
Public Member Functions inherited from ilObject | |
| getObjectProperties () | |
| flushObjectProperties () | |
| withReferences () | |
| determines whether objects are referenced or not (got ref ids or not) More... | |
| processAutoRating () | |
| read () | |
| getId () | |
| setId (int $id) | |
| setRefId (int $ref_id) | |
| getRefId () | |
| getType () | |
| setType (string $type) | |
| getPresentationTitle () | |
| get presentation title Normally same as title Overwritten for sessions More... | |
| getTitle () | |
| getUntranslatedTitle () | |
| Get untranslated object title WebDAV needs to access the untranslated title of an object. More... | |
| setTitle (string $title) | |
| getDescription () | |
| setDescription (string $description) | |
| getLongDescription () | |
| get object long description (stored in object_description) More... | |
| getImportId () | |
| setImportId (string $import_id) | |
| setOfflineStatus (bool $status) | |
| getOfflineStatus () | |
| supportsOfflineHandling () | |
| getOwner () | |
| getOwnerName () | |
| get full name of object owner More... | |
| setOwner (int $usr_id) | |
| getCreateDate () | |
| Get create date in YYYY-MM-DD HH-MM-SS format. More... | |
| getLastUpdateDate () | |
| Get last update date in YYYY-MM-DD HH-MM-SS format. More... | |
| create () | |
| note: title, description and type should be set when this function is called More... | |
| update () | |
| MDUpdateListener (string $element) | |
| Metadata update listener. More... | |
| createMetaData () | |
| updateMetaData () | |
| deleteMetaData () | |
| updateOwner () | |
| update owner of object in db More... | |
| putInTree (int $parent_ref_id) | |
| maybe this method should be in tree object!? More... | |
| setPermissions (int $parent_ref_id) | |
| setParentRolePermissions (int $parent_ref_id) | |
| Initialize the permissions of parent roles (local roles of categories, global roles...) This method is overwritten in e.g. More... | |
| createReference () | |
| creates reference for object More... | |
| countReferences () | |
| 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. More... | |
| applyDidacticTemplate (int $tpl_id) | |
| getXMLZip () | |
| getHTMLDirectory () | |
| appendCopyInfo (int $target_id, int $copy_id) | |
| Prepend Copy info if object with same name exists in that container. More... | |
| cloneDependencies (int $target_id, int $copy_id) | |
| Clone object dependencies. More... | |
| cloneMetaData (ilObject $target_obj) | |
| Copy meta data. More... | |
| selfOrParentWithRatingEnabled () | |
| getPossibleSubObjects (bool $filter=true) | |
| get all possible sub objects of this type the object can decide which types of sub objects 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 (int $obj_id) |
| static | getInstanceByRefId ($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 surveillance 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 | setProgressesCompletedIfParentIsProgrammeInLPCompletedMode (int $ref_id, int $obj_id, int $user_id) |
| Succeed all StudyProgramme(Nodes) where the object with the given id (a CRSR) is in a Programme with MODE_LP_COMPLETED. More... | |
| static | getCreatableSubObjects (array $subobjects, $ref_id) |
| Filter the list of possible subobjects for the objects that actually could be created on a concrete node. More... | |
Static Public Member Functions inherited from ilContainer | |
| static | _getContainerDirectory (int $a_id) |
| static | _lookupContainerSetting (int $a_id, string $a_keyword, string $a_default_value=null) |
| static | _hasContainerSetting (int $a_id, string $a_keyword) |
| static | _writeContainerSetting (int $a_id, string $a_keyword, string $a_value) |
| static | _getContainerSettings (int $a_id) |
| static | _deleteContainerSettings (int $a_id, string $a_keyword="", bool $a_keyword_like=false) |
| static | _exportContainerSettings (ilXmlWriter $a_xml, int $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 Public Member Functions inherited from ilObject | |
| static | _lookupObjIdByImportId (string $import_id) |
| Get (latest) object id for an import id. More... | |
| static | _lookupImportId (int $obj_id) |
| static | _lookupOwnerName (int $owner_id) |
| Lookup owner name for owner id. More... | |
| static | _getIdForImportId (string $import_id) |
| static | _getAllReferences (int $id) |
| get all reference ids for object ID More... | |
| static | _lookupTitle (int $obj_id) |
| static | lookupOfflineStatus (int $obj_id) |
| Lookup offline status using objectDataCache. More... | |
| static | _lookupOwner (int $obj_id) |
| Lookup owner user ID for object ID. More... | |
| static | _getIdsForTitle (string $title, string $type='', bool $partial_match=false) |
| static | _lookupDescription (int $obj_id) |
| static | _lookupLastUpdate (int $obj_id, bool $formatted=false) |
| static | _getLastUpdateOfObjects (array $obj_ids) |
| static | _lookupObjId (int $ref_id) |
| static | _setDeletedDate (int $ref_id, int $deleted_by) |
| static | setDeletedDates (array $ref_ids, int $user_id) |
| static | _resetDeletedDate (int $ref_id) |
| static | _lookupDeletedDate (int $ref_id) |
| static | _writeTitle (int $obj_id, string $title) |
| write title to db (static) More... | |
| static | _writeDescription (int $obj_id, string $desc) |
| write description to db (static) More... | |
| static | _writeImportId (int $obj_id, string $import_id) |
| write import id to db (static) More... | |
| static | _lookupType (int $id, bool $reference=false) |
| static | _isInTrash (int $ref_id) |
| static | _hasUntrashedReference (int $obj_id) |
| checks whether an object has at least one reference that is not in trash More... | |
| static | _lookupObjectId (int $ref_id) |
| static | _getObjectsDataForType (string $type, bool $omit_trash=false) |
| get all objects of a certain type More... | |
| static | _exists (int $id, bool $reference=false, ?string $type=null) |
| checks if an object exists in object_data More... | |
| static | _getObjectsByType (string $obj_type="", int $owner=null) |
| static | _prepareCloneSelection (array $ref_ids, string $new_type, bool $show_path=true) |
| Prepare copy wizard object selection. More... | |
| static | _getIcon (int $obj_id=0, string $size="big", string $type="", bool $offline=false) |
| Get icon for repository item. More... | |
| static | collectDeletionDependencies (array &$deps, int $ref_id, int $obj_id, string $type, int $depth=0) |
| Collect deletion dependencies. More... | |
| static | getDeletionDependencies (int $obj_id) |
| Get deletion dependencies. More... | |
| static | getLongDescriptions (array $obj_ids) |
| static | getAllOwnedRepositoryObjects (int $user_id) |
| static | fixMissingTitles ($type, array &$obj_title_map) |
| Try to fix missing object titles. More... | |
| static | _lookupCreationDate (int $obj_id) |
| static | _getObjectTypeIdByTitle (string $type, \ilDBInterface $ilDB=null) |
Data Fields | |
| const | CP_TYPE = 'cont' |
Data Fields inherited from ilContainer | |
| 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 | TILE_NORMAL = 0 |
| const | TILE_SMALL = 1 |
| const | TILE_LARGE = 2 |
| const | TILE_EXTRA_LARGE = 3 |
| const | TILE_FULL = 4 |
| array | $items = [] |
Data Fields inherited from ilObject | |
| const | TITLE_LENGTH = 255 |
| const | DESC_LENGTH = 128 |
| const | LONG_DESC_LENGTH = 4000 |
| const | TABLE_OBJECT_DATA = "object_data" |
| array | $objectList |
| string | $untranslatedTitle |
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) | |
| 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... | |
| getLoggedInUserId () | |
| getNow () | |
| refreshLPStatus (int $usr_id, int $node_obj_id=null) | |
Protected Member Functions inherited from ilContainer | |
| getInitialSubitems () | |
| applyContainerUserFilter (array $objects, ilContainerUserFilter $container_user_filter=null) | |
Protected Member Functions inherited from ilObject | |
| doMDUpdateListener (string $a_element) | |
| beforeMDUpdateListener (string $a_element) | |
| doCreateMetaData () | |
| beforeCreateMetaData () | |
| doUpdateMetaData () | |
| beforeUpdateMetaData () | |
| doDeleteMetaData () | |
| beforeDeleteMetaData () | |
| handleAutoRating () | |
| hasAutoRating () | |
Static Protected Member Functions | |
| static | getProgrammesMonitoringCategory (int $cat_ref_id) |
| Get all (not OUTDATED) StudyProgrammes monitoring this category. More... | |
| static | getProgrammesMonitoringMemberSource (string $src_type, int $src_id) |
| Get all StudyProgrammes monitoring this membership-source. More... | |
Static Protected Attributes | |
| static ilObjStudyProgrammeCache | $study_programme_cache = null |
Additional Inherited Members | |
Static Public Attributes inherited from ilContainer | |
| static bool | $data_preloaded = false |
Definition at line 23 of file class.ilObjStudyProgramme.php.
| ilObjStudyProgramme::__construct | ( | int | $id = 0, |
| bool | $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 74 of file class.ilObjStudyProgramme.php.
References ilObject\$call_by_reference, $DIC, $dic, $id, $ilUser, ilObject\$tree, ILIAS\MetaData\Repository\Validation\Data\__construct(), clearChildrenCache(), clearLPChildrenCache(), clearParentCache(), ilStudyProgrammeDIC\dic(), ilLoggerFactory\getLogger(), ILIAS\Repository\lng(), ILIAS\Repository\logger(), and ilObjectFactoryWrapper\singleton().
Here is the call graph for this function:| ilObjStudyProgramme::acknowledgeCourses | ( | int | $assignment_id, |
| array | $nodes, | ||
| ilPRGMessageCollection | $err_collection = null |
||
| ) |
Definition at line 1815 of file class.ilObjStudyProgramme.php.
References getLoggedInUserId(), and refreshLPStatus().
Here is the call graph for this function:
|
static |
Check, if a category is under surveilllance and automatically add the course.
Definition at line 1258 of file class.ilObjStudyProgramme.php.
References ilObject\_lookupObjectId(), ilLPObjSettings\insert(), and ilContainerReference\TITLE_TYPE_REUSE.
Referenced by ilStudyProgrammeAppEventListener\addCrsToProgrammes().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 1448 of file class.ilObjStudyProgramme.php.
References ilStudyProgrammeAutoMembershipSource\SOURCE_MAPPING.
Referenced by ilStudyProgrammeAppEventListener\addMemberToProgrammes().
Here is the caller graph for this function:| 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 1172 of file class.ilObjStudyProgramme.php.
References getAssignments().
Referenced by nodeInserted().
Here is the call graph for this function:
Here is the caller graph for this function:| 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.
| ilObjStudyProgramme | $a_prg |
| ilException | |
| ilStudyProgrammeTreeException |
Definition at line 806 of file class.ilObjStudyProgramme.php.
References ilObject\createReference(), getLPMode(), ilObject\getRefId(), ilStudyProgrammeSettings\MODE_LP_COMPLETED, putInTree(), and throwIfNotInTree().
Here is the call graph for this function:| 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 364 of file class.ilObjStudyProgramme.php.
References clearChildrenCache(), clearLPChildrenCache(), getAmountOfChildren(), getAmountOfLPChildren(), getSettings(), ilStudyProgrammeSettings\MODE_LP_COMPLETED, ilStudyProgrammeSettings\MODE_POINTS, and ilStudyProgrammeSettings\MODE_UNDEFINED.
Here is the call graph for this function:| 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 743 of file class.ilObjStudyProgramme.php.
References getChildren(), and throwIfNotInTree().
Referenced by getAllPrgChildren().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjStudyProgramme::assignUser | ( | int | $usr_id, |
| int | $acting_usr_id = null, |
||
$raise_event = true |
|||
| ) |
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 958 of file class.ilObjStudyProgramme.php.
References ilObject\getId(), getLoggedInUserId(), getSettingsRepository(), getStatus(), and ilStudyProgrammeSettings\STATUS_ACTIVE.
Referenced by enableAutomaticMembershipSource().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjStudyProgramme::canBeCompleted | ( | ilPRGProgress | $progress | ) |
Definition at line 1843 of file class.ilObjStudyProgramme.php.
References ilPRGProgress\getAmountOfPoints(), getLPMode(), ilPRGProgress\getPossiblePointsOfRelevantChildren(), and ilStudyProgrammeSettings\MODE_LP_COMPLETED.
Here is the call graph for this function:| 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 903 of file class.ilObjStudyProgramme.php.
References hasRelevantProgresses().
Referenced by removeNode().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjStudyProgramme::changeAmountOfPoints | ( | int | $assignment_id, |
| int | $acting_usr_id, | ||
| ilPRGMessageCollection | $err_collection, | ||
| int | $points | ||
| ) |
Definition at line 1779 of file class.ilObjStudyProgramme.php.
References ilObject\getId(), getSettingsRepository(), and refreshLPStatus().
Here is the call graph for this function:| ilObjStudyProgramme::changeProgressDeadline | ( | int | $assignment_id, |
| int | $acting_usr_id, | ||
| ilPRGMessageCollection | $err_collection, | ||
| ?DateTimeImmutable | $deadline | ||
| ) |
Definition at line 1739 of file class.ilObjStudyProgramme.php.
References ilObject\getId(), getSettingsRepository(), and refreshLPStatus().
Here is the call graph for this function:| ilObjStudyProgramme::changeProgressValidityDate | ( | int | $assignment_id, |
| int | $acting_usr_id, | ||
| ilPRGMessageCollection | $err_collection, | ||
| ?DateTimeImmutable | $validity | ||
| ) |
Definition at line 1759 of file class.ilObjStudyProgramme.php.
References ilObject\getId(), getSettingsRepository(), and refreshLPStatus().
Here is the call graph for this function:
|
protected |
Clear the cached children.
Definition at line 130 of file class.ilObjStudyProgramme.php.
Referenced by __construct(), adjustLPMode(), moveTo(), nodeInserted(), and removeNode().
Here is the caller graph for this function:
|
protected |
Clear the cached lp children.
Definition at line 138 of file class.ilObjStudyProgramme.php.
Referenced by __construct(), adjustLPMode(), and moveTo().
Here is the caller graph for this function:
|
protected |
Clear the cached parent to query it again at the tree.
Definition at line 121 of file class.ilObjStudyProgramme.php.
Referenced by __construct(), moveTo(), and removeNode().
Here is the caller graph for this function:| ilObjStudyProgramme::cloneObject | ( | int | $target_ref_id, |
| int | $copy_id = 0, |
||
| bool | $omit_tree = false |
||
| ) |
Definition at line 305 of file class.ilObjStudyProgramme.php.
References ILIAS\LTI\ToolProvider\$settings, getSettings(), and ilStudyProgrammeSettings\STATUS_DRAFT.
Here is the call graph for this function:| ilObjStudyProgramme::create | ( | ) |
| ilException |
Definition at line 238 of file class.ilObjStudyProgramme.php.
References $id, getSettingsRepository(), and ILIAS\Repository\int().
Here is the call graph for this function:| ilObjStudyProgramme::createContentPage | ( | ) |
Definition at line 1881 of file class.ilObjStudyProgramme.php.
References ilObject\getId(), and hasContentPage().
Here is the call graph for this function:
|
static |
Create an instance of ilObjStudyProgramme, put in cache.
| ilException |
Definition at line 192 of file class.ilObjStudyProgramme.php.
| ilObjStudyProgramme::delete | ( | ) |
Delete Study Programme and all related data.
| ilException |
Definition at line 272 of file class.ilObjStudyProgramme.php.
References Vendor\Package\$e, deleteAllAutomaticContentCategories(), deleteAllAutomaticMembershipSources(), deleteAssignmentsAndProgresses(), deleteSettings(), and ilObject\getId().
Here is the call graph for this function:| ilObjStudyProgramme::deleteAllAutomaticContentCategories | ( | ) |
Delete all configuration of categories with auto-content for this StudyProgramme;.
Definition at line 1250 of file class.ilObjStudyProgramme.php.
References ilObject\getId().
Referenced by delete().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjStudyProgramme::deleteAllAutomaticMembershipSources | ( | ) |
Delete all membership sources of this StudyProgramme;.
Definition at line 1380 of file class.ilObjStudyProgramme.php.
References ilObject\getId().
Referenced by delete().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Delete all assignments from the DB.
| ilException |
Definition at line 230 of file class.ilObjStudyProgramme.php.
References ilObject\getId().
Referenced by delete().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjStudyProgramme::deleteAutomaticContentCategories | ( | array | $category_ids = [] | ) |
Delete configuration of categories with auto-content for this StudyProgramme;.
| int[] | $category_ids |
Definition at line 1242 of file class.ilObjStudyProgramme.php.
References ilObject\getId().
Here is the call graph for this function:| ilObjStudyProgramme::deleteAutomaticMembershipSource | ( | string | $type, |
| int | $src_id | ||
| ) |
Delete a membership source.
Definition at line 1372 of file class.ilObjStudyProgramme.php.
References ilObject\getId().
Here is the call graph for this function:
|
protected |
Definition at line 220 of file class.ilObjStudyProgramme.php.
References getSettings(), and getSettingsRepository().
Referenced by delete().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjStudyProgramme::disableAutomaticMembershipSource | ( | string | $type, |
| int | $src_id | ||
| ) |
Disable a membership source.
Definition at line 1388 of file class.ilObjStudyProgramme.php.
References ilObject\getId().
Here is the call graph for this function:| ilObjStudyProgramme::enableAutomaticMembershipSource | ( | string | $type, |
| int | $src_id, | ||
| bool | $assign_now = false |
||
| ) |
Enable a membership source.
| ilException |
Definition at line 1398 of file class.ilObjStudyProgramme.php.
References ilObject\$type, assignUser(), getAssignmentsOfSingleProgramForUser(), ilObject\getId(), getMembersOfMembershipSource(), and ilStudyProgrammeAutoMembershipSource\SOURCE_MAPPING.
Here is the call graph for this function:
|
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 453 of file class.ilObjStudyProgramme.php.
References ilObject\getId().
Referenced by ilObjStudyProgrammeTreeGUI\confirmedDelete().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjStudyProgramme::getAllPrgChildren | ( | ) |
Definition at line 468 of file class.ilObjStudyProgramme.php.
References applyToSubTreeNodes(), and ilObject\getId().
Here is the call graph for this function:| ilObjStudyProgramme::getAmountOfAssignmentsOf | ( | int | $user_id | ) |
Get the amount of assignments a user has on this program node or any node above.
Definition at line 1056 of file class.ilObjStudyProgramme.php.
References getAssignmentsOf().
Referenced by hasAssignmentOf().
Here is the call graph for this function:
Here is the caller graph for this function:| 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 629 of file class.ilObjStudyProgramme.php.
References getChildren().
Referenced by adjustLPMode(), hasChildren(), and isAutoContentApplicable().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjStudyProgramme::getAmountOfLPChildren | ( | ) |
Get the amount of leafs the study programme contains.
| when | this object is not in tree. |
Definition at line 712 of file class.ilObjStudyProgramme.php.
References getLPChildren().
Referenced by adjustLPMode(), and hasLPChildren().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjStudyProgramme::getApplicableMembershipSourceForUser | ( | int | $usr_id, |
| ?int | $exclude_id | ||
| ) |
Definition at line 1489 of file class.ilObjStudyProgramme.php.
References getAutomaticMembershipSources(), getMembersOfMembershipSource(), and ilStudyProgrammeAutoMembershipSource\getSourceId().
Here is the call graph for this function:
|
protected |
Definition at line 170 of file class.ilObjStudyProgramme.php.
References $assignment_repository.
| ilObjStudyProgramme::getAssignments | ( | ) |
Definition at line 1087 of file class.ilObjStudyProgramme.php.
References ilObject\getId().
Referenced by addMissingProgresses(), getIdsOfUsersWithRelevantProgress(), and getMembers().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjStudyProgramme::getAssignmentsOf | ( | int | $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 assignment is the first one.
Definition at line 1068 of file class.ilObjStudyProgramme.php.
References ilObject\getId().
Referenced by getAmountOfAssignmentsOf().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjStudyProgramme::getAssignmentsOfSingleProgramForUser | ( | int | $usr_id | ) |
Get assignments of user to this program-node only.
Definition at line 1141 of file class.ilObjStudyProgramme.php.
References ilObject\getId().
Referenced by enableAutomaticMembershipSource(), and hasAssignmentsOfSingleProgramForUser().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjStudyProgramme::getAutomaticContentCategories | ( | ) |
Get configuration of categories with auto-content for this StudyProgramme;.
Definition at line 1214 of file class.ilObjStudyProgramme.php.
References ilObject\getId().
Referenced by hasAutomaticContentCategories().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjStudyProgramme::getAutomaticMembershipSources | ( | ) |
Get sources for auto-memberships.
Definition at line 1355 of file class.ilObjStudyProgramme.php.
References ilObject\getId().
Referenced by getApplicableMembershipSourceForUser().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjStudyProgramme::getCertificateRelevantAssignmentIds | ( | int ... | $usr_ids | ) |
Definition at line 1154 of file class.ilObjStudyProgramme.php.
References ilObject\getId().
Here is the call graph for this function:| 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 489 of file class.ilObjStudyProgramme.php.
References $children, $data, ilContainerSorting\_getInstance(), ilObject\getId(), getInstanceByRefId(), ilObject\getRefId(), and throwIfNotInTree().
Referenced by applyToSubTreeNodes(), getAmountOfChildren(), and ilStudyProgrammeProgressListGUI\showMoreObjectsInfo().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjStudyProgramme::getCompletedCourses | ( | int | $usr_id | ) |
Get courses in this program that the given user already completed.
Definition at line 757 of file class.ilObjStudyProgramme.php.
References ilObject\_exists(), ilLPStatus\_hasUserCompleted(), ilObject\_lookupDeletedDate(), ilContainerReference\_lookupTargetId(), ilContainerReference\_lookupTargetRefId(), ilContainerReference\_lookupTitle(), ilObject\getRefId(), and ILIAS\Repository\int().
Here is the call graph for this function:
|
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[] | $subobjects |
Definition at line 1605 of file class.ilObjStudyProgramme.php.
References $parent, ilObject\$ref_id, ilObject\_lookupType(), ilStudyProgrammeSettings\MODE_LP_COMPLETED, ilStudyProgrammeSettings\MODE_POINTS, and ilStudyProgrammeSettings\MODE_UNDEFINED.
Referenced by ilObjectDefinition\getCreatableSubObjects().
Here is the call graph for this function:
Here is the caller graph for this function:| 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 640 of file class.ilObjStudyProgramme.php.
| ilObjStudyProgramme::getIdsOfUsersWithRelevantProgress | ( | ) |
Definition at line 1197 of file class.ilObjStudyProgramme.php.
References getAssignments().
Here is the call graph for this function:
|
static |
Definition at line 157 of file class.ilObjStudyProgramme.php.
References getRefIdFor().
Referenced by ilStudyProgrammeIndividualPlanProgressListGUI\buildProgressStatus(), ilStudyProgrammeProgressListGUI\buildProgressStatus(), ilStudyProgrammeIndividualPlanTableGUI\fetchData(), ilStudyProgrammeProgressListGUI\fillTemplate(), ilStudyProgrammeExpandableProgressListGUI\getAccordionContentCoursesHTML(), ilStudyProgrammeExpandableProgressListGUI\getAccordionContentHTML(), ilPRGMail\getAssignmentAndProgramme(), ilPrgRestartAssignmentsCronJob\getStudyProgramme(), ilPDStudyProgrammeSimpleListGUI\hasPermission(), ilStudyProgrammeDashboardViewGUI\initData(), ilPDStudyProgrammeExpandableListGUI\new_ilStudyProgrammeAssignmentListGUI(), ilStudyProgrammeExpandableProgressListGUI\shouldShowSubProgress(), ilStudyProgrammeUserTable\toRow(), ilObjStudyProgrammeIndividualPlanGUI\updateDeadlines(), ilObjStudyProgrammeIndividualPlanGUI\updateRequiredPoints(), and ilObjStudyProgrammeIndividualPlanGUI\updateStatus().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 162 of file class.ilObjStudyProgramme.php.
References ilObject\$ref_id.
Referenced by ilStudyProgrammeMembersTableGUI\__construct(), ilObjStudyProgrammeAccess\_checkAccess(), ilObjStudyProgrammeReferenceAccess\_checkAccess(), ilPRGPermissionsHelper\getAllAssignedUserIds(), getChildren(), ilStudyProgrammeChangeExpireDateGUI\getObject(), ilStudyProgrammeChangeDeadlineGUI\getObject(), ilObjStudyProgrammeAutoCategoriesGUI\getObject(), ilObjStudyProgrammeSettingsGUI\getObject(), ilObjStudyProgrammeAutoMembershipsGUI\getObject(), ilObjStudyProgrammeReference\getParent(), ilObjStudyProgrammeReference\getReferencedObject(), ilObjStudyProgrammeTreeExplorerGUI\getRootNode(), ilStudyProgrammeAppEventListener\getStudyProgramme(), ilObjStudyProgrammeMembersGUI\getStudyProgramme(), ilObjStudyProgrammeReference\putInTree(), ilObjStudyProgrammeMembersGUI\removeAssignment(), ilObjStudyProgrammeIndividualPlanGUI\setRefId(), ilObjStudyProgrammeMembersGUI\setRefId(), and ilStudyProgrammeType\updateAssignedStudyProgrammesIcons().
Here is the caller graph for this function:| ilObjStudyProgramme::getLastChange | ( | ) |
Get the timestamp of the last change on this program or sub program.
Definition at line 323 of file class.ilObjStudyProgramme.php.
References getSettings().
Here is the call graph for this function:| ilObjStudyProgramme::getLocalMembers | ( | ) |
get usr_ids with assignment on this node
Definition at line 1108 of file class.ilObjStudyProgramme.php.
References $members_cache, and ilObject\getId().
Here is the call graph for this function:
|
protected |
Definition at line 1649 of file class.ilObjStudyProgramme.php.
Referenced by acknowledgeCourses(), and assignUser().
Here is the caller graph for this function:
|
protected |
| ilObjStudyProgramme::getLPChildren | ( | ) |
Get the leafs the study programme contains.
| ilStudyProgrammeTreeException | when this object is not in tree. |
Definition at line 669 of file class.ilObjStudyProgramme.php.
References $lp_children, ilContainerSorting\_getInstance(), ilObject\getId(), ilObject\getRefId(), and throwIfNotInTree().
Referenced by getAmountOfLPChildren(), and getLPChildrenIds().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjStudyProgramme::getLPChildrenIds | ( | ) |
Get the obj-ids of the leafs the program contains.
| ilStudyProgrammeTreeException |
Definition at line 701 of file class.ilObjStudyProgramme.php.
References getLPChildren().
Here is the call graph for this function:| ilObjStudyProgramme::getLPMode | ( | ) |
Definition at line 351 of file class.ilObjStudyProgramme.php.
References getSettings().
Referenced by addNode(), canBeCompleted(), and nodeInserted().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjStudyProgramme::getMembers | ( | ) |
get usr_ids with any progress on this node
Definition at line 1096 of file class.ilObjStudyProgramme.php.
References getAssignments().
Here is the call graph for this function:
|
protected |
Get member-ids of a certain source.
| InvalidArgumentException | if $src_type is not in AutoMembershipSource-types |
Definition at line 1418 of file class.ilObjStudyProgramme.php.
Referenced by enableAutomaticMembershipSource(), and getApplicableMembershipSourceForUser().
Here is the caller graph for this function:
|
protected |
Definition at line 1654 of file class.ilObjStudyProgramme.php.
| 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 543 of file class.ilObjStudyProgramme.php.
References $parent, ilObject\getRefId(), and throwIfNotInTree().
Referenced by ilObjStudyProgrammeTreeExplorerGUI\listItemStart(), moveTo(), removeNode(), and updateLastChange().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjStudyProgramme::getParents | ( | bool | $include_references = false | ) |
Get all parents of the node, where the root of the program comes first.
Definition at line 586 of file class.ilObjStudyProgramme.php.
References $parent, and getReferencesTo().
Referenced by getRoot().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjStudyProgramme::getPoints | ( | ) |
Get the amount of points.
Definition at line 331 of file class.ilObjStudyProgramme.php.
References getSettings().
Here is the call graph for this function:
|
protected |
Definition at line 152 of file class.ilObjStudyProgramme.php.
References getRefIdFor().
Here is the call graph for this function:
|
staticprotected |
Get all (not OUTDATED) StudyProgrammes monitoring this category.
Definition at line 1297 of file class.ilObjStudyProgramme.php.
References ilObject\$db, ilObject\_getAllReferences(), ilStudyProgrammeDIC\dic(), and ILIAS\Repository\int().
Here is the call graph for this function:
|
staticprotected |
Get all StudyProgrammes monitoring this membership-source.
Definition at line 1429 of file class.ilObjStudyProgramme.php.
References ilObject\$db, ilObject\_getAllReferences(), ilStudyProgrammeDIC\dic(), and ILIAS\Repository\int().
Here is the call graph for this function:
|
protected |
Definition at line 557 of file class.ilObjStudyProgramme.php.
References $id, ilObject\$tree, ilObject\_getAllReferences(), ilContainerReference\_lookupSourceIds(), ilObject\getId(), and ilTree\isDeleted().
Referenced by getParents(), and getReferencesToSelf().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjStudyProgramme::getReferencesToSelf | ( | ) |
Definition at line 576 of file class.ilObjStudyProgramme.php.
References getReferencesTo().
Here is the call graph for this function:
|
static |
Definition at line 143 of file class.ilObjStudyProgramme.php.
References ilObject\_getAllReferences().
Referenced by ilStudyProgrammeMailMemberSearchGUI\getRootPrgRefId(), ilStudyProgrammeUserTable\lookupTitle(), ilObjStudyProgrammeMembersGUI\removeAssignment(), and ilPRGMail\sendMail().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjStudyProgramme::getRoot | ( | ) |
Get the ilObjStudyProgramme that is the root node of the tree this programme is in.
Definition at line 654 of file class.ilObjStudyProgramme.php.
References getParents().
Here is the call graph for this function:| ilObjStudyProgramme::getSettings | ( | ) |
Definition at line 205 of file class.ilObjStudyProgramme.php.
References ilObject\getId(), and getSettingsRepository().
Referenced by adjustLPMode(), ilObjStudyProgrammeSettingsGUI\buildForm(), cloneObject(), deleteSettings(), ilStudyProgrammeChangeDeadlineGUI\getDeadlineSubForm(), getLastChange(), getLPMode(), getPoints(), getStatus(), getSubType(), ilStudyProgrammeChangeExpireDateGUI\getValidityOfQualificationSubForm(), hasAdvancedMetadata(), isAutoContentApplicable(), nodeInserted(), setPoints(), setStatus(), update(), and updateLastChange().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 174 of file class.ilObjStudyProgramme.php.
References $settings_repository.
Referenced by assignUser(), changeAmountOfPoints(), changeProgressDeadline(), changeProgressValidityDate(), create(), deleteSettings(), getSettings(), markAccredited(), markNotRelevant(), markRelevant(), succeed(), unmarkAccredited(), updatePlanFromRepository(), and updateSettings().
Here is the caller graph for this function:| ilObjStudyProgramme::getSpecificAssignment | ( | int | $assignment_id | ) |
Definition at line 1019 of file class.ilObjStudyProgramme.php.
| ilObjStudyProgramme::getStatus | ( | ) |
Definition at line 389 of file class.ilObjStudyProgramme.php.
References getSettings().
Referenced by assignUser(), ilStudyProgrammeIndividualPlanProgressListGUI\getTitleForItem(), isActive(), and isAutoContentApplicable().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjStudyProgramme::getSubType | ( | ) |
Gets the SubType Object.
Definition at line 417 of file class.ilObjStudyProgramme.php.
References getSettings().
Referenced by updateCustomIcon().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
| ilObjStudyProgramme::hasAdvancedMetadata | ( | ) |
Definition at line 294 of file class.ilObjStudyProgramme.php.
References ilObject\$type, and getSettings().
Here is the call graph for this function:| ilObjStudyProgramme::hasAssignmentOf | ( | int | $user_id | ) |
Check whether user is assigned to this program or any node above.
Definition at line 1047 of file class.ilObjStudyProgramme.php.
References getAmountOfAssignmentsOf().
Here is the call graph for this function:| ilObjStudyProgramme::hasAssignments | ( | ) |
Are there any assignments on this node or any node above?
Definition at line 1124 of file class.ilObjStudyProgramme.php.
References ilObject\getId(), and ILIAS\Repository\lng().
Here is the call graph for this function:| ilObjStudyProgramme::hasAssignmentsOfSingleProgramForUser | ( | int | $usr_id | ) |
Get assignments of user to this program-node only.
Definition at line 1149 of file class.ilObjStudyProgramme.php.
References getAssignmentsOfSingleProgramForUser().
Here is the call graph for this function:| ilObjStudyProgramme::hasAutomaticContentCategories | ( | ) |
Definition at line 1219 of file class.ilObjStudyProgramme.php.
References getAutomaticContentCategories().
Here is the call graph for this function:| ilObjStudyProgramme::hasChildren | ( | bool | $include_references = false | ) |
Does this StudyProgramme have other ilObjStudyProgrammes as children?
| ilStudyProgrammeTreeException |
Definition at line 618 of file class.ilObjStudyProgramme.php.
References getAmountOfChildren().
Here is the call graph for this function:| ilObjStudyProgramme::hasContentPage | ( | ) |
Definition at line 1877 of file class.ilObjStudyProgramme.php.
References ilObject\getId().
Referenced by createContentPage().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjStudyProgramme::hasLPChildren | ( | ) |
Definition at line 717 of file class.ilObjStudyProgramme.php.
References getAmountOfLPChildren().
Referenced by isAutoContentApplicable().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjStudyProgramme::hasRelevantProgresses | ( | ) |
Are there any users that have a relevant progress on this programme?
Definition at line 1183 of file class.ilObjStudyProgramme.php.
References ilObject\getId(), and ILIAS\Repository\lng().
Referenced by canBeRemoved().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 111 of file class.ilObjStudyProgramme.php.
References ilObjStudyProgrammeCache\singleton().
Here is the call graph for this function:| ilObjStudyProgramme::isActive | ( | ) |
Definition at line 409 of file class.ilObjStudyProgramme.php.
References getStatus(), and ilStudyProgrammeSettings\STATUS_ACTIVE.
Here is the call graph for this function:| ilObjStudyProgramme::isAutoContentApplicable | ( | ) |
AutoContent should only be available in active- or draft-mode, and only, if there is no sub-programme.
| ilStudyProgrammeTreeException |
Definition at line 1327 of file class.ilObjStudyProgramme.php.
References getAmountOfChildren(), getSettings(), getStatus(), hasLPChildren(), ilStudyProgrammeSettings\STATUS_ACTIVE, and ilStudyProgrammeSettings\STATUS_DRAFT.
Here is the call graph for this function:| ilObjStudyProgramme::isCertificateActive | ( | ) |
Definition at line 428 of file class.ilObjStudyProgramme.php.
References $certificate_template_repository, ilCertificateTemplateRepository\fetchCurrentlyUsedCertificate(), and ilObject\getId().
Here is the call graph for this function:| ilObjStudyProgramme::markAccredited | ( | int | $assignment_id, |
| int | $acting_usr_id, | ||
| ilPRGMessageCollection | $err_collection | ||
| ) |
Definition at line 1667 of file class.ilObjStudyProgramme.php.
References ilObject\getId(), and getSettingsRepository().
Here is the call graph for this function:| ilObjStudyProgramme::markNotRelevant | ( | int | $assignment_id, |
| int | $acting_usr_id, | ||
| ilPRGMessageCollection | $err_collection | ||
| ) |
Definition at line 1703 of file class.ilObjStudyProgramme.php.
References ilObject\getId(), getSettingsRepository(), and refreshLPStatus().
Here is the call graph for this function:| ilObjStudyProgramme::markRelevant | ( | int | $assignment_id, |
| int | $acting_usr_id, | ||
| ilPRGMessageCollection | $err_collection | ||
| ) |
Definition at line 1721 of file class.ilObjStudyProgramme.php.
References ilObject\getId(), getSettingsRepository(), and refreshLPStatus().
Here is the call graph for this function:| ilObjStudyProgramme::moveTo | ( | ilObjStudyProgramme | $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 917 of file class.ilObjStudyProgramme.php.
References $DIC, $parent, clearChildrenCache(), clearLPChildrenCache(), clearParentCache(), getParent(), and ilObject\getRefId().
Here is the call graph for this function:| ilObjStudyProgramme::nodeInserted | ( | $prg | ) |
Clears child cache and adds progress for new node.
called by ilObjStudyProgrammeReference::putInTree, e.g.
| ilObjStudyProgrammeReference | ilObjStudyProgramme | $prg |
| ilStudyProgrammeTreeException | |
| ilException |
Definition at line 833 of file class.ilObjStudyProgramme.php.
References addMissingProgresses(), clearChildrenCache(), getLPMode(), getSettings(), ilStudyProgrammeSettings\MODE_LP_COMPLETED, and ilStudyProgrammeSettings\MODE_POINTS.
Here is the call graph for this function:| ilObjStudyProgramme::putInTree | ( | int | $parent_ref_id | ) |
Overwritten from ilObject.
Calls nodeInserted on parent object if parent object is another program.
| int | $parent_ref_id |
| ilStudyProgrammeTreeException | |
| ilException |
Definition at line 861 of file class.ilObjStudyProgramme.php.
References ilObject\_lookupType().
Referenced by addNode().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 1659 of file class.ilObjStudyProgramme.php.
References ilLPStatusWrapper\_updateStatus(), and ilObject\getId().
Referenced by acknowledgeCourses(), changeAmountOfPoints(), changeProgressDeadline(), changeProgressValidityDate(), markNotRelevant(), markRelevant(), removeAssignment(), unmarkAccredited(), and updatePlanFromRepository().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjStudyProgramme::removeAssignment | ( | ilPRGAssignment | $assignment | ) |
Remove an assignment from this program.
Throws when assignment doesn't have this program as root node.
| ilException |
Definition at line 997 of file class.ilObjStudyProgramme.php.
References ilPRGAssignment\getId(), ilObject\getId(), ilPRGAssignment\getProgresses(), ilPRGAssignment\getRootId(), ilPRGAssignment\getUserId(), and refreshLPStatus().
Here is the call graph for this function:
|
static |
Check, if a category is under surveillance and automatically remove the deleted course.
| ilStudyProgrammeTreeException |
Definition at line 1282 of file class.ilObjStudyProgramme.php.
Referenced by ilStudyProgrammeAppEventListener\removeCrsFromProgrammes().
Here is the caller graph for this function:
|
static |
Definition at line 1459 of file class.ilObjStudyProgramme.php.
References ilPRGAssignmentDBRepository\delete(), ilStudyProgrammeDIC\dic(), ilStudyProgrammeAutoMembershipSource\SOURCE_MAPPING, and ilPRGAssignmentDBRepository\store().
Referenced by ilStudyProgrammeAppEventListener\removeMemberFromProgrammes().
Here is the call graph for this function:
Here is the caller graph for this function:| 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 880 of file class.ilObjStudyProgramme.php.
References canBeRemoved(), clearChildrenCache(), clearParentCache(), ilObject\getId(), getParent(), and ilObject\getRefId().
Here is the call graph for this function:| ilObjStudyProgramme::resetExpiryInfoSentFor | ( | ilPRGAssignment | $ass | ) |
Definition at line 1029 of file class.ilObjStudyProgramme.php.
| ilObjStudyProgramme::resetRiskyToFailSentFor | ( | ilPRGAssignment | $ass | ) |
Definition at line 1039 of file class.ilObjStudyProgramme.php.
| ilObjStudyProgramme::setPoints | ( | int | $points | ) |
Set the amount of points.
| ilException |
Definition at line 341 of file class.ilObjStudyProgramme.php.
References ILIAS\LTI\ToolProvider\$settings, getSettings(), updateLastChange(), and updateSettings().
Here is the call graph for this function:
|
static |
Succeed all StudyProgramme(Nodes) where the object with the given id (a CRSR) is in a Programme with MODE_LP_COMPLETED.
This is exclusively called via event "Services/Tracking, updateStatus" (onServiceTrackingUpdateStatus)
| int | $ref_id | the RefId of the CRSR; used to find the PRG it's in |
| int | $obj_id | the ObjId of the CRS; used as "triggering object" |
| int | $user_id | the user's id to succeed for; all assignments are affected |
| ilException |
Definition at line 1534 of file class.ilObjStudyProgramme.php.
References $DIC, ilObject\$tree, ilTree\getParentNodeData(), and ilStudyProgrammeSettings\MODE_LP_COMPLETED.
Referenced by ilStudyProgrammeAppEventListener\onServiceTrackingUpdateStatus().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjStudyProgramme::setStatus | ( | int | $a_status | ) |
Set the status of the node.
| ilException |
Definition at line 399 of file class.ilObjStudyProgramme.php.
References ILIAS\LTI\ToolProvider\$settings, getSettings(), updateLastChange(), and updateSettings().
Here is the call graph for this function:| ilObjStudyProgramme::statusToRepr | ( | int | $status | ) |
Get a user readable representation of a status.
Definition at line 1855 of file class.ilObjStudyProgramme.php.
References ilObject\$lng, ilLanguage\loadLanguageModule(), ilPRGProgress\STATUS_ACCREDITED, ilPRGProgress\STATUS_COMPLETED, ilPRGProgress\STATUS_FAILED, ilPRGProgress\STATUS_IN_PROGRESS, ilPRGProgress\STATUS_NOT_RELEVANT, and ilLanguage\txt().
Here is the call graph for this function:| 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 1229 of file class.ilObjStudyProgramme.php.
References ilObject\getId().
Here is the call graph for this function:| ilObjStudyProgramme::storeAutomaticMembershipSource | ( | string | $type, |
| int | $src_id | ||
| ) |
Store a source to be monitored for automatic memberships.
Definition at line 1363 of file class.ilObjStudyProgramme.php.
References ilObject\getId().
Here is the call graph for this function:| ilObjStudyProgramme::storeExpiryInfoSentFor | ( | ilPRGAssignment | $ass | ) |
Definition at line 1024 of file class.ilObjStudyProgramme.php.
| ilObjStudyProgramme::storeRiskyToFailSentFor | ( | ilPRGAssignment | $ass | ) |
Definition at line 1034 of file class.ilObjStudyProgramme.php.
| ilObjStudyProgramme::succeed | ( | int | $usr_id, |
| int | $triggering_obj_id, | ||
| ilPRGAssignment | $ass = null |
||
| ) |
Definition at line 1553 of file class.ilObjStudyProgramme.php.
References ilObject\getId(), and getSettingsRepository().
Here is the call graph for this function:
|
protected |
| ilStudyProgrammeTreeException | if object is not in tree. |
Definition at line 725 of file class.ilObjStudyProgramme.php.
Referenced by addNode(), applyToSubTreeNodes(), getChildren(), getLPChildren(), and getParent().
Here is the caller graph for this function:| ilObjStudyProgramme::unmarkAccredited | ( | int | $assignment_id, |
| int | $acting_usr_id, | ||
| ilPRGMessageCollection | $err_collection | ||
| ) |
Definition at line 1685 of file class.ilObjStudyProgramme.php.
References ilObject\getId(), getSettingsRepository(), and refreshLPStatus().
Here is the call graph for this function:| ilObjStudyProgramme::update | ( | ) |
| ilException |
Definition at line 248 of file class.ilObjStudyProgramme.php.
References ilObject\getId(), getSettings(), and ilAdvancedMDRecord\saveObjRecSelection().
Referenced by updateLastChange().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjStudyProgramme::updateCustomIcon | ( | ) |
Definition at line 1573 of file class.ilObjStudyProgramme.php.
References ilFileUtils\getDataDir(), ilObject\getId(), getSubType(), and ilObject\getType().
Referenced by ilObjStudyProgrammeSettingsGUI\buildForm().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Update last change timestamp on this node and its parents.
Definition at line 1514 of file class.ilObjStudyProgramme.php.
References $parent, getParent(), getSettings(), and update().
Referenced by setPoints(), and setStatus().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjStudyProgramme::updatePlanFromRepository | ( | int | $assignment_id, |
| int | $acting_usr_id, | ||
| ilPRGMessageCollection | $err_collection = null |
||
| ) |
Definition at line 1799 of file class.ilObjStudyProgramme.php.
References getSettingsRepository(), and refreshLPStatus().
Here is the call graph for this function:| ilObjStudyProgramme::updateSettings | ( | ilStudyProgrammeSettings | $settings | ) |
Definition at line 210 of file class.ilObjStudyProgramme.php.
References ilObject\getId(), ilStudyProgrammeSettings\getObjId(), and getSettingsRepository().
Referenced by ilObjStudyProgrammeSettingsGUI\buildForm(), setPoints(), and setStatus().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 45 of file class.ilObjStudyProgramme.php.
Referenced by getAssignmentRepository().
|
protected |
Definition at line 46 of file class.ilObjStudyProgramme.php.
|
protected |
Definition at line 47 of file class.ilObjStudyProgramme.php.
|
protected |
Definition at line 37 of file class.ilObjStudyProgramme.php.
Referenced by getChildren().
|
protected |
Definition at line 67 of file class.ilObjStudyProgramme.php.
|
protected |
Definition at line 49 of file class.ilObjStudyProgramme.php.
|
protected |
Definition at line 65 of file class.ilObjStudyProgramme.php.
Referenced by __construct().
|
protected |
Definition at line 68 of file class.ilObjStudyProgramme.php.
Referenced by getLogger().
|
protected |
Definition at line 42 of file class.ilObjStudyProgramme.php.
Referenced by getLPChildren().
|
protected |
Definition at line 57 of file class.ilObjStudyProgramme.php.
Referenced by getLocalMembers().
|
protected |
Definition at line 48 of file class.ilObjStudyProgramme.php.
|
protected |
Definition at line 66 of file class.ilObjStudyProgramme.php.
|
protected |
Definition at line 32 of file class.ilObjStudyProgramme.php.
Referenced by getCreatableSubObjects(), getParent(), getParents(), moveTo(), and updateLastChange().
|
protected |
Definition at line 62 of file class.ilObjStudyProgramme.php.
|
protected |
Definition at line 50 of file class.ilObjStudyProgramme.php.
Referenced by getSettingsRepository().
|
staticprotected |
Definition at line 27 of file class.ilObjStudyProgramme.php.
|
protected |
Definition at line 44 of file class.ilObjStudyProgramme.php.
|
protected |
Definition at line 64 of file class.ilObjStudyProgramme.php.
| const ilObjStudyProgramme::CP_TYPE = 'cont' |
Definition at line 25 of file class.ilObjStudyProgramme.php.