For the purpose of streamlining the grading and learning-process status definition outside of tests, SCORM courses e.t.c.
More...
◆ __construct()
ilIndividualAssessmentMembersGUI::__construct |
( |
|
$a_parent_gui, |
|
|
|
$a_ref_id |
|
) |
| |
Definition at line 22 of file class.ilIndividualAssessmentMembersGUI.php.
References $DIC.
25 $this->ctrl = $DIC[
'ilCtrl'];
26 $this->parent_gui = $a_parent_gui;
27 $this->
object = $a_parent_gui->object;
28 $this->ref_id = $a_ref_id;
29 $this->tpl = $DIC[
'tpl'];
30 $this->lng = $DIC[
'lng'];
31 $this->toolbar = $DIC[
'ilToolbar'];
32 $this->iass_access = $this->
object->accessHandler();
◆ addedUsers()
ilIndividualAssessmentMembersGUI::addedUsers |
( |
| ) |
|
|
protected |
◆ addUsers()
ilIndividualAssessmentMembersGUI::addUsers |
( |
array |
$user_ids | ) |
|
Add users to corresponding iass-object.
To be used by repository search.
- Parameters
-
Definition at line 126 of file class.ilIndividualAssessmentMembersGUI.php.
References $failure, array, and ilIndividualAssessmentLPInterface\updateLPStatusByIds().
Referenced by addUsersFromSearch().
128 if (!$this->iass_access->mayEditMembers()) {
129 $this->parent_gui->handleAccessViolation();
131 $iass = $this->object;
132 $members = $iass->loadMembers();
134 if (count($user_ids) === 0) {
137 foreach ($user_ids as $user_id) {
139 if (!$members->userAllreadyMember($user)) {
140 $members = $members->withAdditionalUser($user);
145 $members->updateStorageAndRBAC($iass->membersStorage(), $iass->accessHandler());
147 $this->ctrl->setParameter($this,
'failure',
$failure);
148 $this->ctrl->redirectByClass(
array(get_class($this->parent_gui),get_class($this)),
'addedUsers');
Create styles array
The data for the language used.
static updateLPStatusByIds($iass_id, array $usr_ids)
◆ addUsersFromSearch()
ilIndividualAssessmentMembersGUI::addUsersFromSearch |
( |
|
$user_ids | ) |
|
Definition at line 111 of file class.ilIndividualAssessmentMembersGUI.php.
References addUsers(), array, and ilUtil\sendInfo().
113 if ($user_ids && is_array($user_ids) && !empty($user_ids)) {
118 $this->ctrl->redirectByClass(
array(get_class($this->parent_gui),get_class($this)),
'view');
addUsers(array $user_ids)
Add users to corresponding iass-object.
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.
Create styles array
The data for the language used.
◆ executeCommand()
ilIndividualAssessmentMembersGUI::executeCommand |
( |
| ) |
|
Definition at line 35 of file class.ilIndividualAssessmentMembersGUI.php.
37 if (!$this->iass_access->mayEditMembers()
38 && !$this->iass_access->mayGradeUser()
39 && !$this->iass_access->mayViewUser()
40 && !$this->iass_access->mayAmendGradeUser()
42 $this->parent_gui->handleAccessViolation();
44 $cmd = $this->ctrl->getCmd();
45 $next_class = $this->ctrl->getNextClass();
46 switch ($next_class) {
47 case "ilrepositorysearchgui":
48 require_once
'Services/Search/classes/class.ilRepositorySearchGUI.php';
50 $rep_search->setCallback($this,
"addUsersFromSearch");
51 $this->ctrl->forwardCommand($rep_search);
53 case "ilindividualassessmentmembergui":
54 require_once
'Modules/IndividualAssessment/classes/class.ilIndividualAssessmentMemberGUI.php';
56 $this->ctrl->forwardCommand($member);
For the purpose of streamlining the grading and learning-process status definition outside of tests...
◆ removeUser()
ilIndividualAssessmentMembersGUI::removeUser |
( |
| ) |
|
Remove users from corresponding iass-object.
To be used by repository search.
- Parameters
-
Definition at line 171 of file class.ilIndividualAssessmentMembersGUI.php.
References $_POST, array, and ilIndividualAssessmentLPInterface\updateLPStatusByIds().
173 if (!$this->iass_access->mayEditMembers()) {
174 $this->parent_gui->handleAccessViolation();
176 $usr_id =
$_POST[
'usr_id'];
177 $iass = $this->object;
179 ->withoutPresentUser(
new ilObjUser($usr_id))
180 ->updateStorageAndRBAC($iass->membersStorage(), $iass->accessHandler());
182 $this->ctrl->redirectByClass(
array(get_class($this->parent_gui),get_class($this)),
'view');
Create styles array
The data for the language used.
static updateLPStatusByIds($iass_id, array $usr_ids)
◆ removeUserConfirmation()
ilIndividualAssessmentMembersGUI::removeUserConfirmation |
( |
| ) |
|
|
protected |
Definition at line 151 of file class.ilIndividualAssessmentMembersGUI.php.
References $_GET, and ilObjUser\_lookupFullname().
153 if (!$this->iass_access->mayEditMembers()) {
154 $this->parent_gui->handleAccessViolation();
156 include_once
'./Services/Utilities/classes/class.ilConfirmationGUI.php';
159 $confirm->setHeaderText($this->lng->txt(
'iass_remove_user_qst'));
160 $confirm->setFormAction($this->ctrl->getFormAction($this));
161 $confirm->setConfirm($this->lng->txt(
'remove'),
'removeUser');
162 $confirm->setCancel($this->lng->txt(
'cancel'),
'view');
163 $this->tpl->setContent($confirm->getHTML());
static _lookupFullname($a_user_id)
Lookup Full Name.
Confirmation screen class.
◆ view()
ilIndividualAssessmentMembersGUI::view |
( |
| ) |
|
|
protected |
Definition at line 77 of file class.ilIndividualAssessmentMembersGUI.php.
References $table, array, and ilRepositorySearchGUI\fillAutoCompleteToolbar().
Referenced by addedUsers().
79 if ($this->iass_access->mayEditMembers()) {
80 require_once
'./Services/Search/classes/class.ilRepositorySearchGUI.php';
82 $search_params = [
'crs',
'grp'];
83 $container_id = $this->
object->getParentContainerIdByType($this->ref_id, $search_params);
84 if ($container_id !== 0) {
89 'auto_complete_name' => $this->lng->txt(
'user'),
90 'submit_name' => $this->lng->txt(
'add'),
92 'add_from_container' => $container_id
100 'auto_complete_name' => $this->lng->txt(
'user'),
101 'submit_name' => $this->lng->txt(
'add'),
108 $this->tpl->setContent(
$table->getHTML());
Create styles array
The data for the language used.
static fillAutoCompleteToolbar($parent_object, ilToolbarGUI $toolbar=null, $a_options=array(), $a_sticky=false)
fill toolbar with
if(empty($password)) $table
◆ $ctrl
ilIndividualAssessmentMembersGUI::$ctrl |
|
protected |
◆ $lng
ilIndividualAssessmentMembersGUI::$lng |
|
protected |
◆ $parent_gui
ilIndividualAssessmentMembersGUI::$parent_gui |
|
protected |
◆ $ref_id
ilIndividualAssessmentMembersGUI::$ref_id |
|
protected |
◆ $tpl
ilIndividualAssessmentMembersGUI::$tpl |
|
protected |
The documentation for this class was generated from the following file: