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.
24 $this->ctrl = $DIC[
'ilCtrl'];
25 $this->parent_gui = $a_parent_gui;
26 $this->
object = $a_parent_gui->object;
27 $this->ref_id = $a_ref_id;
28 $this->tpl = $DIC[
'tpl'];
29 $this->lng = $DIC[
'lng'];
30 $this->toolbar = $DIC[
'ilToolbar'];
31 $this->access_handler = $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 119 of file class.ilIndividualAssessmentMembersGUI.php.
References $failure, array, object, and ilIndividualAssessmentLPInterface\updateLPStatusByIds().
Referenced by addUsersFromSearch().
121 if(!$this->
object->accessHandler()->checkAccessToObj($this->
object,
'edit_members')) {
122 $a_parent_gui->handleAccessViolation();
124 $iass = $this->object;
125 $members = $iass->loadMembers();
127 if(count($user_ids) === 0) {
130 foreach ($user_ids as $user_id) {
132 if(!$members->userAllreadyMember($user)) {
133 $members = $members->withAdditionalUser($user);
138 $members->updateStorageAndRBAC($iass->membersStorage(),$iass->accessHandler());
140 $this->ctrl->setParameter($this,
'failure',
$failure);
141 $this->ctrl->redirectByClass(
array(get_class($this->parent_gui),get_class($this)),
'addedUsers');
Create styles array
The data for the language used.
Create new PHPExcel object
obj_idprivate
static updateLPStatusByIds($iass_id, array $usr_ids)
◆ addUsersFromSearch()
ilIndividualAssessmentMembersGUI::addUsersFromSearch |
( |
|
$user_ids | ) |
|
Definition at line 105 of file class.ilIndividualAssessmentMembersGUI.php.
References addUsers(), array, and ilUtil\sendInfo().
106 if($user_ids && is_array($user_ids) && !empty($user_ids)) {
111 $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 34 of file class.ilIndividualAssessmentMembersGUI.php.
References $cmd.
35 if(!$this->access_handler->checkAccessToObj($this->object,
'edit_members')
36 && !$this->access_handler->checkAccessToObj($this->
object,
'edit_learning_progress')
37 && !$this->access_handler->checkAccessToObj($this->
object,
'read_learning_progress') ) {
38 $this->parent_gui->handleAccessViolation();
40 $cmd = $this->ctrl->getCmd();
41 $next_class = $this->ctrl->getNextClass();
43 case "ilrepositorysearchgui":
44 require_once
'Services/Search/classes/class.ilRepositorySearchGUI.php';
46 $rep_search->setCallback($this,
"addUsersFromSearch");
47 $this->ctrl->forwardCommand($rep_search);
49 case "ilindividualassessmentmembergui":
50 require_once
'Modules/IndividualAssessment/classes/class.ilIndividualAssessmentMemberGUI.php';
52 $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 164 of file class.ilIndividualAssessmentMembersGUI.php.
References $_POST, array, object, and ilIndividualAssessmentLPInterface\updateLPStatusByIds().
165 if(!$this->
object->accessHandler()->checkAccessToObj($this->
object,
'edit_members')) {
166 $a_parent_gui->handleAccessViolation();
168 $usr_id =
$_POST[
'usr_id'];
169 $iass = $this->object;
171 ->withoutPresentUser(
new ilObjUser($usr_id))
172 ->updateStorageAndRBAC($iass->membersStorage(),$iass->accessHandler());
174 $this->ctrl->redirectByClass(
array(get_class($this->parent_gui),get_class($this)),
'view');
Create styles array
The data for the language used.
Create new PHPExcel object
obj_idprivate
static updateLPStatusByIds($iass_id, array $usr_ids)
◆ removeUserConfirmation()
ilIndividualAssessmentMembersGUI::removeUserConfirmation |
( |
| ) |
|
|
protected |
Definition at line 144 of file class.ilIndividualAssessmentMembersGUI.php.
References $_GET, ilObjUser\_lookupFullname(), and object.
145 if(!$this->
object->accessHandler()->checkAccessToObj($this->
object,
'edit_members')) {
146 $a_parent_gui->handleAccessViolation();
148 $this->parent_gui->setScreenId(
"iass",
"members",
"removeUserConfirmation");
149 include_once
'./Services/Utilities/classes/class.ilConfirmationGUI.php';
152 $confirm->setHeaderText($this->lng->txt(
'iass_remove_user_qst'));
153 $confirm->setFormAction($this->ctrl->getFormAction($this));
154 $confirm->setConfirm($this->lng->txt(
'remove'),
'removeUser');
155 $confirm->setCancel($this->lng->txt(
'cancel'),
'view');
156 $this->tpl->setContent($confirm->getHTML());
static _lookupFullname($a_user_id)
Lookup Full Name.
Create new PHPExcel object
obj_idprivate
Confirmation screen class.
◆ view()
ilIndividualAssessmentMembersGUI::view |
( |
| ) |
|
|
protected |
Definition at line 72 of file class.ilIndividualAssessmentMembersGUI.php.
References array, and ilRepositorySearchGUI\fillAutoCompleteToolbar().
Referenced by addedUsers().
73 if($this->access_handler->checkAccessToObj($this->object,
'edit_members')) {
74 require_once
'./Services/Search/classes/class.ilRepositorySearchGUI.php';
76 $search_params = [
'crs',
'grp'];
77 $container_id = $this->
object->getParentContainerIdByType($this->ref_id, $search_params);
78 if($container_id !== 0) {
83 'auto_complete_name' => $this->lng->txt(
'user'),
84 'submit_name' => $this->lng->txt(
'add'),
86 'add_from_container' => $container_id
94 'auto_complete_name' => $this->lng->txt(
'user'),
95 'submit_name' => $this->lng->txt(
'add'),
102 $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
◆ $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: