ILIAS  trunk Revision v11.0_alpha-1715-g7fc467680fb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilObjStudyProgrammeMembersGUI Class Reference

ilObjStudyProgrammeMembersGUI: ilStudyProgrammeRepositorySearchGUI ilObjStudyProgrammeMembersGUI: ilObjStudyProgrammeIndividualPlanGUI ilObjStudyProgrammeMembersGUI: ilObjFileGUI ilObjStudyProgrammeMembersGUI: ilStudyProgrammeMailMemberSearchGUI ilObjStudyProgrammeMembersGUI: ilStudyProgrammeChangeExpireDateGUI ilObjStudyProgrammeMembersGUI: ilStudyProgrammeChangeDeadlineGUI ilObjStudyProgrammeMembersGUI: ilFormPropertyDispatchGUI More...

+ Collaboration diagram for ilObjStudyProgrammeMembersGUI:

Public Member Functions

 __construct (protected ilGlobalTemplateInterface $tpl, protected ilCtrl $ctrl, protected ilToolbarGUI $toolbar, protected ilLanguage $lng, protected ilObjUser $user, protected ilTabsGUI $tabs, protected ilPRGAssignmentDBRepository $assignment_db, protected ilStudyProgrammeRepositorySearchGUI $repository_search_gui, protected ilObjStudyProgrammeIndividualPlanGUI $individual_plan_gui, protected ilPRGMessagePrinter $messages, protected Factory $data_factory, protected ilConfirmationGUI $confirmation_gui, protected ILIAS\HTTP\Wrapper\WrapperFactory $http_wrapper, protected ILIAS\Refinery\Factory $refinery, protected ILIAS\UI\Factory $ui_factory, protected ILIAS\UI\Renderer $ui_renderer, protected GuzzleHttp\Psr7\ServerRequest $request,)
 
 setParentGUI (ilObjectGUI $a_parent_gui)
 
 setRefId (int $ref_id)
 
 executeCommand ()
 
 applyFilter ()
 
 resetFilter ()
 
 addUsers (array $user_ids)
 Assigns a users to SP. More...
 
 viewCompletedCourses (array $assignments)
 Shows list of completed courses for each assignment. More...
 
 unmarkAccreditedMulti ()
 
 markRelevant ()
 
 markRelevantMulti ()
 
 markNotRelevant ()
 
 markNotRelevantMulti ()
 
 updateFromCurrentPlan ()
 
 updateFromCurrentPlanMulti ()
 
 confirmedUpdateFromCurrentPlan ()
 
 acknowledgeCourses ()
 
 acknowledgeCoursesMulti ()
 
 confirmedAcknowledgeAllCourses ()
 
 confirmedAcknowledgeCourses ()
 
 changeDeadline ()
 
 changeDeadlineMulti ()
 
 changeExpireDate ()
 
 changeExpireDateMulti ()
 
 removeUser ()
 
 getStudyProgramme (?int $ref_id=null)
 Get studyprogramm object for ref_id Use this ref_id if argument is null. More...
 
 getLinkTargetForAction (string $action, string $prgrs_id, int $ass_id)
 Get the link target for an action on user progress. More...
 
 updateCertificate ()
 
 updateCertificateMulti ()
 
 confirmedUpdateCertificate ()
 
 removeCertificate ()
 
 removeCertificateMulti ()
 
 confirmedRemovalOfCertificate ()
 

Data Fields

const ACTION_MARK_ACCREDITED = "mark_accredited"
 
const ACTION_UNMARK_ACCREDITED = "unmark_accredited"
 
const ACTION_SHOW_INDIVIDUAL_PLAN = "show_individual_plan"
 
const ACTION_REMOVE_USER = "remove_user"
 
const ACTION_CHANGE_DEADLINE = "change_deadline"
 
const ACTION_MARK_RELEVANT = "mark_relevant"
 
const ACTION_UNMARK_RELEVANT = "unmark_relevant"
 
const ACTION_UPDATE_FROM_CURRENT_PLAN = "update_from_current_plan"
 
const ACTION_CHANGE_EXPIRE_DATE = "change_expire_date"
 
const ACTION_UPDATE_CERTIFICATE = "update_certificate"
 
const ACTION_ACKNOWLEDGE_COURSES = "acknowledge_completed_courses"
 
const ACTION_REMOVE_CERTIFICATE = "remove_certificate"
 
const F_COMMAND_OPTION_ALL = 'select_cmd_all'
 
const F_ALL_PROGRESS_IDS = 'all_progress_ids'
 
const F_SELECTED_PROGRESS_IDS = 'prgs_ids'
 
const F_SELECTED_USER_IDS = 'usrids'
 

Protected Member Functions

 getDefaultCommand ()
 
 getAssignmentsById ()
 
 getMembersTableGUI ()
 
 getPostPrgsIds ()
 
 getGetPrgsIds ()
 
 getPrgrsId ()
 
 view ()
 Shows table with all members of the SP. More...
 
 getAddableUsers (array $users)
 
 markAccredited ()
 
 markAccreditedMulti ()
 
 markAccreditedByProgressId (PRGProgressId $prgrs_id, ilPRGMessageCollection $msgs)
 
 unmarkAccredited ()
 
 unmarkAccreditedByProgressId (PRGProgressId $prgrs_id, ilPRGMessageCollection $msgs)
 
 getAssignmentsFromQuery ()
 
 removeUserMulti ()
 
 confirmRemoveUsers (array $progress_ids)
 
 confirmedRemoveUsers ()
 
 removeAssignment (PRGProgressId $pgs_id)
 Remove user. More...
 
 showSuccessMessage (string $lng_var)
 Shows ilUtil success message. More...
 
 showInfoMessage (string $lng_var)
 Shows ilUtil failed message. More...
 
 initSearchGUI ()
 
 initMailToMemberButton (ilToolbarGUI $toolbar, bool $separator=false)
 
 mayCurrentUserEditProgressForUser (int $usr_id)
 
 getMessageCollection (string $topic)
 
 showMessages (ilPRGMessageCollection $msg)
 
 mailToSelectedUsers ()
 

Protected Attributes

ilObjStudyProgramme $object
 
ilPRGPermissionsHelper $permissions
 
ilObjectGUI $parent_gui
 
int $ref_id
 

Private Attributes

const DEFAULT_CMD = "view"
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilObjStudyProgrammeMembersGUI::__construct ( protected ilGlobalTemplateInterface  $tpl,
protected ilCtrl  $ctrl,
protected ilToolbarGUI  $toolbar,
protected ilLanguage  $lng,
protected ilObjUser  $user,
protected ilTabsGUI  $tabs,
protected ilPRGAssignmentDBRepository  $assignment_db,
protected ilStudyProgrammeRepositorySearchGUI  $repository_search_gui,
protected ilObjStudyProgrammeIndividualPlanGUI  $individual_plan_gui,
protected ilPRGMessagePrinter  $messages,
protected Factory  $data_factory,
protected ilConfirmationGUI  $confirmation_gui,
protected ILIAS\HTTP\Wrapper\WrapperFactory  $http_wrapper,
protected ILIAS\Refinery\Factory  $refinery,
protected ILIAS\UI\Factory  $ui_factory,
protected ILIAS\UI\Renderer  $ui_renderer,
protected GuzzleHttp\Psr7\ServerRequest  $request 
)

Definition at line 63 of file class.ilObjStudyProgrammeMembersGUI.php.

References ilLanguage\loadLanguageModule(), null, and ILIAS\Repository\toolbar().

81  {
82  $this->object = null;
83  $this->permissions = null;
84 
85  $lng->loadLanguageModule("prg");
86  $this->toolbar->setPreventDoubleSubmission(true);
87  }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
global $lng
Definition: privfeed.php:31
+ Here is the call graph for this function:

Member Function Documentation

◆ acknowledgeCourses()

ilObjStudyProgrammeMembersGUI::acknowledgeCourses ( )

Definition at line 652 of file class.ilObjStudyProgrammeMembersGUI.php.

References getPrgrsId(), and viewCompletedCourses().

652  : string
653  {
654  $progress_id = $this->getPrgrsId();
655  $assignments = [
656  $this->assignment_db->get($progress_id->getAssignmentId())
657  ];
658  return $this->ui_renderer->render(
659  $this->viewCompletedCourses($assignments)
660  );
661  }
viewCompletedCourses(array $assignments)
Shows list of completed courses for each assignment.
+ Here is the call graph for this function:

◆ acknowledgeCoursesMulti()

ilObjStudyProgrammeMembersGUI::acknowledgeCoursesMulti ( )

Definition at line 663 of file class.ilObjStudyProgrammeMembersGUI.php.

References getPostPrgsIds(), and viewCompletedCourses().

663  : string
664  {
665  $assignments = [];
666  foreach ($this->getPostPrgsIds() as $progress_id) {
667  $assignments[] = $this->assignment_db->get($progress_id->getAssignmentId());
668  }
669  return $this->ui_renderer->render(
670  $this->viewCompletedCourses($assignments)
671  );
672  }
viewCompletedCourses(array $assignments)
Shows list of completed courses for each assignment.
+ Here is the call graph for this function:

◆ addUsers()

ilObjStudyProgrammeMembersGUI::addUsers ( array  $user_ids)

Assigns a users to SP.

Parameters
string[]$user_ids
Returns
bool|void

Definition at line 347 of file class.ilObjStudyProgrammeMembersGUI.php.

References $user_id, ILIAS\Repository\ctrl(), getAddableUsers(), getStudyProgramme(), and ILIAS\Repository\lng().

348  {
349  $user_ids = $this->getAddableUsers($user_ids);
350  $prg = $this->getStudyProgramme();
351  $assignments = [];
352  $with_courses = [];
353 
354  foreach ($user_ids as $user_id) {
355  $ass = $prg->assignUser((int) $user_id);
356  $assignments[] = $ass;
357  if ($prg->getCompletedCourses((int) $user_id)) {
358  $with_courses[] = $ass;
359  }
360  }
361 
362  if (count($assignments) === 1) {
363  $this->tpl->setOnScreenMessage("success", $this->lng->txt("prg_added_member"), true);
364  }
365  if (count($assignments) > 1) {
366  $this->tpl->setOnScreenMessage("success", $this->lng->txt("prg_added_members"), true);
367  }
368 
369  if ($with_courses) {
370  $this->tpl->setContent(
371  $this->ui_renderer->render(
372  $this->viewCompletedCourses($assignments)
373  )
374  );
375  return true;
376 
377  } else {
378  $this->ctrl->redirect($this, "view");
379  }
380  }
getStudyProgramme(?int $ref_id=null)
Get studyprogramm object for ref_id Use this ref_id if argument is null.
+ Here is the call graph for this function:

◆ applyFilter()

ilObjStudyProgrammeMembersGUI::applyFilter ( )

Definition at line 326 of file class.ilObjStudyProgrammeMembersGUI.php.

References ILIAS\Repository\ctrl(), and getMembersTableGUI().

326  : void
327  {
328  $table = $this->getMembersTableGUI();
329  $table->resetOffset();
330  $table->writeFilterToSession();
331  $this->ctrl->redirect($this, "view");
332  }
+ Here is the call graph for this function:

◆ changeDeadline()

ilObjStudyProgrammeMembersGUI::changeDeadline ( )

Definition at line 749 of file class.ilObjStudyProgrammeMembersGUI.php.

References ILIAS\Repository\ctrl(), and getPrgrsId().

749  : void
750  {
751  $this->ctrl->setParameterByClass(
752  'ilStudyProgrammeChangeDeadlineGUI',
753  'prgrs_ids',
754  $this->getPrgrsId()
755  );
756 
757  $link = $this->ctrl->getLinkTargetByClass(
758  'ilStudyProgrammeChangeDeadlineGUI',
759  'showDeadlineConfig'
760  );
761 
762  $this->ctrl->clearParameterByClass('ilStudyProgrammeChangeDeadlineGUI', 'prgrs_ids');
763  $this->ctrl->redirectToURL($link);
764  }
+ Here is the call graph for this function:

◆ changeDeadlineMulti()

ilObjStudyProgrammeMembersGUI::changeDeadlineMulti ( )

Definition at line 766 of file class.ilObjStudyProgrammeMembersGUI.php.

References ILIAS\Repository\ctrl(), and getPostPrgsIds().

766  : void
767  {
768  $this->ctrl->setParameterByClass(
769  'ilStudyProgrammeChangeDeadlineGUI',
770  'prgrs_ids',
771  implode(',', $this->getPostPrgsIds())
772  );
773 
774  $link = $this->ctrl->getLinkTargetByClass(
775  'ilStudyProgrammeChangeDeadlineGUI',
776  'showDeadlineConfig'
777  );
778 
779  $this->ctrl->clearParameterByClass('ilStudyProgrammeChangeDeadlineGUI', 'prgrs_ids');
780  $this->ctrl->redirectToURL($link);
781  }
+ Here is the call graph for this function:

◆ changeExpireDate()

ilObjStudyProgrammeMembersGUI::changeExpireDate ( )

Definition at line 783 of file class.ilObjStudyProgrammeMembersGUI.php.

References ILIAS\Repository\ctrl(), and getPrgrsId().

783  : void
784  {
785  $this->ctrl->setParameterByClass(
786  'ilStudyProgrammeChangeExpireDateGUI',
787  'prgrs_ids',
788  $this->getPrgrsId()
789  );
790 
791  $link = $this->ctrl->getLinkTargetByClass(
792  'ilStudyProgrammeChangeExpireDateGUI',
793  'showExpireDateConfig'
794  );
795 
796  $this->ctrl->clearParameterByClass('ilStudyProgrammeChangeExpireDateGUI', 'prgrs_ids');
797  $this->ctrl->redirectToURL($link);
798  }
+ Here is the call graph for this function:

◆ changeExpireDateMulti()

ilObjStudyProgrammeMembersGUI::changeExpireDateMulti ( )

Definition at line 800 of file class.ilObjStudyProgrammeMembersGUI.php.

References ILIAS\Repository\ctrl(), and getPostPrgsIds().

800  : void
801  {
802  $this->ctrl->setParameterByClass(
803  'ilStudyProgrammeChangeExpireDateGUI',
804  'prgrs_ids',
805  implode(',', $this->getPostPrgsIds())
806  );
807 
808  $link = $this->ctrl->getLinkTargetByClass(
809  'ilStudyProgrammeChangeExpireDateGUI',
810  'showExpireDateConfig'
811  );
812 
813  $this->ctrl->clearParameterByClass('ilStudyProgrammeChangeExpireDateGUI', 'prgrs_ids');
814  $this->ctrl->redirectToURL($link);
815  }
+ Here is the call graph for this function:

◆ confirmedAcknowledgeAllCourses()

ilObjStudyProgrammeMembersGUI::confirmedAcknowledgeAllCourses ( )

Definition at line 696 of file class.ilObjStudyProgrammeMembersGUI.php.

References ILIAS\Repository\ctrl(), getAssignmentsFromQuery(), getMessageCollection(), getStudyProgramme(), and showMessages().

Referenced by executeCommand().

697  {
698  $prg = $this->getStudyProgramme();
699  $assignments = $this->getAssignmentsFromQuery();
700  $msgs = $this->getMessageCollection('msg_acknowledge_courses');
701 
702  foreach ($assignments as $ass) {
703  $ass_ids[] = $ass->getId();
704  $completed_crss = $prg->getCompletedCourses($ass->getUserId());
705  $nodes = [];
706  foreach ($completed_crss as $opt) {
707  $nodes[] = [$opt['prg_obj_id'], $opt['crsr_id']];
708  }
709  $prg->acknowledgeCourses(
710  $ass->getId(),
711  $nodes,
712  $msgs
713  );
714  }
715  $this->showMessages($msgs);
716  $this->ctrl->redirect($this, "view");
717  }
getStudyProgramme(?int $ref_id=null)
Get studyprogramm object for ref_id Use this ref_id if argument is null.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ confirmedAcknowledgeCourses()

ilObjStudyProgrammeMembersGUI::confirmedAcknowledgeCourses ( )

Definition at line 719 of file class.ilObjStudyProgrammeMembersGUI.php.

References $ass_id, $data, ILIAS\Repository\ctrl(), getAssignmentsFromQuery(), getMessageCollection(), ILIAS\Repository\int(), showMessages(), and viewCompletedCourses().

Referenced by executeCommand().

720  {
721  $assignments = $this->getAssignmentsFromQuery();
722 
723  $form = $this->viewCompletedCourses($assignments)->withRequest($this->request);
724  $data = $form->getData();
725 
726  $msgs = $this->getMessageCollection('msg_acknowledge_courses');
727 
728  if ($data) {
729  $acknowledge = [];
730  foreach ($data as $ack) {
731  [$assignment_id, $node_obj_id, $course_obj_id] = $ack;
732  if (! array_key_exists($assignment_id, $acknowledge)) {
733  $acknowledge[$assignment_id] = [];
734  }
735  $acknowledge[$assignment_id][] = [(int) $node_obj_id, (int) $course_obj_id];
736  }
737  foreach ($acknowledge as $ass_id => $nodes) {
738  $this->object->acknowledgeCourses(
739  (int) $ass_id,
740  $nodes,
741  $msgs
742  );
743  }
744  $this->showMessages($msgs);
745  }
746  $this->ctrl->redirect($this, "view");
747  }
viewCompletedCourses(array $assignments)
Shows list of completed courses for each assignment.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ confirmedRemovalOfCertificate()

ilObjStudyProgrammeMembersGUI::confirmedRemovalOfCertificate ( )

Definition at line 1141 of file class.ilObjStudyProgrammeMembersGUI.php.

References ILIAS\Repository\ctrl(), getMessageCollection(), getPostPrgsIds(), mayCurrentUserEditProgressForUser(), removeCertificateForUser(), showInfoMessage(), and showSuccessMessage().

Referenced by executeCommand().

1141  : void
1142  {
1143  $msgs = $this->getMessageCollection('msg_remove_certificate');
1144  $pgs_ids = $this->getPostPrgsIds();
1145  foreach ($pgs_ids as $idx => $prgs_id) {
1146  if (!$this->mayCurrentUserEditProgressForUser($prgs_id->getUsrId())) {
1147  $this->showInfoMessage("no_permission_to_remove_certificate");
1148  } else {
1149  $this->removeCertificateForUser(
1150  $prgs_id->getNodeId(),
1151  $prgs_id->getUsrId(),
1152  );
1153  }
1154  }
1155  $this->showSuccessMessage("successfully_removed_certificate");
1156  $this->ctrl->redirect($this, "view");
1157  }
removeCertificateForUser(int $node_id, int $usr_id,)
showInfoMessage(string $lng_var)
Shows ilUtil failed message.
showSuccessMessage(string $lng_var)
Shows ilUtil success message.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ confirmedRemoveUsers()

ilObjStudyProgrammeMembersGUI::confirmedRemoveUsers ( )
protected

Definition at line 847 of file class.ilObjStudyProgrammeMembersGUI.php.

References Vendor\Package\$e, ILIAS\Repository\ctrl(), getPostPrgsIds(), removeAssignment(), showInfoMessage(), and showSuccessMessage().

Referenced by executeCommand().

847  : void
848  {
849  $pgs_ids = $this->getPostPrgsIds();
850  $not_removed = array();
851  foreach ($pgs_ids as $idx => $pgs_id) {
852  try {
853  $this->removeAssignment($pgs_id);
854  } catch (ilException $e) {
855  $not_removed[] = $pgs_id;
856  }
857  }
858  if (count($not_removed) === count($pgs_ids)) {
859  $this->showInfoMessage("remove_users_not_possible");
860  } elseif (count($not_removed) > 0) {
861  $this->showSuccessMessage("remove_users_partial_success");
862  } else {
863  $this->showSuccessMessage("remove_users_success");
864  }
865  $this->ctrl->redirect($this, "view");
866  }
removeAssignment(PRGProgressId $pgs_id)
Remove user.
showInfoMessage(string $lng_var)
Shows ilUtil failed message.
showSuccessMessage(string $lng_var)
Shows ilUtil success message.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ confirmedUpdateCertificate()

ilObjStudyProgrammeMembersGUI::confirmedUpdateCertificate ( )

Definition at line 1076 of file class.ilObjStudyProgrammeMembersGUI.php.

References ILIAS\Repository\ctrl(), getMessageCollection(), getPostPrgsIds(), mayCurrentUserEditProgressForUser(), showInfoMessage(), showMessages(), and updateCertificateForPrg().

Referenced by executeCommand().

1076  : void
1077  {
1078  $msgs = $this->getMessageCollection('msg_update_certificate');
1079  foreach ($this->getPostPrgsIds() as $idx => $prgs_id) {
1080  if (!$this->mayCurrentUserEditProgressForUser($prgs_id->getUsrId())) {
1081  $this->showInfoMessage("no_permission_to_update_certificate");
1082  } else {
1083 
1084  $assignment = $this->assignment_db->get($prgs_id->getAssignmentId());
1085  $progress = $assignment->getProgressForNode($prgs_id->getNodeId());
1086  if (!$progress->isSuccessful()) {
1087  $msgs->add(false, 'will_not_update_cert_for_unsuccessful_progress', (string) $prgs_id);
1088  continue;
1089  }
1090 
1091  if ($this->updateCertificateForPrg(
1092  $prgs_id->getNodeId(),
1093  $prgs_id->getUsrId()
1094  )) {
1095  $msgs->add(true, '', (string) $prgs_id);
1096  } else {
1097  $msgs->add(false, 'error_updating_certificate', (string) $prgs_id);
1098  }
1099  }
1100  }
1101  $this->showMessages($msgs);
1102  $this->ctrl->redirect($this, "view");
1103  }
updateCertificateForPrg(int $obj_id, int $usr_id)
showInfoMessage(string $lng_var)
Shows ilUtil failed message.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ confirmedUpdateFromCurrentPlan()

ilObjStudyProgrammeMembersGUI::confirmedUpdateFromCurrentPlan ( )

Definition at line 630 of file class.ilObjStudyProgrammeMembersGUI.php.

References ILIAS\Repository\ctrl(), getMessageCollection(), getPostPrgsIds(), mayCurrentUserEditProgressForUser(), showMessages(), and ILIAS\Repository\user().

Referenced by executeCommand().

