ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
ilObjIndividualAssessmentGUI Class Reference

For the purpose of streamlining the grading and learning-process status definition outside of tests, SCORM courses e.t.c. More...

+ Inheritance diagram for ilObjIndividualAssessmentGUI:
+ Collaboration diagram for ilObjIndividualAssessmentGUI:

Public Member Functions

 __construct ($data, int $id=0, bool $call_by_reference=true, bool $prepare_output=true)
 
 executeCommand ()
 
 viewObject ()
 
 membersObject ()
 
 editObject ()
 
 getBaseEditForm ()
 
 handleAccessViolation ()
 
 addToNavigationHistory ()
 
- Public Member Functions inherited from ilObjectGUI
 __construct ($data, int $id=0, bool $call_by_reference=true, bool $prepare_output=true)
 
 getRefId ()
 
 setAdminMode (string $mode)
 
 getAdminMode ()
 
 getObject ()
 
 executeCommand ()
 
 withReferences ()
 determines whether objects are referenced or not (got ref ids or not) More...
 
 setCreationMode (bool $mode=true)
 If true, a creation screen is displayed the current [ref_id] does belong to the parent class The mode is determined in ilRepositoryGUI. More...
 
 getCreationMode ()
 
 prepareOutput (bool $show_sub_objects=true)
 
 getAdminTabs ()
 administration tabs show only permissions and trash folder More...
 
 getHTML ()
 
 confirmedDeleteObject ()
 confirmed deletion of object -> objects are moved to trash or deleted immediately, if trash is disabled More...
 
 cancelObject ()
 cancel action and go back to previous page More...
 
 createObject ()
 create new object form More...
 
 editAvailabilityPeriodObject ()
 
 saveAvailabilityPeriodObject ()
 
 cancelCreation ()
 cancel create action and go back to repository parent More...
 
 saveObject ()
 
 getDidacticTemplateVar (string $type)
 Get didactic template setting from creation screen. More...
 
 putObjectInTree (ilObject $obj, int $parent_node_id=null)
 Add object to tree at given position. More...
 
 editObject ()
 
 addExternalEditFormCustom (ilPropertyFormGUI $form)
 
 updateObject ()
 updates object entry in object_data More...
 
 getFormAction (string $cmd, string $default_form_action="")
 Get form action for command (command is method name without "Object", e.g. More...
 
 isVisible (int $ref_id, string $type)
 
 viewObject ()
 viewObject container presentation for "administration -> repository, trash, permissions" More...
 
 deleteObject (bool $error=false)
 Display deletion confirmation screen. More...
 
 setColumnSettings (ilColumnGUI $column_gui)
 
 redirectAfterCreation ()
 Redirect after creation, see https://docu.ilias.de/goto_docu_wiki_wpage_5035_1357.html Should be overwritten and redirect to settings screen. More...
 
 addToDeskObject ()
 
 removeFromDeskObject ()
 
- Public Member Functions inherited from ILIAS\Object\ImplementsCreationCallback
 callCreationCallback (\ilObject $object, \ilObjectDefinition $obj_definition, int $requested_crtcb)
 

Static Public Member Functions

static _goto (string $a_target, string $a_add='')
 
- Static Public Member Functions inherited from ilObjectGUI
static _gotoRepositoryRoot (bool $raise_error=false)
 Goto repository root. More...
 
static _gotoRepositoryNode (int $ref_id, string $cmd="")
 
static _gotoSharedWorkspaceNode (int $wsp_id)
 

Data Fields

const TAB_SETTINGS = 'settings'
 
const TAB_INFO = 'info_short'
 
const TAB_PERMISSION = 'perm_settings'
 
const TAB_MEMBERS = 'members'
 
const TAB_LP = 'learning_progress'
 
const TAB_EXPORT = 'export'
 
const TAB_META_DATA = "meta_data"
 
- Data Fields inherited from ilObjectGUI
const ALLOWED_TAGS_IN_TITLE_AND_DESCRIPTION
 
const ADMIN_MODE_NONE = ""
 
const ADMIN_MODE_SETTINGS = "settings"
 
const ADMIN_MODE_REPOSITORY = "repository"
 
const UPLOAD_TYPE_LOCAL = 1
 
const UPLOAD_TYPE_UPLOAD_DIRECTORY = 2
 
const CFORM_NEW = 1
 
const CFORM_IMPORT = 2
 
const CFORM_CLONE = 3
 

Protected Member Functions

 addLocatorItems ()
 
 recordIndividualAssessmentRead ()
 
 buildInfoScreen ()
 
 addMemberDataToInfo (ilInfoScreenGUI $info)
 
 downloadFileObject ()
 
 addGeneralDataToInfo (ilInfoScreenGUI $info)
 
 addContactDataToInfo (ilInfoScreenGUI $info)
 
 shouldShowContactInfo (ilIndividualAssessmentInfoSettings $info_settings)
 
 getTabs ()
 
 getLinkTarget (string $cmd)
 
 getEntryForStatus (int $status)
 
 afterSave (ilObject $new_object)
 
 txt (string $code)
 
- Protected Member Functions inherited from ilObjectGUI
 getObjectService ()
 
 assignObject ()
 
 setTitleAndDescription ()
 
 createActionDispatcherGUI ()
 
 initHeaderAction (?string $sub_type=null, ?int $sub_id=null)
 Add header action menu. More...
 
 insertHeaderAction (?ilObjectListGUI $list_gui=null)
 Insert header action into main template. More...
 
 addHeaderAction ()
 Add header action menu. More...
 
 redrawHeaderActionObject ()
 Ajax call: redraw action header only. More...
 
 setTabs ()
 set admin tabs More...
 
 setAdminTabs ()
 set admin tabs More...
 
 setLocator ()
 
 addLocatorItems ()
 should be overwritten to add object specific items (repository items are preloaded) More...
 
 omitLocator (bool $omit=true)
 
 addAdminLocatorItems (bool $do_not_add_object=false)
 should be overwritten to add object specific items (repository items are preloaded) More...
 
 initCreationForms (string $new_type)
 Init creation forms. More...
 
 getCreationFormsHTML (array $forms)
 Get HTML for creation forms (accordion) More...
 
 initCreateForm (string $new_type)
 
 initDidacticTemplate (ilPropertyFormGUI $form)
 
 addDidacticTemplateOptions (array &$a_options)
 Add custom templates. More...
 
 addAdoptContentLinkToToolbar ()
 
 addAvailabilityPeriodButtonToToolbar (ilToolbarGUI $toolbar)
 
 afterSave (ilObject $new_object)
 Post (successful) object creation hook. More...
 
 initEditForm ()
 
 initEditCustomForm (ilPropertyFormGUI $a_form)
 Add custom fields to update form. More...
 
 getEditFormValues ()
 
 getEditFormCustomValues (array &$a_values)
 Add values to custom edit fields. More...
 
 validateCustom (ilPropertyFormGUI $form)
 Validate custom values (if not possible with checkInput()) More...
 
 updateCustom (ilPropertyFormGUI $form)
 Insert custom update form values into object. More...
 
 afterUpdate ()
 Post (successful) object update hook. More...
 
 initImportForm (string $new_type)
 
 importFileObject (int $parent_id=null)
 
 afterImport (ilObject $new_object)
 Post (successful) object import hook. More...
 
 setFormAction (string $cmd, string $form_action)
 
 getReturnLocation (string $cmd, string $default_location="")
 Get return location for command (command is method name without "Object", e.g. More...
 
 setReturnLocation (string $cmd, string $location)
 set specific return location for command More...
 
 getTargetFrame (string $cmd, string $default_target_frame="")
 get target frame for command (command is method name without "Object", e.g. More...
 
 setTargetFrame (string $cmd, string $target_frame)
 Set specific target frame for command. More...
 
 showPossibleSubObjects ()
 show possible sub objects (pull down menu) More...
 
 getTabs ()
 overwrite in derived GUI class of your object type More...
 
 redirectToRefId (int $ref_id, string $cmd="")
 redirects to (repository) view per ref id usually to a container and usually used at the end of a save/import method where the object gui type (of the new object) doesn't match with the type of the current ["ref_id"] value of the request More...
 
 getCenterColumnHTML ()
 Get center column. More...
 
 getRightColumnHTML ()
 Display right column. More...
 
 checkPermission (string $perm, string $cmd="", string $type="", ?int $ref_id=null)
 
 checkPermissionBool (string $perm, string $cmd="", string $type="", ?int $ref_id=null)
 
 enableDragDropFileUpload ()
 Enables the file upload into this object by dropping files. More...
 

Protected Attributes

ilNavigationHistory $ilNavigationHistory
 
ilObjUser $usr
 
ilErrorHandling $error_object
 
ilAccessHandler $ilAccess
 
ILIAS Refinery Factory $refinery
 
ILIAS HTTP Wrapper RequestWrapper $request_wrapper
 
ILIAS ResourceStorage Services $irss
 
- Protected Attributes inherited from ilObjectGUI
ILIAS Notes Service $notes_service
 
ServerRequestInterface $request
 
ilLocatorGUI $locator
 
ilObjUser $user
 
ilAccessHandler $access
 
ilSetting $settings
 
ilToolbarGUI $toolbar
 
ilRbacAdmin $rbac_admin
 
ilRbacSystem $rbac_system
 
ilRbacReview $rbac_review
 
ilObjectService $object_service
 
ilObjectDefinition $obj_definition
 
ilGlobalTemplateInterface $tpl
 
ilTree $tree
 
ilCtrl $ctrl
 
ilErrorHandling $error
 
ilLanguage $lng
 
ilTabsGUI $tabs_gui
 
ILIAS $ilias
 
ArrayBasedRequestWrapper $post_wrapper
 
RequestWrapper $request_wrapper
 
Factory $refinery
 
ilFavouritesManager $favourites
 
ilObjectCustomIconFactory $custom_icon_factory
 
UIFactory $ui_factory
 
UIRenderer $ui_renderer
 
ilObject $object = null
 
bool $creation_mode = false
 
 $data
 
int $id
 
bool $call_by_reference = false
 
bool $prepare_output
 
int $ref_id
 
int $obj_id
 
int $maxcount
 
array $form_action = []
 
array $return_location = []
 
array $target_frame = []
 
string $tmp_import_dir
 
string $sub_objects = ""
 
bool $omit_locator = false
 
string $type = ""
 
string $admin_mode = self::ADMIN_MODE_NONE
 
int $requested_ref_id = 0
 
int $requested_crtptrefid = 0
 
int $requested_crtcb = 0
 
string $requested_new_type = ""
 
string $link_params
 
string $html = ""
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilObjIndividualAssessmentGUI::__construct (   $data,
int  $id = 0,
bool  $call_by_reference = true,
bool  $prepare_output = true 
)

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

References ilObjectGUI\$call_by_reference, ilObjectGUI\$data, $DIC, ilObjectGUI\$id, ilObjectGUI\$prepare_output, ILIAS\MetaData\Repository\Validation\Data\__construct(), ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), and ILIAS\Repository\refinery().

56  {
57  global $DIC;
58  $this->ilNavigationHistory = $DIC['ilNavigationHistory'];
59  $this->type = 'iass';
60  $this->tpl = $DIC['tpl'];
61  $this->ctrl = $DIC['ilCtrl'];
62  $this->usr = $DIC['ilUser'];
63  $this->error_object = $DIC['ilErr'];
64  $this->lng = $DIC['lng'];
65  $this->lng->loadLanguageModule('iass');
66  $this->tpl->loadStandardTemplate();
67  $this->refinery = $DIC->refinery();
68  $this->request_wrapper = $DIC->http()->wrapper()->query();
69  $this->irss = $DIC['resource_storage'];
70 
72  }
global $DIC
Definition: feed.php:28
__construct(VocabulariesInterface $vocabularies)
Last visited history for repository items.
+ Here is the call graph for this function:

Member Function Documentation

◆ _goto()

static ilObjIndividualAssessmentGUI::_goto ( string  $a_target,
string  $a_add = '' 
)
static

Definition at line 398 of file class.ilObjIndividualAssessmentGUI.php.

References $DIC, ilObjectGUI\_gotoRepositoryNode(), and ILIAS\Repository\int().

398  : void
399  {
400  global $DIC;
401  $a_target = (int) $a_target;
402  if ($DIC['ilAccess']->checkAccess('write', '', $a_target)) {
403  ilObjectGUI::_gotoRepositoryNode($a_target, 'edit');
404  }
405  if ($DIC['ilAccess']->checkAccess('read', '', $a_target)) {
407  }
408  }
static _gotoRepositoryNode(int $ref_id, string $cmd="")
global $DIC
Definition: feed.php:28
+ Here is the call graph for this function:

◆ addContactDataToInfo()

ilObjIndividualAssessmentGUI::addContactDataToInfo ( ilInfoScreenGUI  $info)
protected

Definition at line 256 of file class.ilObjIndividualAssessmentGUI.php.

References ilInfoScreenGUI\addProperty(), ilInfoScreenGUI\addSection(), shouldShowContactInfo(), and txt().

Referenced by buildInfoScreen().

257  {
258  $info_settings = $this->object->getInfoSettings();
259  if ($this->shouldShowContactInfo($info_settings)) {
260  $info->addSection($this->txt('iass_contact_info'));
261  $info->addProperty($this->txt('iass_contact'), $info_settings->getContact());
262  $info->addProperty($this->txt('iass_responsibility'), $info_settings->getResponsibility());
263  $info->addProperty($this->txt('iass_phone'), $info_settings->getPhone());
264  $info->addProperty($this->txt('iass_mails'), $info_settings->getMails());
265  $info->addProperty($this->txt('iass_consultation_hours'), $info_settings->getConsultationHours());
266  }
267  return $info;
268  }
Class ilInfoScreenGUI.
addProperty(string $a_name, string $a_value, string $a_link="")
add a property to current section
shouldShowContactInfo(ilIndividualAssessmentInfoSettings $info_settings)
addSection(string $a_title)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ addGeneralDataToInfo()

ilObjIndividualAssessmentGUI::addGeneralDataToInfo ( ilInfoScreenGUI  $info)
protected

Definition at line 246 of file class.ilObjIndividualAssessmentGUI.php.

References ilInfoScreenGUI\addProperty(), ilInfoScreenGUI\addSection(), and txt().

Referenced by buildInfoScreen().

247  {
248  $content = $this->object->getSettings()->getContent();
249  if ($content !== null && $content !== '') {
250  $info->addSection($this->txt('general'));
251  $info->addProperty($this->txt('content'), $content);
252  }
253  return $info;
254  }
Class ilInfoScreenGUI.
addProperty(string $a_name, string $a_value, string $a_link="")
add a property to current section
addSection(string $a_title)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ addLocatorItems()

ilObjIndividualAssessmentGUI::addLocatorItems ( )
protected

Definition at line 74 of file class.ilObjIndividualAssessmentGUI.php.

References ILIAS\Repository\ctrl(), ILIAS\Repository\locator(), and ILIAS\Repository\object().

74  : void
75  {
76  if (is_object($this->object)) {
77  $this->locator->addItem(
78  $this->object->getTitle(),
79  $this->ctrl->getLinkTarget($this, "view"),
80  "",
81  $this->object->getRefId()
82  );
83  }
84  }
+ Here is the call graph for this function:

◆ addMemberDataToInfo()

ilObjIndividualAssessmentGUI::addMemberDataToInfo ( ilInfoScreenGUI  $info)
protected

Definition at line 207 of file class.ilObjIndividualAssessmentGUI.php.

References ilObjectGUI\$tpl, ilInfoScreenGUI\addProperty(), ilInfoScreenGUI\addSection(), ILIAS\Repository\ctrl(), ilGlobalTemplateInterface\get(), getEntryForStatus(), ilGlobalTemplateInterface\setVariable(), and txt().

Referenced by buildInfoScreen().

208  {
209  $member = $this->object->membersStorage()->loadMember($this->object, $this->usr);
210  $info->addSection($this->txt('grading_info'));
211  if ($member->finalized()) {
212  $info->addProperty($this->txt('grading'), $this->getEntryForStatus($member->LPStatus()));
213  }
214  if ($member->notify() && $member->finalized()) {
215  $info->addProperty($this->txt('grading_record'), nl2br($member->record()));
216  if (($member->viewFile()) && $member->fileName() && $member->fileName() != "") {
217  $tpl = new ilTemplate("tpl.iass_user_file_download.html", true, true, "Modules/IndividualAssessment");
218  $tpl->setVariable("FILE_NAME", $member->fileName());
219  $tpl->setVariable("HREF", $this->ctrl->getLinkTarget($this, "downloadFile"));
220  $info->addProperty($this->txt('iass_upload_file'), $tpl->get());
221  }
222  }
223 
224  return $info;
225  }
Class ilInfoScreenGUI.
addProperty(string $a_name, string $a_value, string $a_link="")
add a property to current section
get(string $part=self::DEFAULT_BLOCK)
Renders the given block and returns the html string.
setVariable(string $variable, $value='')
Sets the given variable to the given value.
ilGlobalTemplateInterface $tpl
addSection(string $a_title)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ addToNavigationHistory()

ilObjIndividualAssessmentGUI::addToNavigationHistory ( )

Definition at line 437 of file class.ilObjIndividualAssessmentGUI.php.

References ilObjectGUI\$ref_id, ilNavigationHistory\addItem(), ilObjectGUI\getCreationMode(), ILIAS\Repository\object(), and ILIAS\Repository\refinery().

Referenced by executeCommand().

437  : void
438  {
439  if (!$this->getCreationMode()) {
440  if ($this->object->accessHandler()->mayReadObject()) {
441  $ref_id = $this->request_wrapper->retrieve("ref_id", $this->refinery->kindlyTo()->int());
442  $link = ilLink::_getLink($ref_id, "iass");
443  $this->ilNavigationHistory->addItem($ref_id, $link, 'iass');
444  }
445  }
446  }
Last visited history for repository items.
addItem(int $a_ref_id, string $a_link, string $a_type, string $a_title="", ?int $a_sub_obj_id=null, string $a_goto_link="")
Add an item to the stack.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ afterSave()

ilObjIndividualAssessmentGUI::afterSave ( ilObject  $new_object)
protected

Definition at line 424 of file class.ilObjIndividualAssessmentGUI.php.

References ILIAS\Repository\ctrl(), ilObject\getRefId(), and txt().

424  : void
425  {
426  $this->tpl->setOnScreenMessage("success", $this->txt("iass_added"), true);
427  $this->ctrl->setParameter($this, "ref_id", $new_object->getRefId());
428  $this->ctrl->redirectToUrl($this->ctrl->getLinkTargetByClass(
429  'ilIndividualassessmentsettingsgui',
430  'edit',
431  '',
432  false,
433  false
434  ));
435  }
+ Here is the call graph for this function:

◆ buildInfoScreen()

ilObjIndividualAssessmentGUI::buildInfoScreen ( )
protected

Definition at line 188 of file class.ilObjIndividualAssessmentGUI.php.

References addContactDataToInfo(), addGeneralDataToInfo(), addMemberDataToInfo(), ilAdvancedMDRecordGUI\MODE_INFO, ILIAS\Repository\object(), and ilAdvancedMDRecordGUI\setInfoObject().

Referenced by executeCommand(), and viewObject().

189  {
190  $info = new ilInfoScreenGUI($this);
191  if ($this->object) {
192  $record_gui = new ilAdvancedMDRecordGUI(ilAdvancedMDRecordGUI::MODE_INFO, 'iass', $this->object->getId());
193  $record_gui->setInfoObject($info);
194  $record_gui->parse();
195 
196  $info->addMetaDataSections($this->object->getId(), 0, $this->object->getType());
197 
198  $info = $this->addGeneralDataToInfo($info);
199  if ($this->object->loadMembers()->userAllreadyMember($this->usr)) {
200  $info = $this->addMemberDataToInfo($info);
201  }
202  $info = $this->addContactDataToInfo($info);
203  }
204  return $info;
205  }
Class ilInfoScreenGUI.
setInfoObject(ilInfoScreenGUI $info)
get info sections
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ downloadFileObject()

ilObjIndividualAssessmentGUI::downloadFileObject ( )
protected

Definition at line 227 of file class.ilObjIndividualAssessmentGUI.php.

227  : void
228  {
229  $member = $this->object->membersStorage()->loadMember($this->object, $this->usr);
230  if (
231  $member
232  && $member->notify()
233  && $member->finalized()
234  && $member->viewFile()
235  && $member->fileName()
236  && $member->fileName() != ""
237  ) {
238  $identifier = $member->getGrading()->getFile();
239  $resource_id = $this->irss->manage()->find($identifier);
240  if($resource_id) {
241  $this->irss->consume()->download($resource_id)->run();
242  }
243  }
244  }

◆ editObject()

ilObjIndividualAssessmentGUI::editObject ( )

Definition at line 382 of file class.ilObjIndividualAssessmentGUI.php.

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

382  : void
383  {
384  $link = $this->getLinkTarget('settings');
385  $this->ctrl->redirectToURL($link);
386  }
+ Here is the call graph for this function:

◆ executeCommand()

ilObjIndividualAssessmentGUI::executeCommand ( )

Definition at line 96 of file class.ilObjIndividualAssessmentGUI.php.

References $learning_progress, ilObjectGUI\addHeaderAction(), addToNavigationHistory(), buildInfoScreen(), ilObjectGUI\checkPermissionBool(), ILIAS\Repository\ctrl(), ilCommonActionDispatcherGUI\getInstanceFromAjaxCall(), ilLearningProgressBaseGUI\LP_CONTEXT_REPOSITORY, membersObject(), ILIAS\Repository\object(), and ilObjectGUI\prepareOutput().

96  : void
97  {
98  $next_class = $this->ctrl->getNextClass($this);
99  $cmd = $this->ctrl->getCmd();
100  $this->prepareOutput();
101  $this->addToNavigationHistory();
102 
103  switch ($next_class) {
104  case 'ilpermissiongui':
105  $this->tabs_gui->activateTab(self::TAB_PERMISSION);
106  $ilPermissionGUI = new ilPermissionGUI($this);
107  $this->ctrl->forwardCommand($ilPermissionGUI);
108  break;
109  case 'ilindividualassessmentsettingsgui':
110  $this->tabs_gui->activateTab(self::TAB_SETTINGS);
111  $gui = $this->object->getSettingsGUI();
112  $this->ctrl->forwardCommand($gui);
113  break;
114  case 'ilindividualassessmentmembersgui':
115  $this->membersObject();
116  break;
117  case 'ilinfoscreengui':
118  $this->tabs_gui->activateTab(self::TAB_INFO);
119  $info = $this->buildInfoScreen();
120  $this->ctrl->forwardCommand($info);
121  break;
122  case 'illearningprogressgui':
123  $this->tabs_gui->activateTab(self::TAB_LP);
126  $this->object->getRefId(),
127  $this->usr->getId()
128  );
129  $this->ctrl->forwardCommand($learning_progress);
130  break;
131  case "ilcommonactiondispatchergui":
133  $this->ctrl->forwardCommand($gui);
134  break;
135  case "ilexportgui":
136  $this->tabs_gui->activateTab(self::TAB_EXPORT);
137  $exp_gui = new ilExportGUI($this); // $this is the ilObj...GUI class of the resource
138  $exp_gui->addFormat("xml");
139  $this->ctrl->forwardCommand($exp_gui);
140  break;
141  case 'ilobjectmetadatagui':
142  $this->checkPermissionBool("write");
143  $this->tabs_gui->activateTab(self::TAB_META_DATA);
144  $md_gui = new ilObjectMetaDataGUI($this->object);
145  $this->ctrl->forwardCommand($md_gui);
146  break;
147  case 'ilobjectcopygui':
148  $cp = new ilObjectCopyGUI($this);
149  $cp->setType('crs');
150  $this->ctrl->forwardCommand($cp);
151  break;
152  default:
153  if (!$cmd) {
154  $cmd = 'view';
155  if ($this->object->accessHandler()->mayViewAnyUser() || $this->object->accessHandler()->mayEditMembers()) {
156  $this->ctrl->setCmdClass('ilIndividualassessmentmembersgui');
157  $cmd = 'members';
158  }
159  }
160  if($cmd === 'edit' && $this->object->accessHandler()->simulateMember()) {
161  $cmd = 'view';
162  }
163 
164  $cmd .= 'Object';
165  $this->$cmd();
166  }
167 
168  $this->addHeaderAction();
169  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
GUI class for the workflow of copying objects.
prepareOutput(bool $show_sub_objects=true)
$learning_progress
Definition: plugin.php:29
Export User Interface Class.
checkPermissionBool(string $perm, string $cmd="", string $type="", ?int $ref_id=null)
New PermissionGUI (extends from old ilPermission2GUI) RBAC related output.
addHeaderAction()
Add header action menu.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static getInstanceFromAjaxCall()
(Re-)Build instance from ajax call
+ Here is the call graph for this function:

◆ getBaseEditForm()

ilObjIndividualAssessmentGUI::getBaseEditForm ( )

Definition at line 388 of file class.ilObjIndividualAssessmentGUI.php.

References ilObjectGUI\initEditForm().

389  {
390  return $this->initEditForm();
391  }
+ Here is the call graph for this function:

◆ getEntryForStatus()

ilObjIndividualAssessmentGUI::getEntryForStatus ( int  $status)
protected

Definition at line 410 of file class.ilObjIndividualAssessmentGUI.php.

References ilIndividualAssessmentMembers\LP_COMPLETED, ilIndividualAssessmentMembers\LP_FAILED, ilIndividualAssessmentMembers\LP_IN_PROGRESS, and txt().

Referenced by addMemberDataToInfo().

410  : string
411  {
412  switch ($status) {
414  return $this->txt('iass_status_pending');
416  return $this->txt('iass_status_completed');
418  return $this->txt('iass_status_failed');
419  default:
420  throw new ilIndividualAssessmentException("Status for id $status not found!");
421  }
422  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getLinkTarget()

ilObjIndividualAssessmentGUI::getLinkTarget ( string  $cmd)
protected

Definition at line 368 of file class.ilObjIndividualAssessmentGUI.php.

References ILIAS\Repository\ctrl().

Referenced by editObject(), and getTabs().

368  : string
369  {
370  if ($cmd == 'settings') {
371  return $this->ctrl->getLinkTargetByClass('ilindividualassessmentsettingsgui', 'edit');
372  }
373  if ($cmd == 'info') {
374  return $this->ctrl->getLinkTarget($this, 'view');
375  }
376  if ($cmd == 'members') {
377  return $this->ctrl->getLinkTargetByClass('ilindividualassessmentmembersgui', 'view');
378  }
379  return $this->ctrl->getLinkTarget($this, $cmd);
380  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getTabs()

ilObjIndividualAssessmentGUI::getTabs ( )
protected

Definition at line 295 of file class.ilObjIndividualAssessmentGUI.php.

References ilObjUserTracking\_enabledLearningProgress(), ILIAS\Repository\ctrl(), getLinkTarget(), ILIAS\Repository\object(), and txt().

295  : void
296  {
297  if ($this->object->accessHandler()->mayEditMembers()
298  || $this->object->accessHandler()->mayGradeAnyUser()
299  || $this->object->accessHandler()->mayAmendAllUsers()
300  || $this->object->accessHandler()->mayViewAnyUser()) {
301  $this->tabs_gui->addTab(
302  self::TAB_MEMBERS,
303  $this->txt('il_iass_members'),
304  $this->getLinkTarget('members')
305  );
306  }
307 
308  if ($this->object->accessHandler()->mayReadObject()) {
309  $this->tabs_gui->addTab(
310  self::TAB_INFO,
311  $this->txt('info_short'),
312  $this->getLinkTarget('info')
313  );
314  }
315 
316  if ($this->object->accessHandler()->mayEditObject()) {
317  $this->tabs_gui->addTab(
318  self::TAB_SETTINGS,
319  $this->txt('settings'),
320  $this->getLinkTarget('settings')
321  );
322  }
323 
324  if (($this->object->accessHandler()->mayViewAllUsers()
325  || $this->object->accessHandler()->mayEditLearningProgressSettings()
326  || ($this->object->loadMembers()->userAllreadyMember($this->usr)
327  && $this->object->isActiveLP()))
329  $this->tabs_gui->addTab(
330  self::TAB_LP,
331  $this->txt('learning_progress'),
332  $this->ctrl->getLinkTargetByClass('illearningprogressgui')
333  );
334  }
335 
336  if ($this->object->accessHandler()->mayEditObject()) {
337  $mdgui = new ilObjectMetaDataGUI($this->object);
338  $mdtab = $mdgui->getTab();
339  if ($mdtab) {
340  $this->tabs_gui->addTab(
341  self::TAB_META_DATA,
342  $this->txt("meta_data"),
343  $mdtab
344  );
345  }
346  }
347 
348  if ($this->object->accessHandler()->mayEditObject()) {
349  $this->tabs_gui->addTarget(
350  self::TAB_EXPORT,
351  $this->ctrl->getLinkTargetByClass('ilexportgui', ''),
352  'export',
353  'ilexportgui'
354  );
355  }
356 
357  if ($this->object->accessHandler()->mayEditPermissions()) {
358  $this->tabs_gui->addTarget(
359  self::TAB_PERMISSION,
360  $this->ctrl->getLinkTargetByClass('ilpermissiongui', 'perm'),
361  array(),
362  'ilpermissiongui'
363  );
364  }
365  parent::getTabs();
366  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
+ Here is the call graph for this function:

◆ handleAccessViolation()

ilObjIndividualAssessmentGUI::handleAccessViolation ( )

Definition at line 393 of file class.ilObjIndividualAssessmentGUI.php.

References txt().

393  : void
394  {
395  $this->error_object->raiseError($this->txt("msg_no_perm_read"), $this->error_object->WARNING);
396  }
+ Here is the call graph for this function:

◆ membersObject()

ilObjIndividualAssessmentGUI::membersObject ( )

Definition at line 181 of file class.ilObjIndividualAssessmentGUI.php.

References ILIAS\Repository\ctrl().

Referenced by executeCommand().

181  : void
182  {
183  $this->tabs_gui->activateTab(self::TAB_MEMBERS);
184  $gui = $this->object->getMembersGUI();
185  $this->ctrl->forwardCommand($gui);
186  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ recordIndividualAssessmentRead()

ilObjIndividualAssessmentGUI::recordIndividualAssessmentRead ( )
protected

Definition at line 86 of file class.ilObjIndividualAssessmentGUI.php.

References ilChangeEvent\_recordReadEvent(), and ILIAS\Repository\object().

Referenced by viewObject().

86  : void
87  {
89  $this->object->getType(),
90  $this->object->getRefId(),
91  $this->object->getId(),
92  $this->usr->getId()
93  );
94  }
static _recordReadEvent(string $a_type, int $a_ref_id, int $obj_id, int $usr_id, bool $isCatchupWriteEvents=true, $a_ext_rc=null, $a_ext_time=null)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ shouldShowContactInfo()

ilObjIndividualAssessmentGUI::shouldShowContactInfo ( ilIndividualAssessmentInfoSettings  $info_settings)
protected

Definition at line 270 of file class.ilObjIndividualAssessmentGUI.php.

References ilIndividualAssessmentInfoSettings\getConsultationHours(), ilIndividualAssessmentInfoSettings\getContact(), ilIndividualAssessmentInfoSettings\getMails(), ilIndividualAssessmentInfoSettings\getPhone(), and ilIndividualAssessmentInfoSettings\getResponsibility().

Referenced by addContactDataToInfo().

270  : bool
271  {
272  $val = $info_settings->getContact();
273  if ($val !== null && $val !== '') {
274  return true;
275  }
276  $val = $info_settings->getResponsibility();
277  if ($val !== null && $val !== '') {
278  return true;
279  }
280  $val = $info_settings->getPhone();
281  if ($val !== null && $val !== '') {
282  return true;
283  }
284  $val = $info_settings->getMails();
285  if ($val !== null && $val !== '') {
286  return true;
287  }
288  $val = $info_settings->getConsultationHours();
289  if ($val !== null && $val !== '') {
290  return true;
291  }
292  return false;
293  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ txt()

ilObjIndividualAssessmentGUI::txt ( string  $code)
protected

Definition at line 448 of file class.ilObjIndividualAssessmentGUI.php.

References ILIAS\Repository\lng().

Referenced by addContactDataToInfo(), addGeneralDataToInfo(), addMemberDataToInfo(), afterSave(), getEntryForStatus(), getTabs(), and handleAccessViolation().

448  : string
449  {
450  return $this->lng->txt($code);
451  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ viewObject()

ilObjIndividualAssessmentGUI::viewObject ( )

Definition at line 171 of file class.ilObjIndividualAssessmentGUI.php.

References buildInfoScreen(), ILIAS\Repository\ctrl(), and recordIndividualAssessmentRead().

171  : void
172  {
173  $this->tabs_gui->activateTab(self::TAB_INFO);
174  $this->ctrl->setCmd('showSummary');
175  $this->ctrl->setCmdClass('ilinfoscreengui');
176  $info = $this->buildInfoScreen();
177  $this->ctrl->forwardCommand($info);
179  }
+ Here is the call graph for this function:

Field Documentation

◆ $error_object

ilErrorHandling ilObjIndividualAssessmentGUI::$error_object
protected

Definition at line 48 of file class.ilObjIndividualAssessmentGUI.php.

◆ $ilAccess

ilAccessHandler ilObjIndividualAssessmentGUI::$ilAccess
protected

Definition at line 49 of file class.ilObjIndividualAssessmentGUI.php.

◆ $ilNavigationHistory

ilNavigationHistory ilObjIndividualAssessmentGUI::$ilNavigationHistory
protected

Definition at line 46 of file class.ilObjIndividualAssessmentGUI.php.

◆ $irss

ILIAS ResourceStorage Services ilObjIndividualAssessmentGUI::$irss
protected

Definition at line 52 of file class.ilObjIndividualAssessmentGUI.php.

◆ $refinery

ILIAS Refinery Factory ilObjIndividualAssessmentGUI::$refinery
protected

Definition at line 50 of file class.ilObjIndividualAssessmentGUI.php.

◆ $request_wrapper

ILIAS HTTP Wrapper RequestWrapper ilObjIndividualAssessmentGUI::$request_wrapper
protected

Definition at line 51 of file class.ilObjIndividualAssessmentGUI.php.

◆ $usr

ilObjUser ilObjIndividualAssessmentGUI::$usr
protected

Definition at line 47 of file class.ilObjIndividualAssessmentGUI.php.

◆ TAB_EXPORT

const ilObjIndividualAssessmentGUI::TAB_EXPORT = 'export'

Definition at line 43 of file class.ilObjIndividualAssessmentGUI.php.

◆ TAB_INFO

const ilObjIndividualAssessmentGUI::TAB_INFO = 'info_short'

Definition at line 39 of file class.ilObjIndividualAssessmentGUI.php.

◆ TAB_LP

const ilObjIndividualAssessmentGUI::TAB_LP = 'learning_progress'

Definition at line 42 of file class.ilObjIndividualAssessmentGUI.php.

◆ TAB_MEMBERS

const ilObjIndividualAssessmentGUI::TAB_MEMBERS = 'members'

Definition at line 41 of file class.ilObjIndividualAssessmentGUI.php.

◆ TAB_META_DATA

const ilObjIndividualAssessmentGUI::TAB_META_DATA = "meta_data"

Definition at line 44 of file class.ilObjIndividualAssessmentGUI.php.

◆ TAB_PERMISSION

const ilObjIndividualAssessmentGUI::TAB_PERMISSION = 'perm_settings'

Definition at line 40 of file class.ilObjIndividualAssessmentGUI.php.

◆ TAB_SETTINGS

const ilObjIndividualAssessmentGUI::TAB_SETTINGS = 'settings'

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


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