ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Class ilObjStudyProgrammeMembersGUI. More...
Public Member Functions | |
__construct ($a_parent_gui, $a_ref_id, ilStudyProgrammeUserProgressDB $sp_user_progress_db) | |
executeCommand () | |
addUsers ($a_users) | |
Assigns a users to SP. More... | |
viewCompletedCourses ($a_completed_courses, $a_users) | |
Shows list of completed courses for each user if he should be assigned. More... | |
addUsersWithAcknowledgedCourses () | |
Assign users if they have any completed course. More... | |
markAccredited () | |
Mark SP for single user accredited. More... | |
markAccreditedMulti () | |
Mark SP for users accredited. More... | |
unmarkAccredited () | |
Unmark SP for single user accredited. More... | |
unmarkAccreditedMulti () | |
Unmark SP for users accredited. More... | |
markRelevantMulti () | |
Mark SP as relevant for users. More... | |
markNotRelevantMulti () | |
Mark SP as not relevant for users. More... | |
updateFromCurrentPlanMulti () | |
Update user plan from current SP structure if they has no individual plan. More... | |
removeUser () | |
Remove single user from SP. More... | |
getStudyProgramme ($a_ref_id=null) | |
Get studyprogramm object for ref_id Use this ref_id if argument is null. More... | |
getLinkTargetForAction ($a_action, $a_prgrs_id, $a_ass_id) | |
Get the link target for an action on user progress. More... | |
Data Fields | |
$ctrl | |
$tpl | |
$object | |
$ilias | |
$lng | |
$toolbar | |
$user | |
Protected Member Functions | |
view () | |
Shows table with all members of the SP. More... | |
_addUsers ($a_users) | |
Add users to SP. More... | |
getPostPrgsIds () | |
Get post prgs ids. More... | |
markAccreditedById ($prgrs_id) | |
Accredited SP. More... | |
unmarkAccreditedByProgressId ($prgrs_id) | |
Deaccredited SP. More... | |
removeUserMulti () | |
Remove user from SP. More... | |
remove ($prgrs_id) | |
Rmeove user. More... | |
getProgressObject ($prgrs_id) | |
Get progress object for prgrs id. More... | |
getPrgrsId () | |
Get current prgrs_id from URL. More... | |
showSuccessMessage ($a_lng_var) | |
Shows ilutil success message. More... | |
showInfoMessage ($a_lng_var) | |
Shows ilutil failed message. More... | |
initSearchGUI () | |
Protected Attributes | |
$ilAccess | |
$ilLog | |
$parent_gui | |
$sp_user_progress_db | |
$progress_objects | |
Class ilObjStudyProgrammeMembersGUI.
ilObjStudyProgrammeMembersGUI: ilStudyProgrammeRepositorySearchGUI ilObjStudyProgrammeMembersGUI: ilObjStudyProgrammeIndividualPlanGUI ilObjStudyProgrammeMembersGUI: ilObjFileGUI
Definition at line 16 of file class.ilObjStudyProgrammeMembersGUI.php.
ilObjStudyProgrammeMembersGUI::__construct | ( | $a_parent_gui, | |
$a_ref_id, | |||
ilStudyProgrammeUserProgressDB | $sp_user_progress_db | ||
) |
Definition at line 75 of file class.ilObjStudyProgrammeMembersGUI.php.
References $DIC, $ilAccess, $ilCtrl, $ilias, $ilLog, $ilUser, $lng, $sp_user_progress_db, $tpl, array, and user().
|
protected |
Add users to SP.
int[] | $a_users |
Definition at line 285 of file class.ilObjStudyProgrammeMembersGUI.php.
References array, getStudyProgramme(), and ilUtil\sendSuccess().
Referenced by addUsers(), and addUsersWithAcknowledgedCourses().
ilObjStudyProgrammeMembersGUI::addUsers | ( | $a_users | ) |
Assigns a users to SP.
int[] | $a_users |
Definition at line 190 of file class.ilObjStudyProgrammeMembersGUI.php.
References _addUsers(), array, getStudyProgramme(), and viewCompletedCourses().
ilObjStudyProgrammeMembersGUI::addUsersWithAcknowledgedCourses | ( | ) |
Assign users if they have any completed course.
Definition at line 257 of file class.ilObjStudyProgrammeMembersGUI.php.
References $_POST, $users, _addUsers(), and getStudyProgramme().
ilObjStudyProgrammeMembersGUI::executeCommand | ( | ) |
Definition at line 109 of file class.ilObjStudyProgrammeMembersGUI.php.
ilObjStudyProgrammeMembersGUI::getLinkTargetForAction | ( | $a_action, | |
$a_prgrs_id, | |||
$a_ass_id | |||
) |
Get the link target for an action on user progress.
int | $a_action | One of ilStudyProgrammeUserProgress::ACTION_* |
int | $a_prgrs_id | Id of the progress object to act on. |
int | $a_ass_id | Id of the assignment object to act on. |
Definition at line 630 of file class.ilObjStudyProgrammeMembersGUI.php.
References ilStudyProgrammeUserProgress\ACTION_MARK_ACCREDITED, ilStudyProgrammeUserProgress\ACTION_REMOVE_USER, ilStudyProgrammeUserProgress\ACTION_SHOW_INDIVIDUAL_PLAN, ilStudyProgrammeUserProgress\ACTION_UNMARK_ACCREDITED, and ilObjStudyProgrammeIndividualPlanGUI\getLinkTargetView().
|
protected |
Get post prgs ids.
Definition at line 310 of file class.ilObjStudyProgrammeMembersGUI.php.
References $_POST, and showInfoMessage().
Referenced by markAccreditedMulti(), markNotRelevantMulti(), markRelevantMulti(), removeUserMulti(), unmarkAccreditedMulti(), and updateFromCurrentPlanMulti().
|
protected |
Get current prgrs_id from URL.
ilException | if no prgrs id is in url |
Definition at line 563 of file class.ilObjStudyProgrammeMembersGUI.php.
References $_GET.
Referenced by markAccredited(), removeUser(), and unmarkAccredited().
|
protected |
Get progress object for prgrs id.
int | $prgrs_id |
Definition at line 546 of file class.ilObjStudyProgrammeMembersGUI.php.
Referenced by markAccreditedById(), markNotRelevantMulti(), markRelevantMulti(), remove(), unmarkAccreditedByProgressId(), unmarkAccreditedMulti(), and updateFromCurrentPlanMulti().
ilObjStudyProgrammeMembersGUI::getStudyProgramme | ( | $a_ref_id = null | ) |
Get studyprogramm object for ref_id Use this ref_id if argument is null.
Definition at line 613 of file class.ilObjStudyProgrammeMembersGUI.php.
References ilObjStudyProgramme\getInstanceByRefId().
Referenced by _addUsers(), addUsers(), addUsersWithAcknowledgedCourses(), and view().
|
protected |
Definition at line 593 of file class.ilObjStudyProgrammeMembersGUI.php.
References array, and ilStudyProgrammeRepositorySearchGUI\fillAutoCompleteToolbar().
Referenced by view().
ilObjStudyProgrammeMembersGUI::markAccredited | ( | ) |
Mark SP for single user accredited.
Definition at line 325 of file class.ilObjStudyProgrammeMembersGUI.php.
References getPrgrsId(), markAccreditedById(), and showSuccessMessage().
|
protected |
Accredited SP.
int | $prgrs_id |
Definition at line 356 of file class.ilObjStudyProgrammeMembersGUI.php.
References getProgressObject(), and user().
Referenced by markAccredited(), and markAccreditedMulti().
ilObjStudyProgrammeMembersGUI::markAccreditedMulti | ( | ) |
Mark SP for users accredited.
Definition at line 339 of file class.ilObjStudyProgrammeMembersGUI.php.
References $key, getPostPrgsIds(), markAccreditedById(), and showSuccessMessage().
ilObjStudyProgrammeMembersGUI::markNotRelevantMulti | ( | ) |
Mark SP as not relevant for users.
Definition at line 435 of file class.ilObjStudyProgrammeMembersGUI.php.
References $key, getPostPrgsIds(), getProgressObject(), showSuccessMessage(), and user().
ilObjStudyProgrammeMembersGUI::markRelevantMulti | ( | ) |
Mark SP as relevant for users.
Definition at line 411 of file class.ilObjStudyProgrammeMembersGUI.php.
References $key, getPostPrgsIds(), getProgressObject(), showSuccessMessage(), ilStudyProgrammeProgress\STATUS_ACCREDITED, ilStudyProgrammeProgress\STATUS_IN_PROGRESS, and user().
|
protected |
Rmeove user.
int | $prgrs_id |
Definition at line 528 of file class.ilObjStudyProgrammeMembersGUI.php.
References getProgressObject().
ilObjStudyProgrammeMembersGUI::removeUser | ( | ) |
Remove single user from SP.
Definition at line 486 of file class.ilObjStudyProgrammeMembersGUI.php.
References getPrgrsId(), and showSuccessMessage().
|
protected |
Remove user from SP.
Definition at line 500 of file class.ilObjStudyProgrammeMembersGUI.php.
References $key, array, getPostPrgsIds(), showInfoMessage(), and showSuccessMessage().
|
protected |
Shows ilutil failed message.
Definition at line 587 of file class.ilObjStudyProgrammeMembersGUI.php.
References ilUtil\sendInfo().
Referenced by getPostPrgsIds(), removeUserMulti(), and updateFromCurrentPlanMulti().
|
protected |
Shows ilutil success message.
Definition at line 576 of file class.ilObjStudyProgrammeMembersGUI.php.
References ilUtil\sendSuccess().
Referenced by markAccredited(), markAccreditedMulti(), markNotRelevantMulti(), markRelevantMulti(), removeUser(), removeUserMulti(), unmarkAccredited(), unmarkAccreditedMulti(), and updateFromCurrentPlanMulti().
ilObjStudyProgrammeMembersGUI::unmarkAccredited | ( | ) |
Unmark SP for single user accredited.
Definition at line 367 of file class.ilObjStudyProgrammeMembersGUI.php.
References getPrgrsId(), showSuccessMessage(), and unmarkAccreditedByProgressId().
|
protected |
Deaccredited SP.
int | $prgrs_id |
Definition at line 383 of file class.ilObjStudyProgrammeMembersGUI.php.
References getProgressObject().
Referenced by unmarkAccredited(), and unmarkAccreditedMulti().
ilObjStudyProgrammeMembersGUI::unmarkAccreditedMulti | ( | ) |
Unmark SP for users accredited.
Definition at line 394 of file class.ilObjStudyProgrammeMembersGUI.php.
References $key, getPostPrgsIds(), getProgressObject(), showSuccessMessage(), ilStudyProgrammeProgress\STATUS_ACCREDITED, and unmarkAccreditedByProgressId().
ilObjStudyProgrammeMembersGUI::updateFromCurrentPlanMulti | ( | ) |
Update user plan from current SP structure if they has no individual plan.
Definition at line 453 of file class.ilObjStudyProgrammeMembersGUI.php.
References $key, array, getPostPrgsIds(), getProgressObject(), showInfoMessage(), and showSuccessMessage().
|
protected |
Shows table with all members of the SP.
Definition at line 166 of file class.ilObjStudyProgrammeMembersGUI.php.
References $table, ilObject\_lookupObjId(), getStudyProgramme(), initSearchGUI(), and ilUtil\sendInfo().
ilObjStudyProgrammeMembersGUI::viewCompletedCourses | ( | $a_completed_courses, | |
$a_users | |||
) |
Shows list of completed courses for each user if he should be assigned.
int[] | $a_completed_courses |
int[] | $a_users |
Definition at line 221 of file class.ilObjStudyProgrammeMembersGUI.php.
References $names, $table, $tpl, and ilObjUser\_lookupName().
Referenced by addUsers().
ilObjStudyProgrammeMembersGUI::$ctrl |
Definition at line 21 of file class.ilObjStudyProgrammeMembersGUI.php.
|
protected |
Definition at line 31 of file class.ilObjStudyProgrammeMembersGUI.php.
Referenced by __construct().
ilObjStudyProgrammeMembersGUI::$ilias |
Definition at line 46 of file class.ilObjStudyProgrammeMembersGUI.php.
Referenced by __construct().
|
protected |
Definition at line 41 of file class.ilObjStudyProgrammeMembersGUI.php.
Referenced by __construct().
ilObjStudyProgrammeMembersGUI::$lng |
Definition at line 51 of file class.ilObjStudyProgrammeMembersGUI.php.
Referenced by __construct().
ilObjStudyProgrammeMembersGUI::$object |
Definition at line 36 of file class.ilObjStudyProgrammeMembersGUI.php.
|
protected |
Definition at line 63 of file class.ilObjStudyProgrammeMembersGUI.php.
|
protected |
Definition at line 73 of file class.ilObjStudyProgrammeMembersGUI.php.
|
protected |
Definition at line 68 of file class.ilObjStudyProgrammeMembersGUI.php.
Referenced by __construct().
ilObjStudyProgrammeMembersGUI::$toolbar |
Definition at line 56 of file class.ilObjStudyProgrammeMembersGUI.php.
ilObjStudyProgrammeMembersGUI::$tpl |
Definition at line 26 of file class.ilObjStudyProgrammeMembersGUI.php.
Referenced by __construct(), and viewCompletedCourses().
ilObjStudyProgrammeMembersGUI::$user |
Definition at line 61 of file class.ilObjStudyProgrammeMembersGUI.php.