631  {
632  $pgs_ids = $this->getPostPrgsIds();
633  $msgs = $this->getMessageCollection('msg_update_from_settings');
634  foreach ($pgs_ids as $idx => $pgs_id) {
635  if (!$this->mayCurrentUserEditProgressForUser($pgs_id->getUsrId())) {
636  $msgs->add(false, 'no_permission_to_update_plan_of_user', (string) $pgs_id);
637  continue;
638  } else {
639  $msgs->add(true, '', (string) $pgs_id);
640  }
641 
642  $this->object->updatePlanFromRepository(
643  $pgs_id->getAssignmentId(),
644  $this->user->getId(),
645  $msgs
646  );
647  }
648  $this->showMessages($msgs);
649  $this->ctrl->redirect($this, "view");
650  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ confirmRemoveUsers()

ilObjStudyProgrammeMembersGUI::confirmRemoveUsers ( array  $progress_ids)
protected

Definition at line 829 of file class.ilObjStudyProgrammeMembersGUI.php.

References ilObjUser\_lookupFullname(), ILIAS\Repository\ctrl(), and ILIAS\Repository\lng().

Referenced by removeUser(), and removeUserMulti().

829  : string
830  {
831  $this->confirmation_gui->setFormAction($this->ctrl->getFormAction($this));
832  $this->confirmation_gui->setHeaderText($this->lng->txt('confirm_to_remove_selected_assignments'));
833  $this->confirmation_gui->setConfirm($this->lng->txt('prg_remove_user'), 'confirmedRemoveUsers');
834  $this->confirmation_gui->setCancel($this->lng->txt('cancel'), 'view');
835 
836  foreach ($progress_ids as $progress_id) {
837  $user_name = ilObjUser::_lookupFullname($progress_id->getUsrId());
838  $this->confirmation_gui->addItem(
839  self::F_SELECTED_PROGRESS_IDS . '[]',
840  (string) $progress_id,
841  $user_name
842  );
843  }
844  return $this->confirmation_gui->getHTML();
845  }
static _lookupFullname(int $a_user_id)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ executeCommand()

ilObjStudyProgrammeMembersGUI::executeCommand ( )

Definition at line 101 of file class.ilObjStudyProgrammeMembersGUI.php.

References $dic, confirmedAcknowledgeAllCourses(), confirmedAcknowledgeCourses(), confirmedRemovalOfCertificate(), confirmedRemoveUsers(), confirmedUpdateCertificate(), confirmedUpdateFromCurrentPlan(), ILIAS\Repository\ctrl(), ilStudyProgrammeDIC\dic(), getAssignmentsById(), getDefaultCommand(), getGetPrgsIds(), ILIAS\Repository\lng(), mailToSelectedUsers(), markNotRelevant(), null, ilStudyProgrammeDIC\specificDicFor(), and ILIAS\Repository\tabs().

101  : void
102  {
103  $cmd = $this->ctrl->getCmd();
104  $next_class = $this->ctrl->getNextClass($this);
105 
106  if ($cmd === "" || $cmd === null) {
107  $cmd = $this->getDefaultCommand();
108  }
109 
110  switch ($next_class) {
111  case "ilstudyprogrammerepositorysearchgui":
112  $this->repository_search_gui->setCallback($this, "addUsers");
113  $this->ctrl->setReturn($this, "view");
114  $this->ctrl->forwardCommand($this->repository_search_gui);
115  break;
116  case "ilobjstudyprogrammeindividualplangui":
117  $this->individual_plan_gui->setParentGUI($this);
118  $this->individual_plan_gui->setRefId($this->ref_id);
119  $this->ctrl->forwardCommand($this->individual_plan_gui);
120  break;
121  case "ilstudyprogrammemailmembersearchgui":
122  $this->tabs->clearTargets();
123  $this->tabs->setBackTarget(
124  $this->lng->txt('btn_back'),
125  $this->ctrl->getLinkTarget($this, $this->getDefaultCommand())
126  );
127  $dic = ilStudyProgrammeDIC::specificDicFor($this->object);
128  $mail_search = $dic['ilStudyProgrammeMailMemberSearchGUI'];
129  $mail_search->setAssignments($this->getAssignmentsById());
130  $mail_search->setBackTarget(
131  $this->ctrl->getLinkTarget($this, $this->getDefaultCommand())
132  );
133  $this->ctrl->forwardCommand($mail_search);
134  break;
135  case "ilstudyprogrammechangeexpiredategui":
136  $this->tabs->clearTargets();
137  $this->tabs->setBackTarget(
138  $this->lng->txt('btn_back'),
139  $this->ctrl->getLinkTarget($this, $this->getDefaultCommand())
140  );
142  $gui = $dic['ilStudyProgrammeChangeExpireDateGUI'];
143  $gui->setRefId($this->ref_id);
144  $gui->setProgressIds($this->getGetPrgsIds());
145  $this->ctrl->forwardCommand($gui);
146  break;
147  case "ilstudyprogrammechangedeadlinegui":
148  $this->tabs->clearTargets();
149  $this->tabs->setBackTarget(
150  $this->lng->txt('btn_back'),
151  $this->ctrl->getLinkTarget($this, $this->getDefaultCommand())
152  );
154  $gui = $dic['ilStudyProgrammeChangeDeadlineGUI'];
155  $gui->setRefId($this->ref_id);
156  $gui->setProgressIds($this->getGetPrgsIds());
157  $this->ctrl->forwardCommand($gui);
158  break;
159  case false:
160  switch ($cmd) {
161  case "view":
162  case "markAccredited":
163  case "markAccreditedMulti":
164  case "unmarkAccredited":
165  case "unmarkAccreditedMulti":
166  case "removeUser":
167  case "removeUserMulti":
168  case "markNotRelevantMulti":
169  case "markRelevant":
170  case "markRelevantMulti":
171  case "updateFromCurrentPlan":
172  case "updateFromCurrentPlanMulti":
173  case "acknowledgeCourses":
174  case "acknowledgeCoursesMulti":
175  case "applyFilter":
176  case "resetFilter":
177  case "changeDeadline":
178  case "changeDeadlineMulti":
179  case "changeExpireDate":
180  case "changeExpireDateMulti":
181  case "updateCertificate":
182  case "updateCertificateMulti":
183  case "removeCertificate":
184  case "removeCertificateMulti":
185  $cont = $this->$cmd();
186  $this->tpl->setContent($cont);
187  break;
188  case "confirmedRemoveUsers":
189  $this->confirmedRemoveUsers();
190  break;
191  case "confirmedUpdateFromCurrentPlan":
193  break;
194  case "confirmedAcknowledgeCourses":
196  break;
197  case "confirmedAcknowledgeAllCourses":
199  break;
200 
201  case "mailUserMulti":
202  $this->mailToSelectedUsers();
203  break;
204  case "markNotRelevant":
205  $this->markNotRelevant();
206  break;
207  case "confirmedUpdateCertificate":
209  break;
210  case "confirmedRemovalOfCertificate":
212  break;
213 
214  default:
215  throw new ilException("ilObjStudyProgrammeMembersGUI: Command not supported: $cmd");
216  }
217  break;
218  default:
219  throw new ilException(
220  "ilObjStudyProgrammeMembersGUI: Can't forward to next class $next_class"
221  );
222  }
223  }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
static specificDicFor(ilObjStudyProgramme $prg)
$dic
Definition: result.php:31
+ Here is the call graph for this function:

◆ getAddableUsers()

ilObjStudyProgrammeMembersGUI::getAddableUsers ( array  $users)
protected
Parameters
int[]$users

Definition at line 452 of file class.ilObjStudyProgrammeMembersGUI.php.

References ILIAS\Repository\lng(), and ilOrgUnitOperation\OP_MANAGE_MEMBERS.

Referenced by addUsers().

452  : array
453  {
454  $to_add = $this->permissions->filterUserIds(
455  $users,
457  );
458 
459  $cnt_not_added = count($users) - count($to_add);
460  if ($cnt_not_added > 0) {
461  $this->tpl->setOnScreenMessage(
462  "info",
463  sprintf(
464  $this->lng->txt('could_not_add_users_no_permissons'),
465  $cnt_not_added
466  ),
467  true
468  );
469  }
470  return $to_add;
471  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getAssignmentsById()

ilObjStudyProgrammeMembersGUI::getAssignmentsById ( )
protected

Definition at line 230 of file class.ilObjStudyProgrammeMembersGUI.php.

References ILIAS\Repository\object().

Referenced by executeCommand(), and mailToSelectedUsers().

230  : array
231  {
232  return $this->assignment_db->getAllForNodeIsContained($this->object->getId());
233  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getAssignmentsFromQuery()

ilObjStudyProgrammeMembersGUI::getAssignmentsFromQuery ( )
protected
Returns
ilPRGAssignment[]

Definition at line 677 of file class.ilObjStudyProgrammeMembersGUI.php.

References $ass_id, getStudyProgramme(), and ILIAS\Repository\refinery().

Referenced by confirmedAcknowledgeAllCourses(), and confirmedAcknowledgeCourses().

677  : array
678  {
679  $ass_ids = $this->http_wrapper->query()->retrieve(
680  'ass_ids',
681  $this->refinery->custom()->transformation(fn($ids) => explode(',', $ids))
682  );
683  $prg = $this->getStudyProgramme();
684  $assignments = array_map(
685  fn($ass_id) => $this->assignment_db->get((int) $ass_id),
686  $ass_ids
687  );
688 
689  $assignments = array_filter(
690  $assignments,
691  fn($ass) => $ass->getRootId() === $prg->getId()
692  );
693  return $assignments;
694  }
getStudyProgramme(?int $ref_id=null)
Get studyprogramm object for ref_id Use this ref_id if argument is null.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getDefaultCommand()

ilObjStudyProgrammeMembersGUI::getDefaultCommand ( )
protected

Definition at line 225 of file class.ilObjStudyProgrammeMembersGUI.php.

Referenced by executeCommand(), and mailToSelectedUsers().

225  : string
226  {
227  return self::DEFAULT_CMD;
228  }
+ Here is the caller graph for this function:

◆ getGetPrgsIds()

ilObjStudyProgrammeMembersGUI::getGetPrgsIds ( )
protected

Definition at line 289 of file class.ilObjStudyProgrammeMembersGUI.php.

References $_GET, $id, and PRGProgressId\createFromString().

Referenced by executeCommand().

289  : array
290  {
291  $prgrs_ids = $_GET['prgrs_ids'];
292  $ids = [];
293  if (!is_null($prgrs_ids)) {
294  foreach (explode(',', $prgrs_ids) as $id) {
295  $ids[] = PRGProgressId::createFromString($id);
296  };
297  }
298  return $ids;
299  }
$_GET["client_id"]
Definition: webdav.php:30
static createFromString(string $id)
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getLinkTargetForAction()

ilObjStudyProgrammeMembersGUI::getLinkTargetForAction ( string  $action,
string  $prgrs_id,
int  $ass_id 
)

Get the link target for an action on user progress.

Definition at line 952 of file class.ilObjStudyProgrammeMembersGUI.php.

References ILIAS\Repository\ctrl(), and null.

952  : string
953  {
954  switch ($action) {
955  case self::ACTION_MARK_ACCREDITED:
956  $target_name = "markAccredited";
957  break;
958  case self::ACTION_UNMARK_ACCREDITED:
959  $target_name = "unmarkAccredited";
960  break;
961  case self::ACTION_SHOW_INDIVIDUAL_PLAN:
962  return $this->individual_plan_gui->getLinkTargetView($ass_id);
963  case self::ACTION_REMOVE_USER:
964  $target_name = "removeUser";
965  break;
966  case self::ACTION_UNMARK_RELEVANT:
967  $target_name = "markNotRelevant";
968  break;
969  case self::ACTION_MARK_RELEVANT:
970  $target_name = "markRelevant";
971  break;
972  case self::ACTION_UPDATE_FROM_CURRENT_PLAN:
973  $target_name = "updateFromCurrentPlan";
974  break;
975  case self::ACTION_ACKNOWLEDGE_COURSES:
976  $target_name = "acknowledgeCourses";
977  break;
978  case self::ACTION_CHANGE_DEADLINE:
979  $target_name = "changeDeadline";
980  break;
981  case self::ACTION_CHANGE_EXPIRE_DATE:
982  $target_name = "changeExpireDate";
983  break;
984  case self::ACTION_UPDATE_CERTIFICATE:
985  $target_name = "updateCertificate";
986  break;
987  case self::ACTION_REMOVE_CERTIFICATE:
988  $target_name = "removeCertificate";
989  break;
990  default:
991  throw new ilException("Unknown action: $action");
992  }
993 
994  $this->ctrl->setParameter($this, "prgrs_id", $prgrs_id);
995  $link = $this->ctrl->getLinkTarget($this, $target_name);
996  $this->ctrl->setParameter($this, "prgrs_id", null);
997  return $link;
998  }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
+ Here is the call graph for this function:

◆ getMembersTableGUI()

ilObjStudyProgrammeMembersGUI::getMembersTableGUI ( )
protected

Definition at line 235 of file class.ilObjStudyProgrammeMembersGUI.php.

References $dic, ilObject\_lookupObjId(), ilStudyProgrammeDIC\specificDicFor(), and ILIAS\Repository\user().

Referenced by applyFilter(), resetFilter(), and view().

236  {
237  $prg_id = ilObject::_lookupObjId($this->ref_id);
238  $dic = ilStudyProgrammeDIC::specificDicFor($this->object);
239  $table = new ilStudyProgrammeMembersTableGUI(
240  $prg_id,
241  $this->ref_id,
242  $this,
243  $this->permissions,
244  $this->data_factory,
245  $dic['ui.factory'],
246  $dic['ui.renderer'],
247  $dic['ilStudyProgrammeUserTable'],
248  $dic['filter.assignment'],
249  $this->user,
250  "view",
251  ""
252  );
253  return $table;
254  }
static _lookupObjId(int $ref_id)
static specificDicFor(ilObjStudyProgramme $prg)
$dic
Definition: result.php:31
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getMessageCollection()

ilObjStudyProgrammeMembersGUI::getMessageCollection ( string  $topic)
protected

Definition at line 1008 of file class.ilObjStudyProgrammeMembersGUI.php.

Referenced by confirmedAcknowledgeAllCourses(), confirmedAcknowledgeCourses(), confirmedRemovalOfCertificate(), confirmedUpdateCertificate(), confirmedUpdateFromCurrentPlan(), markAccredited(), markAccreditedMulti(), markNotRelevant(), markNotRelevantMulti(), markRelevant(), markRelevantMulti(), unmarkAccredited(), and unmarkAccreditedMulti().

1009  {
1010  return $this->messages->getMessageCollection($topic);
1011  }
Holds information about multi-actions, mainly in context of member-assignemnts and status changes...
+ Here is the caller graph for this function:

◆ getPostPrgsIds()

ilObjStudyProgrammeMembersGUI::getPostPrgsIds ( )
protected
Returns
PRGProgressId[]

Definition at line 259 of file class.ilObjStudyProgrammeMembersGUI.php.

References $r, PRGProgressId\createFromString(), ILIAS\Repository\ctrl(), null, ILIAS\Repository\refinery(), and showInfoMessage().

Referenced by acknowledgeCoursesMulti(), changeDeadlineMulti(), changeExpireDateMulti(), confirmedRemovalOfCertificate(), confirmedRemoveUsers(), confirmedUpdateCertificate(), confirmedUpdateFromCurrentPlan(), mailToSelectedUsers(), markAccreditedMulti(), markNotRelevantMulti(), markRelevantMulti(), removeCertificateMulti(), removeUserMulti(), unmarkAccreditedMulti(), updateCertificateMulti(), and updateFromCurrentPlanMulti().

259  : array
260  {
261  if ($this->http_wrapper->post()->has(self::F_COMMAND_OPTION_ALL)) {
262  $pgs_ids = $this->http_wrapper->post()->retrieve(
263  self::F_ALL_PROGRESS_IDS,
264  $this->refinery->custom()->transformation(
265  fn($ids) => explode(',', $ids)
266  )
267  );
268  } else {
269  $pgs_ids = $this->http_wrapper->post()->retrieve(
270  self::F_SELECTED_PROGRESS_IDS,
271  $this->refinery->custom()->transformation(fn($ids) => $ids)
272  );
273  }
274  if ($pgs_ids === null) {
275  $this->showInfoMessage("no_user_selected");
276  $this->ctrl->redirect($this, "view");
277  }
278  if (is_string($pgs_ids)) {
279  $pgs_ids = [$pgs_ids];
280  }
281 
282  $r = [];
283  foreach ($pgs_ids as $pgs_id) {
284  $r[] = PRGProgressId::createFromString($pgs_id);
285  }
286  return $r;
287  }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
static createFromString(string $id)
showInfoMessage(string $lng_var)
Shows ilUtil failed message.
$r
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getPrgrsId()

ilObjStudyProgrammeMembersGUI::getPrgrsId ( )
protected

Definition at line 301 of file class.ilObjStudyProgrammeMembersGUI.php.

References $_GET, and PRGProgressId\createFromString().

Referenced by acknowledgeCourses(), changeDeadline(), changeExpireDate(), markAccredited(), markNotRelevant(), markRelevant(), removeCertificate(), removeUser(), unmarkAccredited(), updateCertificate(), and updateFromCurrentPlan().

301  : PRGProgressId
302  {
303  if (!$_GET["prgrs_id"]) {
304  throw new ilException("Expected 'prgrs_id'");
305  }
306  return PRGProgressId::createFromString($_GET["prgrs_id"]);
307  }
$_GET["client_id"]
Definition: webdav.php:30
static createFromString(string $id)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getStudyProgramme()

ilObjStudyProgrammeMembersGUI::getStudyProgramme ( ?int  $ref_id = null)

Get studyprogramm object for ref_id Use this ref_id if argument is null.

Definition at line 941 of file class.ilObjStudyProgrammeMembersGUI.php.

References $ref_id, ilObjStudyProgramme\getInstanceByRefId(), and null.

Referenced by ilStudyProgrammeMembersTableGUI\__construct(), addUsers(), confirmedAcknowledgeAllCourses(), getAssignmentsFromQuery(), markAccreditedByProgressId(), markNotRelevant(), markNotRelevantMulti(), markRelevant(), markRelevantMulti(), unmarkAccreditedByProgressId(), view(), and viewCompletedCourses().

942  {
943  if ($ref_id === null) {
945  }
947  }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ initMailToMemberButton()

ilObjStudyProgrammeMembersGUI::initMailToMemberButton ( ilToolbarGUI  $toolbar,
bool  $separator = false 
)
protected

Definition at line 920 of file class.ilObjStudyProgrammeMembersGUI.php.

References ilToolbarGUI\addComponent(), ilToolbarGUI\addSeparator(), ILIAS\Repository\ctrl(), and ILIAS\Repository\lng().

Referenced by view().

920  : void
921  {
922  if ($separator) {
923  $toolbar->addSeparator();
924  }
925 
926  $toolbar->addComponent(
927  $this->ui_factory->link()->standard(
928  $this->lng->txt('mail_assignments'),
929  $this->ctrl->getLinkTargetByClass(
930  'ilStudyProgrammeMailMemberSearchGUI',
931  'showSelectableUsers'
932  )
933  )
934  );
935  }
addComponent(\ILIAS\UI\Component\Component $a_comp)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ initSearchGUI()

ilObjStudyProgrammeMembersGUI::initSearchGUI ( )
protected

Definition at line 907 of file class.ilObjStudyProgrammeMembersGUI.php.

References ilStudyProgrammeRepositorySearchGUI\fillAutoCompleteToolbar(), ILIAS\Repository\lng(), and ILIAS\Repository\toolbar().

Referenced by view().

907  : void
908  {
910  $this,
911  $this->toolbar,
912  array(
913  "auto_complete_name" => $this->lng->txt("user"),
914  "submit_name" => $this->lng->txt("add"),
915  "add_search" => true
916  )
917  );
918  }
static fillAutoCompleteToolbar( $parent_object, ?ilToolbarGUI $toolbar=null, $a_options=array(), $a_sticky=false)
This is just the same as in the parent class, except for the hardcoded class name.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ mailToSelectedUsers()

ilObjStudyProgrammeMembersGUI::mailToSelectedUsers ( )
protected

Definition at line 1018 of file class.ilObjStudyProgrammeMembersGUI.php.

References $dic, $id, ILIAS\Repository\ctrl(), getAssignmentsById(), getDefaultCommand(), getPostPrgsIds(), ILIAS\Repository\lng(), ilStudyProgrammeDIC\specificDicFor(), and ILIAS\Repository\tabs().

Referenced by executeCommand().

1018  : void
1019  {
1020  $dic = ilStudyProgrammeDIC::specificDicFor($this->object);
1021  $gui = $dic['ilStudyProgrammeMailMemberSearchGUI'];
1022  $selected = $this->getPostPrgsIds();
1023  $selected_ids = array_map(
1024  fn($id) => $id->getAssignmentId(),
1025  $selected
1026  );
1027 
1028  $assignments = array_filter(
1029  $this->getAssignmentsById(),
1030  fn($ass) => in_array($ass->getId(), $selected_ids)
1031  );
1032  $gui->setAssignments($assignments);
1033  $this->tabs->clearTargets();
1034  $this->tabs->setBackTarget(
1035  $this->lng->txt('btn_back'),
1036  $this->ctrl->getLinkTarget($this, $this->getDefaultCommand())
1037  );
1038  $this->ctrl->forwardCommand($gui);
1039  }
static specificDicFor(ilObjStudyProgramme $prg)
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
$dic
Definition: result.php:31
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ markAccredited()

ilObjStudyProgrammeMembersGUI::markAccredited ( )
protected

Definition at line 473 of file class.ilObjStudyProgrammeMembersGUI.php.

References ILIAS\Repository\ctrl(), getMessageCollection(), getPrgrsId(), markAccreditedByProgressId(), and showMessages().

473  : void
474  {
475  $prgrs_id = $this->getPrgrsId();
476  $msgs = $this->getMessageCollection('msg_mark_accredited');
477  $this->markAccreditedByProgressId($prgrs_id, $msgs);
478  $this->showMessages($msgs);
479  $this->ctrl->redirect($this, "view");
480  }
markAccreditedByProgressId(PRGProgressId $prgrs_id, ilPRGMessageCollection $msgs)
+ Here is the call graph for this function:

◆ markAccreditedByProgressId()

ilObjStudyProgrammeMembersGUI::markAccreditedByProgressId ( PRGProgressId  $prgrs_id,
ilPRGMessageCollection  $msgs 
)
protected

Definition at line 493 of file class.ilObjStudyProgrammeMembersGUI.php.

References ilPRGMessageCollection\add(), PRGProgressId\getAssignmentId(), getStudyProgramme(), PRGProgressId\getUsrId(), mayCurrentUserEditProgressForUser(), and ILIAS\Repository\user().

Referenced by markAccredited(), and markAccreditedMulti().

493  : void
494  {
495  $usr_id = $prgrs_id->getUsrId();
496  if (!$this->mayCurrentUserEditProgressForUser($usr_id)) {
497  $msgs->add(false, 'No permission to edit progress of user', (string) $prgrs_id);
498  } else {
499  $programme = $this->getStudyProgramme();
500  $programme->markAccredited($prgrs_id->getAssignmentId(), $this->user->getId(), $msgs);
501  }
502  }
add(bool $success, string $message, string $record_identitifer)
getStudyProgramme(?int $ref_id=null)
Get studyprogramm object for ref_id Use this ref_id if argument is null.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ markAccreditedMulti()

ilObjStudyProgrammeMembersGUI::markAccreditedMulti ( )
protected

Definition at line 482 of file class.ilObjStudyProgrammeMembersGUI.php.

References ILIAS\Repository\ctrl(), getMessageCollection(), getPostPrgsIds(), markAccreditedByProgressId(), and showMessages().

482  : void
483  {
484  $prgrs_ids = $this->getPostPrgsIds();
485  $msgs = $this->getMessageCollection('msg_mark_accredited');
486  foreach ($prgrs_ids as $key => $prgrs_id) {
487  $this->markAccreditedByProgressId($prgrs_id, $msgs);
488  }
489  $this->showMessages($msgs);
490  $this->ctrl->redirect($this, "view");
491  }
markAccreditedByProgressId(PRGProgressId $prgrs_id, ilPRGMessageCollection $msgs)
+ Here is the call graph for this function:

◆ markNotRelevant()

ilObjStudyProgrammeMembersGUI::markNotRelevant ( )

Definition at line 565 of file class.ilObjStudyProgrammeMembersGUI.php.

References ILIAS\Repository\ctrl(), getMessageCollection(), getPrgrsId(), getStudyProgramme(), mayCurrentUserEditProgressForUser(), showMessages(), and ILIAS\Repository\user().

Referenced by executeCommand().

565  : void
566  {
567  $prgrs_id = $this->getPrgrsId();
568  $msgs = $this->getMessageCollection('msg_mark_not_relevant');
569  $programme = $this->getStudyProgramme();
570  if (!$this->mayCurrentUserEditProgressForUser($prgrs_id->getUsrId())) {
571  $msgs->add(false, 'No permission to edit progress of user', (string) $prgrs_id);
572  } else {
573  $programme->markNotRelevant($prgrs_id->getAssignmentId(), $this->user->getId(), $msgs);
574  }
575  $this->showMessages($msgs);
576  $this->ctrl->redirect($this, "view");
577  }
getStudyProgramme(?int $ref_id=null)
Get studyprogramm object for ref_id Use this ref_id if argument is null.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ markNotRelevantMulti()

ilObjStudyProgrammeMembersGUI::markNotRelevantMulti ( )

Definition at line 579 of file class.ilObjStudyProgrammeMembersGUI.php.

References ILIAS\Repository\ctrl(), getMessageCollection(), getPostPrgsIds(), getStudyProgramme(), mayCurrentUserEditProgressForUser(), showMessages(), and ILIAS\Repository\user().

579  : void
580  {
581  $prgrs_ids = $this->getPostPrgsIds();
582  $msgs = $this->getMessageCollection('msg_mark_not_relevant');
583  $programme = $this->getStudyProgramme();
584  foreach ($prgrs_ids as $key => $prgrs_id) {
585  if (!$this->mayCurrentUserEditProgressForUser($prgrs_id->getUsrId())) {
586  $msgs->add(false, 'No permission to edit progress of user', (string) $prgrs_id);
587  } else {
588  $programme->markNotRelevant($prgrs_id->getAssignmentId(), $this->user->getId(), $msgs);
589  }
590  }
591  $this->showMessages($msgs);
592  $this->ctrl->redirect($this, "view");
593  }
getStudyProgramme(?int $ref_id=null)
Get studyprogramm object for ref_id Use this ref_id if argument is null.
+ Here is the call graph for this function:

◆ markRelevant()

ilObjStudyProgrammeMembersGUI::markRelevant ( )

Definition at line 535 of file class.ilObjStudyProgrammeMembersGUI.php.

References ILIAS\Repository\ctrl(), getMessageCollection(), getPrgrsId(), getStudyProgramme(), mayCurrentUserEditProgressForUser(), showMessages(), and ILIAS\Repository\user().

535  : void
536  {
537  $prgrs_id = $this->getPrgrsId();
538  $msgs = $this->getMessageCollection('msg_mark_relevant');
539  $programme = $this->getStudyProgramme();
540  if (!$this->mayCurrentUserEditProgressForUser($prgrs_id->getUsrId())) {
541  $msgs->add(false, "No permission to edit progress of user", (string) $prgrs_id);
542  } else {
543  $programme->markRelevant($prgrs_id->getAssignmentId(), $this->user->getId(), $msgs);
544  }
545  $this->showMessages($msgs);
546  $this->ctrl->redirect($this, "view");
547  }
getStudyProgramme(?int $ref_id=null)
Get studyprogramm object for ref_id Use this ref_id if argument is null.
+ Here is the call graph for this function:

◆ markRelevantMulti()

ilObjStudyProgrammeMembersGUI::markRelevantMulti ( )

Definition at line 549 of file class.ilObjStudyProgrammeMembersGUI.php.

References ILIAS\Repository\ctrl(), getMessageCollection(), getPostPrgsIds(), getStudyProgramme(), mayCurrentUserEditProgressForUser(), showMessages(), and ILIAS\Repository\user().

549  : void
550  {
551  $prgrs_ids = $this->getPostPrgsIds();
552  $msgs = $this->getMessageCollection('msg_mark_relevant');
553  $programme = $this->getStudyProgramme();
554  foreach ($prgrs_ids as $key => $prgrs_id) {
555  if (!$this->mayCurrentUserEditProgressForUser($prgrs_id->getUsrId())) {
556  $msgs->add(false, 'No permission to edit progress of user', (string) $prgrs_id);
557  } else {
558  $programme->markRelevant($prgrs_id->getAssignmentId(), $this->user->getId(), $msgs);
559  }
560  }
561  $this->showMessages($msgs);
562  $this->ctrl->redirect($this, "view");
563  }
getStudyProgramme(?int $ref_id=null)
Get studyprogramm object for ref_id Use this ref_id if argument is null.
+ Here is the call graph for this function:

◆ mayCurrentUserEditProgressForUser()

ilObjStudyProgrammeMembersGUI::mayCurrentUserEditProgressForUser ( int  $usr_id)
protected

Definition at line 1000 of file class.ilObjStudyProgrammeMembersGUI.php.

References ilOrgUnitOperation\OP_EDIT_INDIVIDUAL_PLAN.

Referenced by confirmedRemovalOfCertificate(), confirmedUpdateCertificate(), confirmedUpdateFromCurrentPlan(), markAccreditedByProgressId(), markNotRelevant(), markNotRelevantMulti(), markRelevant(), markRelevantMulti(), and unmarkAccreditedByProgressId().

1000  : bool
1001  {
1002  return in_array(
1003  $usr_id,
1004  $this->permissions->getUserIdsSusceptibleTo(ilOrgUnitOperation::OP_EDIT_INDIVIDUAL_PLAN)
1005  );
1006  }
+ Here is the caller graph for this function:

◆ removeAssignment()

ilObjStudyProgrammeMembersGUI::removeAssignment ( PRGProgressId  $pgs_id)
protected

Remove user.

Definition at line 871 of file class.ilObjStudyProgrammeMembersGUI.php.

References PRGProgressId\getAssignmentId(), ilObjStudyProgramme\getInstanceByRefId(), ilObjStudyProgramme\getRefIdFor(), PRGProgressId\getUsrId(), and ilOrgUnitOperation\OP_MANAGE_MEMBERS.

Referenced by confirmedRemoveUsers().

871  : void
872  {
873  if (!in_array(
874  $pgs_id->getUsrId(),
875  $this->permissions->getUserIdsSusceptibleTo(ilOrgUnitOperation::OP_MANAGE_MEMBERS)
876  )) {
878  'No permission to manage membership of user'
879  );
880  }
881 
882  $ass = $this->assignment_db->get($pgs_id->getAssignmentId());
883  $prg_ref_id = ilObjStudyProgramme::getRefIdFor($ass->getRootId());
884  if ($prg_ref_id !== $this->ref_id) {
885  throw new ilException("Can only remove users from the node they where assigned to.");
886  }
887  $prg = ilObjStudyProgramme::getInstanceByRefId($prg_ref_id);
888  $prg->removeAssignment($ass);
889  }
static getRefIdFor(int $obj_id)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ removeCertificate()

ilObjStudyProgrammeMembersGUI::removeCertificate ( )

Definition at line 1105 of file class.ilObjStudyProgrammeMembersGUI.php.

References ilObjUser\_lookupFullname(), ILIAS\Repository\ctrl(), getPrgrsId(), and ILIAS\Repository\lng().

1105  : string
1106  {
1107  $this->confirmation_gui->setFormAction($this->ctrl->getFormAction($this, 'confirmRemovalOfCertificate'));
1108  $this->confirmation_gui->setHeaderText($this->lng->txt('header_remove_certificate'));
1109  $this->confirmation_gui->setConfirm($this->lng->txt('confirm'), 'confirmedRemovalOfCertificate');
1110  $this->confirmation_gui->setCancel($this->lng->txt('cancel'), 'view');
1111 
1112  $prgs_id = $this->getPrgrsId();
1113  $user_name = ilObjUser::_lookupFullname($prgs_id->getUsrId());
1114  $this->confirmation_gui->addItem(
1115  self::F_SELECTED_PROGRESS_IDS,
1116  (string) $prgs_id,
1117  $user_name
1118  );
1119  return $this->confirmation_gui->getHTML();
1120  }
static _lookupFullname(int $a_user_id)
+ Here is the call graph for this function:

◆ removeCertificateMulti()

ilObjStudyProgrammeMembersGUI::removeCertificateMulti ( )

Definition at line 1122 of file class.ilObjStudyProgrammeMembersGUI.php.

References ilObjUser\_lookupFullname(), ILIAS\Repository\ctrl(), getPostPrgsIds(), and ILIAS\Repository\lng().

1122  : string
1123  {
1124  $this->confirmation_gui->setFormAction($this->ctrl->getFormAction($this, 'confirmRemovalOfCertificate'));
1125  $this->confirmation_gui->setHeaderText($this->lng->txt('header_remove_certificate'));
1126  $this->confirmation_gui->setConfirm($this->lng->txt('confirm'), 'confirmedRemovalOfCertificate');
1127  $this->confirmation_gui->setCancel($this->lng->txt('cancel'), 'view');
1128 
1129  foreach ($this->getPostPrgsIds() as $progress_id) {
1130  $user_name = ilObjUser::_lookupFullname($progress_id->getUsrId());
1131  $this->confirmation_gui->addItem(
1132  self::F_SELECTED_PROGRESS_IDS . '[]',
1133  (string) $progress_id,
1134  $user_name
1135  );
1136  }
1137 
1138  return $this->confirmation_gui->getHTML();
1139  }
static _lookupFullname(int $a_user_id)
+ Here is the call graph for this function:

◆ removeUser()

ilObjStudyProgrammeMembersGUI::removeUser ( )

Definition at line 817 of file class.ilObjStudyProgrammeMembersGUI.php.

References confirmRemoveUsers(), and getPrgrsId().

817  : string
818  {
819  $prgrs_id = $this->getPrgrsId();
820  return $this->confirmRemoveUsers([$prgrs_id]);
821  }
+ Here is the call graph for this function:

◆ removeUserMulti()

ilObjStudyProgrammeMembersGUI::removeUserMulti ( )
protected

Definition at line 823 of file class.ilObjStudyProgrammeMembersGUI.php.

References confirmRemoveUsers(), and getPostPrgsIds().

823  : string
824  {
825  $pgs_ids = $this->getPostPrgsIds();
826  return $this->confirmRemoveUsers($pgs_ids);
827  }
+ Here is the call graph for this function:

◆ resetFilter()

ilObjStudyProgrammeMembersGUI::resetFilter ( )

Definition at line 334 of file class.ilObjStudyProgrammeMembersGUI.php.

References ILIAS\Repository\ctrl(), and getMembersTableGUI().

334  : void
335  {
336  $table = $this->getMembersTableGUI();
337  $table->resetOffset();
338  $table->resetFilter();
339  $this->ctrl->redirect($this, "view");
340  }
+ Here is the call graph for this function:

◆ setParentGUI()

ilObjStudyProgrammeMembersGUI::setParentGUI ( ilObjectGUI  $a_parent_gui)

Definition at line 89 of file class.ilObjStudyProgrammeMembersGUI.php.

89  : void
90  {
91  $this->parent_gui = $a_parent_gui;
92  }

◆ setRefId()

ilObjStudyProgrammeMembersGUI::setRefId ( int  $ref_id)

Definition at line 94 of file class.ilObjStudyProgrammeMembersGUI.php.

References $ref_id, ilObjStudyProgramme\getInstanceByRefId(), and ilStudyProgrammeDIC\specificDicFor().

94  : void
95  {
96  $this->ref_id = $ref_id;
98  $this->permissions = ilStudyProgrammeDIC::specificDicFor($this->object)['permissionhelper'];
99  }
static specificDicFor(ilObjStudyProgramme $prg)
+ Here is the call graph for this function:

◆ showInfoMessage()

ilObjStudyProgrammeMembersGUI::showInfoMessage ( string  $lng_var)
protected

Shows ilUtil failed message.

Definition at line 902 of file class.ilObjStudyProgrammeMembersGUI.php.

References ILIAS\Repository\lng().

Referenced by confirmedRemovalOfCertificate(), confirmedRemoveUsers(), confirmedUpdateCertificate(), and getPostPrgsIds().

902  : void
903  {
904  $this->tpl->setOnScreenMessage("info", $this->lng->txt("prg_$lng_var"), true);
905  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ showMessages()

ilObjStudyProgrammeMembersGUI::showMessages ( ilPRGMessageCollection  $msg)
protected

◆ showSuccessMessage()

ilObjStudyProgrammeMembersGUI::showSuccessMessage ( string  $lng_var)
protected

Shows ilUtil success message.

Definition at line 894 of file class.ilObjStudyProgrammeMembersGUI.php.

References ILIAS\Repository\lng().

Referenced by confirmedRemovalOfCertificate(), and confirmedRemoveUsers().

894  : void
895  {
896  $this->tpl->setOnScreenMessage("success", $this->lng->txt("prg_$lng_var"), true);
897  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ unmarkAccredited()

ilObjStudyProgrammeMembersGUI::unmarkAccredited ( )
protected

Definition at line 504 of file class.ilObjStudyProgrammeMembersGUI.php.

References ILIAS\Repository\ctrl(), getMessageCollection(), getPrgrsId(), showMessages(), and unmarkAccreditedByProgressId().

504  : void
505  {
506  $prgrs_id = $this->getPrgrsId();
507  $msgs = $this->getMessageCollection('msg_unmark_accredited');
508  $this->unmarkAccreditedByProgressId($prgrs_id, $msgs);
509  $this->showMessages($msgs);
510  $this->ctrl->redirect($this, "view");
511  }
unmarkAccreditedByProgressId(PRGProgressId $prgrs_id, ilPRGMessageCollection $msgs)
+ Here is the call graph for this function:

◆ unmarkAccreditedByProgressId()

ilObjStudyProgrammeMembersGUI::unmarkAccreditedByProgressId ( PRGProgressId  $prgrs_id,
ilPRGMessageCollection  $msgs 
)
protected

Definition at line 524 of file class.ilObjStudyProgrammeMembersGUI.php.

References ilPRGMessageCollection\add(), PRGProgressId\getAssignmentId(), getStudyProgramme(), PRGProgressId\getUsrId(), mayCurrentUserEditProgressForUser(), and ILIAS\Repository\user().

Referenced by unmarkAccredited(), and unmarkAccreditedMulti().

524  : void
525  {
526  $usr_id = $prgrs_id->getUsrId();
527  if (!$this->mayCurrentUserEditProgressForUser($usr_id)) {
528  $msgs->add(false, 'No permission to edit progress of user', (string) $prgrs_id);
529  } else {
530  $programme = $this->getStudyProgramme();
531  $programme->unmarkAccredited($prgrs_id->getAssignmentId(), $this->user->getId(), $msgs);
532  }
533  }
add(bool $success, string $message, string $record_identitifer)
getStudyProgramme(?int $ref_id=null)
Get studyprogramm object for ref_id Use this ref_id if argument is null.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ unmarkAccreditedMulti()

ilObjStudyProgrammeMembersGUI::unmarkAccreditedMulti ( )

Definition at line 513 of file class.ilObjStudyProgrammeMembersGUI.php.

References ILIAS\Repository\ctrl(), getMessageCollection(), getPostPrgsIds(), showMessages(), and unmarkAccreditedByProgressId().

513  : void
514  {
515  $prgrs_ids = $this->getPostPrgsIds();
516  $msgs = $this->getMessageCollection('msg_unmark_accredited');
517  foreach ($prgrs_ids as $key => $prgrs_id) {
518  $this->unmarkAccreditedByProgressId($prgrs_id, $msgs);
519  }
520  $this->showMessages($msgs);
521  $this->ctrl->redirect($this, "view");
522  }
unmarkAccreditedByProgressId(PRGProgressId $prgrs_id, ilPRGMessageCollection $msgs)
+ Here is the call graph for this function:

◆ updateCertificate()

ilObjStudyProgrammeMembersGUI::updateCertificate ( )

Definition at line 1041 of file class.ilObjStudyProgrammeMembersGUI.php.

References ilObjUser\_lookupFullname(), ILIAS\Repository\ctrl(), getPrgrsId(), and ILIAS\Repository\lng().

1041  : string
1042  {
1043  $this->confirmation_gui->setFormAction($this->ctrl->getFormAction($this, 'confirmUpdateCertificate'));
1044  $this->confirmation_gui->setHeaderText($this->lng->txt('header_update_certificate'));
1045  $this->confirmation_gui->setConfirm($this->lng->txt('confirm'), 'confirmedUpdateCertificate');
1046  $this->confirmation_gui->setCancel($this->lng->txt('cancel'), 'view');
1047 
1048  $prgs_id = $this->getPrgrsId();
1049  $user_name = ilObjUser::_lookupFullname($prgs_id->getUsrId());
1050  $this->confirmation_gui->addItem(
1051  self::F_SELECTED_PROGRESS_IDS,
1052  (string) $prgs_id,
1053  $user_name
1054  );
1055  return $this->confirmation_gui->getHTML();
1056  }
static _lookupFullname(int $a_user_id)
+ Here is the call graph for this function:

◆ updateCertificateMulti()

ilObjStudyProgrammeMembersGUI::updateCertificateMulti ( )

Definition at line 1058 of file class.ilObjStudyProgrammeMembersGUI.php.

References ilObjUser\_lookupFullname(), ILIAS\Repository\ctrl(), getPostPrgsIds(), and ILIAS\Repository\lng().

1058  : string
1059  {
1060  $this->confirmation_gui->setFormAction($this->ctrl->getFormAction($this, 'confirmUpdateCertificate'));
1061  $this->confirmation_gui->setHeaderText($this->lng->txt('header_update_certificate'));
1062  $this->confirmation_gui->setConfirm($this->lng->txt('confirm'), 'confirmedUpdateCertificate');
1063  $this->confirmation_gui->setCancel($this->lng->txt('cancel'), 'view');
1064 
1065  foreach ($this->getPostPrgsIds() as $progress_id) {
1066  $user_name = ilObjUser::_lookupFullname($progress_id->getUsrId());
1067  $this->confirmation_gui->addItem(
1068  self::F_SELECTED_PROGRESS_IDS . '[]',
1069  (string) $progress_id,
1070  $user_name
1071  );
1072  }
1073  return $this->confirmation_gui->getHTML();
1074  }
static _lookupFullname(int $a_user_id)
+ Here is the call graph for this function:

◆ updateFromCurrentPlan()

ilObjStudyProgrammeMembersGUI::updateFromCurrentPlan ( )

Definition at line 595 of file class.ilObjStudyProgrammeMembersGUI.php.

References ilObjUser\_lookupFullname(), ILIAS\Repository\ctrl(), getPrgrsId(), and ILIAS\Repository\lng().

595  : string
596  {
597  $this->confirmation_gui->setFormAction($this->ctrl->getFormAction($this, 'confirmUpdateFromCurrentPlan'));
598  $this->confirmation_gui->setHeaderText($this->lng->txt('header_update_current_plan'));
599  $this->confirmation_gui->setConfirm($this->lng->txt('confirm'), 'confirmedUpdateFromCurrentPlan');
600  $this->confirmation_gui->setCancel($this->lng->txt('cancel'), 'view');
601 
602  $prgs_id = $this->getPrgrsId();
603  $user_name = ilObjUser::_lookupFullname($prgs_id->getUsrId());
604  $this->confirmation_gui->addItem(
605  self::F_SELECTED_PROGRESS_IDS,
606  (string) $prgs_id,
607  $user_name
608  );
609  return $this->confirmation_gui->getHTML();
610  }
static _lookupFullname(int $a_user_id)
+ Here is the call graph for this function:

◆ updateFromCurrentPlanMulti()

ilObjStudyProgrammeMembersGUI::updateFromCurrentPlanMulti ( )

Definition at line 612 of file class.ilObjStudyProgrammeMembersGUI.php.

References ilObjUser\_lookupFullname(), ILIAS\Repository\ctrl(), getPostPrgsIds(), and ILIAS\Repository\lng().

612  : string
613  {
614  $this->confirmation_gui->setFormAction($this->ctrl->getFormAction($this, 'confirmUpdateFromCurrentPlan'));
615  $this->confirmation_gui->setHeaderText($this->lng->txt('header_update_current_plan'));
616  $this->confirmation_gui->setConfirm($this->lng->txt('confirm'), 'confirmedUpdateFromCurrentPlan');
617  $this->confirmation_gui->setCancel($this->lng->txt('cancel'), 'view');
618 
619  foreach ($this->getPostPrgsIds() as $progress_id) {
620  $user_name = ilObjUser::_lookupFullname($progress_id->getUsrId());
621  $this->confirmation_gui->addItem(
622  self::F_SELECTED_PROGRESS_IDS . '[]',
623  (string) $progress_id,
624  $user_name
625  );
626  }
627  return $this->confirmation_gui->getHTML();
628  }
static _lookupFullname(int $a_user_id)
+ Here is the call graph for this function:

◆ view()

ilObjStudyProgrammeMembersGUI::view ( )
protected

Shows table with all members of the SP.

Definition at line 312 of file class.ilObjStudyProgrammeMembersGUI.php.

References getMembersTableGUI(), getStudyProgramme(), initMailToMemberButton(), initSearchGUI(), ILIAS\Repository\lng(), ilOrgUnitOperation\OP_MANAGE_MEMBERS, and ILIAS\Repository\toolbar().

312  : string
313  {
314  if ($this->getStudyProgramme()->isActive() && $this->permissions->may(ilOrgUnitOperation::OP_MANAGE_MEMBERS)) {
315  $this->initSearchGUI();
316  $this->initMailToMemberButton($this->toolbar, true);
317  }
318 
319  if (!$this->getStudyProgramme()->isActive()) {
320  $this->tpl->setOnScreenMessage("info", $this->lng->txt("prg_no_members_not_active"));
321  }
322  $table = $this->getMembersTableGUI();
323  return $table->getHTML();
324  }
initMailToMemberButton(ilToolbarGUI $toolbar, bool $separator=false)
getStudyProgramme(?int $ref_id=null)
Get studyprogramm object for ref_id Use this ref_id if argument is null.
+ Here is the call graph for this function:

◆ viewCompletedCourses()

ilObjStudyProgrammeMembersGUI::viewCompletedCourses ( array  $assignments)

Shows list of completed courses for each assignment.

Definition at line 385 of file class.ilObjStudyProgrammeMembersGUI.php.

References ILIAS\Repository\ctrl(), getStudyProgramme(), ILIAS\Repository\lng(), ILIAS\Repository\refinery(), and ILIAS\Repository\toolbar().

Referenced by acknowledgeCourses(), acknowledgeCoursesMulti(), and confirmedAcknowledgeCourses().

385  : Form
386  {
387  $prg = $this->getStudyProgramme();
388  $completed_courses = [];
389  $ass_ids = [];
390  foreach ($assignments as $ass) {
391  $ass_ids[] = $ass->getId();
392  $completed_crss = $prg->getCompletedCourses($ass->getUserId());
393 
394  $label = sprintf(
395  "%s (%s)",
396  $ass->getUserInformation()->getFullname(),
397  $ass->getId()
398  );
399  $options = [];
400  foreach ($completed_crss as $opt) {
401  $options[implode(';', [$ass->getId(), $opt['prg_obj_id'],$opt['crs_id']])] = $opt['title'];
402  }
403 
404  $completed_courses[] = $this->ui_factory->input()->field()->multiselect($label, $options);
405  }
406 
407  $form_action = $this->ctrl->getFormAction($this, 'confirmedAcknowledgeCourses')
408  . '&ass_ids=' . implode(',', $ass_ids);
409 
410  $form = $this->ui_factory->input()->container()->form()->standard(
411  $form_action,
412  [
413  $this->ui_factory->input()->field()->section(
414  $completed_courses,
415  $this->lng->txt("prg_acknowledge_completed_courses")
416  )
417  ]
418  )->withAdditionalTransformation(
419  $this->refinery->custom()->transformation(
420  function ($values) {
421  $values = array_merge(...array_filter(array_shift($values)));
422  return array_map(
423  fn($entry) => explode(';', $entry),
424  $values
425  );
426  }
427  )
428  )->withSubmitLabel(
429  $this->lng->txt("btn_next")
430  );
431 
432  $this->toolbar->addComponent(
433  $this->ui_factory->link()->standard(
434  $this->lng->txt('prg_cancel_acknowledge_completed_courses'),
435  $this->ctrl->getLinkTarget($this, self::DEFAULT_CMD)
436  )
437  );
438  $this->toolbar->addComponent(
439  $this->ui_factory->link()->standard(
440  $this->lng->txt('prg_acknowledge_all_completed_courses'),
441  $this->ctrl->getLinkTarget($this, 'confirmedAcknowledgeAllCourses')
442  . '&ass_ids=' . implode(',', $ass_ids)
443  )
444  );
445 
446  return $form;
447  }
getStudyProgramme(?int $ref_id=null)
Get studyprogramm object for ref_id Use this ref_id if argument is null.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Field Documentation

◆ $object

ilObjStudyProgramme ilObjStudyProgrammeMembersGUI::$object
protected

Definition at line 58 of file class.ilObjStudyProgrammeMembersGUI.php.

◆ $parent_gui

ilObjectGUI ilObjStudyProgrammeMembersGUI::$parent_gui
protected

Definition at line 60 of file class.ilObjStudyProgrammeMembersGUI.php.

◆ $permissions

ilPRGPermissionsHelper ilObjStudyProgrammeMembersGUI::$permissions
protected

Definition at line 59 of file class.ilObjStudyProgrammeMembersGUI.php.

◆ $ref_id

int ilObjStudyProgrammeMembersGUI::$ref_id
protected

Definition at line 61 of file class.ilObjStudyProgrammeMembersGUI.php.

Referenced by getStudyProgramme(), and setRefId().

◆ ACTION_ACKNOWLEDGE_COURSES

const ilObjStudyProgrammeMembersGUI::ACTION_ACKNOWLEDGE_COURSES = "acknowledge_completed_courses"

◆ ACTION_CHANGE_DEADLINE

const ilObjStudyProgrammeMembersGUI::ACTION_CHANGE_DEADLINE = "change_deadline"

◆ ACTION_CHANGE_EXPIRE_DATE

const ilObjStudyProgrammeMembersGUI::ACTION_CHANGE_EXPIRE_DATE = "change_expire_date"

◆ ACTION_MARK_ACCREDITED

const ilObjStudyProgrammeMembersGUI::ACTION_MARK_ACCREDITED = "mark_accredited"

◆ ACTION_MARK_RELEVANT

const ilObjStudyProgrammeMembersGUI::ACTION_MARK_RELEVANT = "mark_relevant"

◆ ACTION_REMOVE_CERTIFICATE

const ilObjStudyProgrammeMembersGUI::ACTION_REMOVE_CERTIFICATE = "remove_certificate"

◆ ACTION_REMOVE_USER

const ilObjStudyProgrammeMembersGUI::ACTION_REMOVE_USER = "remove_user"

◆ ACTION_SHOW_INDIVIDUAL_PLAN

const ilObjStudyProgrammeMembersGUI::ACTION_SHOW_INDIVIDUAL_PLAN = "show_individual_plan"

◆ ACTION_UNMARK_ACCREDITED

const ilObjStudyProgrammeMembersGUI::ACTION_UNMARK_ACCREDITED = "unmark_accredited"

◆ ACTION_UNMARK_RELEVANT

const ilObjStudyProgrammeMembersGUI::ACTION_UNMARK_RELEVANT = "unmark_relevant"

◆ ACTION_UPDATE_CERTIFICATE

const ilObjStudyProgrammeMembersGUI::ACTION_UPDATE_CERTIFICATE = "update_certificate"

◆ ACTION_UPDATE_FROM_CURRENT_PLAN

const ilObjStudyProgrammeMembersGUI::ACTION_UPDATE_FROM_CURRENT_PLAN = "update_from_current_plan"

◆ DEFAULT_CMD

const ilObjStudyProgrammeMembersGUI::DEFAULT_CMD = "view"
private

Definition at line 38 of file class.ilObjStudyProgrammeMembersGUI.php.

◆ F_ALL_PROGRESS_IDS

const ilObjStudyProgrammeMembersGUI::F_ALL_PROGRESS_IDS = 'all_progress_ids'

Definition at line 54 of file class.ilObjStudyProgrammeMembersGUI.php.

◆ F_COMMAND_OPTION_ALL

const ilObjStudyProgrammeMembersGUI::F_COMMAND_OPTION_ALL = 'select_cmd_all'

Definition at line 53 of file class.ilObjStudyProgrammeMembersGUI.php.

◆ F_SELECTED_PROGRESS_IDS

const ilObjStudyProgrammeMembersGUI::F_SELECTED_PROGRESS_IDS = 'prgs_ids'

Definition at line 55 of file class.ilObjStudyProgrammeMembersGUI.php.

◆ F_SELECTED_USER_IDS

const ilObjStudyProgrammeMembersGUI::F_SELECTED_USER_IDS = 'usrids'

Definition at line 56 of file class.ilObjStudyProgrammeMembersGUI.php.


The documentation for this class was generated from the following file: