ILIAS  release_8 Revision v8.24
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 ()
 viewObject container presentation for "administration -> repository, trash, permissions" More...
 
 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] don't belong to the current 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...
 
 cancelDeleteObject ()
 cancel deletion of object More...
 
 cancelObject ()
 cancel action and go back to previous page More...
 
 createObject ()
 create new object form More...
 
 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 (int $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 ()
 should be overwritten to add object specific items (repository items are preloaded) More...
 
 recordIndividualAssessmentRead ()
 
 buildInfoScreen ()
 
 addMemberDataToInfo (ilInfoScreenGUI $info)
 
 downloadFileObject ()
 
 addGeneralDataToInfo (ilInfoScreenGUI $info)
 
 addContactDataToInfo (ilInfoScreenGUI $info)
 
 shouldShowContactInfo (ilIndividualAssessmentInfoSettings $info_settings)
 
 getTabs ()
 @abstract overwrite in derived GUI class of your object type More...
 
 getLinkTarget (string $cmd)
 
 getEntryForStatus (int $status)
 
 afterSave (ilObject $new_object)
 Post (successful) object creation hook. More...
 
 txt (string $code)
 
- Protected Member Functions inherited from ilObjectGUI
 getObjectService ()
 
 assignObject ()
 
 setTitleAndDescription ()
 
 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...
 
 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 ()
 @abstract 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...
 
 fillCloneTemplate (?string $tpl_name, string $type)
 Fill object clone template This method can be called from any object GUI class that wants to offer object cloning. 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...
 
 showCustomIconsEditing ( $input_colspan=1, ilPropertyFormGUI $form=null, $as_section=true)
 show edit section of custom icons for container More...
 

Protected Attributes

ilNavigationHistory $ilNavigationHistory
 
ilObjUser $usr
 
ilErrorHandling $error_object
 
ilAccessHandler $ilAccess
 
ILIAS Refinery Factory $refinery
 
ILIAS HTTP Wrapper RequestWrapper $request_wrapper
 
- 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
 
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

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

the IndividualAssessment is used. It carries a LPStatus, which is set Individually.

@ilCtrl_Calls ilObjIndividualAssessmentGUI: ilPermissionGUI @ilCtrl_Calls ilObjIndividualAssessmentGUI: ilInfoScreenGUI @ilCtrl_Calls ilObjIndividualAssessmentGUI: ilObjectCopyGUI @ilCtrl_Calls ilObjIndividualAssessmentGUI: ilCommonActionDispatcherGUI @ilCtrl_Calls ilObjIndividualAssessmentGUI: ilIndividualAssessmentSettingsGUI @ilCtrl_Calls ilObjIndividualAssessmentGUI: ilIndividualAssessmentMembersGUI @ilCtrl_Calls ilObjIndividualAssessmentGUI: ilLearningProgressGUI @ilCtrl_Calls ilObjIndividualAssessmentGUI: ilExportGUI @ilCtrl_Calls ilObjIndividualAssessmentGUI: ilObjectMetaDataGUI

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

Constructor & Destructor Documentation

◆ __construct()

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

Reimplemented from ilObjectGUI.

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

54 {
55 global $DIC;
56 $this->ilNavigationHistory = $DIC['ilNavigationHistory'];
57 $this->type = 'iass';
58 $this->tpl = $DIC['tpl'];
59 $this->ctrl = $DIC['ilCtrl'];
60 $this->usr = $DIC['ilUser'];
61 $this->error_object = $DIC['ilErr'];
62 $this->lng = $DIC['lng'];
63 $this->lng->loadLanguageModule('iass');
64 $this->tpl->loadStandardTemplate();
65 $this->refinery = $DIC->refinery();
66 $this->request_wrapper = $DIC->http()->wrapper()->query();
67
69 }
Navigation History of Repository Items.
global $DIC
Definition: feed.php:28
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc

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

+ Here is the call graph for this function:

Member Function Documentation

◆ _goto()

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

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

385 : void
386 {
387 global $DIC;
388 if ($DIC['ilAccess']->checkAccess('write', '', $a_target)) {
389 ilObjectGUI::_gotoRepositoryNode($a_target, 'edit');
390 }
391 if ($DIC['ilAccess']->checkAccess('read', '', $a_target)) {
393 }
394 }
static _gotoRepositoryNode(int $ref_id, string $cmd="")

References $DIC, and ilObjectGUI\_gotoRepositoryNode().

+ Here is the call graph for this function:

◆ addContactDataToInfo()

ilObjIndividualAssessmentGUI::addContactDataToInfo ( ilInfoScreenGUI  $info)
protected

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

244 {
245 $info_settings = $this->object->getInfoSettings();
246 if ($this->shouldShowContactInfo($info_settings)) {
247 $info->addSection($this->txt('iass_contact_info'));
248 $info->addProperty($this->txt('iass_contact'), $info_settings->getContact());
249 $info->addProperty($this->txt('iass_responsibility'), $info_settings->getResponsibility());
250 $info->addProperty($this->txt('iass_phone'), $info_settings->getPhone());
251 $info->addProperty($this->txt('iass_mails'), $info_settings->getMails());
252 $info->addProperty($this->txt('iass_consultation_hours'), $info_settings->getConsultationHours());
253 }
254 return $info;
255 }
Class ilInfoScreenGUI.
addSection(string $a_title)
addProperty(string $a_name, string $a_value, string $a_link="")
add a property to current section
shouldShowContactInfo(ilIndividualAssessmentInfoSettings $info_settings)

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

Referenced by buildInfoScreen().

+ 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 233 of file class.ilObjIndividualAssessmentGUI.php.

234 {
235 $content = $this->object->getSettings()->getContent();
236 if ($content !== null && $content !== '') {
237 $info->addSection($this->txt('general'));
238 $info->addProperty($this->txt('content'), $content);
239 }
240 return $info;
241 }

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

Referenced by buildInfoScreen().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ addLocatorItems()

ilObjIndividualAssessmentGUI::addLocatorItems ( )
protected

should be overwritten to add object specific items (repository items are preloaded)

Reimplemented from ilObjectGUI.

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

71 : void
72 {
73 if (is_object($this->object)) {
74 $this->locator->addItem(
75 $this->object->getTitle(),
76 $this->ctrl->getLinkTarget($this, "view"),
77 "",
78 $this->object->getRefId()
79 );
80 }
81 }

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

+ Here is the call graph for this function:

◆ addMemberDataToInfo()

ilObjIndividualAssessmentGUI::addMemberDataToInfo ( ilInfoScreenGUI  $info)
protected

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

204 {
205 $member = $this->object->membersStorage()->loadMember($this->object, $this->usr);
206 $info->addSection($this->txt('grading_info'));
207 if ($member->finalized()) {
208 $info->addProperty($this->txt('grading'), $this->getEntryForStatus($member->LPStatus()));
209 }
210 if ($member->notify() && $member->finalized()) {
211 $info->addProperty($this->txt('grading_record'), nl2br($member->record()));
212 if (($member->viewFile()) && $member->fileName() && $member->fileName() != "") {
213 $tpl = new ilTemplate("tpl.iass_user_file_download.html", true, true, "Modules/IndividualAssessment");
214 $tpl->setVariable("FILE_NAME", $member->fileName());
215 $tpl->setVariable("HREF", $this->ctrl->getLinkTarget($this, "downloadFile"));
216 $info->addProperty($this->txt('iass_upload_file'), $tpl->get());
217 }
218 }
219
220 return $info;
221 }
ilGlobalTemplateInterface $tpl
special template class to simplify handling of ITX/PEAR
setVariable(string $variable, $value='')
Sets the given variable to the given value.
get(string $part=self::DEFAULT_BLOCK)
Renders the given block and returns the html string.

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

Referenced by buildInfoScreen().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ addToNavigationHistory()

ilObjIndividualAssessmentGUI::addToNavigationHistory ( )

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

423 : void
424 {
425 if (!$this->getCreationMode()) {
426 if ($this->object->accessHandler()->mayReadObject()) {
427 $ref_id = $this->request_wrapper->retrieve("ref_id", $this->refinery->kindlyTo()->int());
428 $link = ilLink::_getLink($ref_id, "iass");
429 $this->ilNavigationHistory->addItem($ref_id, $link, 'iass');
430 }
431 }
432 }
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.

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

Referenced by executeCommand().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ afterSave()

ilObjIndividualAssessmentGUI::afterSave ( ilObject  $new_object)
protected

Post (successful) object creation hook.

Reimplemented from ilObjectGUI.

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

410 : void
411 {
412 $this->tpl->setOnScreenMessage("success", $this->txt("iass_added"), true);
413 $this->ctrl->setParameter($this, "ref_id", $new_object->getRefId());
414 $this->ctrl->redirectToUrl($this->ctrl->getLinkTargetByClass(
415 'ilIndividualassessmentsettingsgui',
416 'edit',
417 '',
418 false,
419 false
420 ));
421 }

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

+ Here is the call graph for this function:

◆ buildInfoScreen()

ilObjIndividualAssessmentGUI::buildInfoScreen ( )
protected

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

185 {
186 $info = new ilInfoScreenGUI($this);
187 if ($this->object) {
188 $record_gui = new ilAdvancedMDRecordGUI(ilAdvancedMDRecordGUI::MODE_INFO, 'iass', $this->object->getId());
189 $record_gui->setInfoObject($info);
190 $record_gui->parse();
191
192 $info->addMetaDataSections($this->object->getId(), 0, $this->object->getType());
193
194 $info = $this->addGeneralDataToInfo($info);
195 if ($this->object->loadMembers()->userAllreadyMember($this->usr)) {
196 $info = $this->addMemberDataToInfo($info);
197 }
198 $info = $this->addContactDataToInfo($info);
199 }
200 return $info;
201 }

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

Referenced by executeCommand(), and viewObject().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ downloadFileObject()

ilObjIndividualAssessmentGUI::downloadFileObject ( )
protected

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

223 : void
224 {
225 $member = $this->object->membersStorage()->loadMember($this->object, $this->usr);
226 $file_storage = $this->object->getFileStorage();
227 $file_storage->setUserId($this->usr->getId());
228 $filepath = $file_storage->getAbsolutePath();
229 $filename = $member->fileName();
231 }
$filename
Definition: buildRTE.php:78
static deliverFileLegacy(string $a_file, ?string $a_filename=null, ?string $a_mime=null, ?bool $isInline=false, ?bool $removeAfterDelivery=false, ?bool $a_exit_after=true)

References $filename, and ilFileDelivery\deliverFileLegacy().

+ Here is the call graph for this function:

◆ editObject()

ilObjIndividualAssessmentGUI::editObject ( )

Reimplemented from ilObjectGUI.

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

369 : void
370 {
371 $link = $this->getLinkTarget('settings');
372 $this->ctrl->redirectToURL($link);
373 }

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

+ Here is the call graph for this function:

◆ executeCommand()

ilObjIndividualAssessmentGUI::executeCommand ( )

Reimplemented from ilObjectGUI.

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

93 : void
94 {
95 $next_class = $this->ctrl->getNextClass($this);
96 $cmd = $this->ctrl->getCmd();
97 $this->prepareOutput();
99
100 switch ($next_class) {
101 case 'ilpermissiongui':
102 $this->tabs_gui->activateTab(self::TAB_PERMISSION);
103 $ilPermissionGUI = new ilPermissionGUI($this);
104 $this->ctrl->forwardCommand($ilPermissionGUI);
105 break;
106 case 'ilindividualassessmentsettingsgui':
107 $this->tabs_gui->activateTab(self::TAB_SETTINGS);
108 $gui = $this->object->getSettingsGUI();
109 $this->ctrl->forwardCommand($gui);
110 break;
111 case 'ilindividualassessmentmembersgui':
112 $this->membersObject();
113 break;
114 case 'ilinfoscreengui':
115 $this->tabs_gui->activateTab(self::TAB_INFO);
116 $info = $this->buildInfoScreen();
117 $this->ctrl->forwardCommand($info);
118 break;
119 case 'illearningprogressgui':
120 if (!$this->object->accessHandler()->mayReadObject()) {
121 $this->handleAccessViolation();
122 }
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()->mayEditMembers()) {
156 $this->ctrl->setCmdClass('ilIndividualassessmentmembersgui');
157 $cmd = 'members';
158 }
159 }
160 $cmd .= 'Object';
161 $this->$cmd();
162 }
163
164 $this->addHeaderAction();
165 }
$learning_progress
Definition: plugin.php:29
static getInstanceFromAjaxCall()
(Re-)Build instance from ajax call
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
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.
checkPermissionBool(string $perm, string $cmd="", string $type="", ?int $ref_id=null)
addHeaderAction()
Add header action menu.
prepareOutput(bool $show_sub_objects=true)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
New PermissionGUI (extends from old ilPermission2GUI) RBAC related output.

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

+ Here is the call graph for this function:

◆ getBaseEditForm()

ilObjIndividualAssessmentGUI::getBaseEditForm ( )

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

376 {
377 return $this->initEditForm();
378 }
This class represents a property form user interface.

References ilObjectGUI\initEditForm().

+ Here is the call graph for this function:

◆ getEntryForStatus()

ilObjIndividualAssessmentGUI::getEntryForStatus ( int  $status)
protected

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

396 : string
397 {
398 switch ($status) {
400 return $this->txt('iass_status_pending');
402 return $this->txt('iass_status_completed');
404 return $this->txt('iass_status_failed');
405 default:
406 throw new ilIndividualAssessmentException("Status for id $status not found!");
407 }
408 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

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

Referenced by addMemberDataToInfo().

+ 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 355 of file class.ilObjIndividualAssessmentGUI.php.

355 : string
356 {
357 if ($cmd == 'settings') {
358 return $this->ctrl->getLinkTargetByClass('ilindividualassessmentsettingsgui', 'edit');
359 }
360 if ($cmd == 'info') {
361 return $this->ctrl->getLinkTarget($this, 'view');
362 }
363 if ($cmd == 'members') {
364 return $this->ctrl->getLinkTargetByClass('ilindividualassessmentmembersgui', 'view');
365 }
366 return $this->ctrl->getLinkTarget($this, $cmd);
367 }

References ILIAS\Repository\ctrl().

Referenced by editObject(), and getTabs().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getTabs()

ilObjIndividualAssessmentGUI::getTabs ( )
protected

@abstract overwrite in derived GUI class of your object type

Reimplemented from ilObjectGUI.

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

282 : void
283 {
284 if ($this->object->accessHandler()->mayEditMembers()
285 || $this->object->accessHandler()->mayGradeAnyUser()
286 || $this->object->accessHandler()->mayAmendAllUsers()
287 || $this->object->accessHandler()->mayViewAnyUser()) {
288 $this->tabs_gui->addTab(
289 self::TAB_MEMBERS,
290 $this->txt('il_iass_members'),
291 $this->getLinkTarget('members')
292 );
293 }
294
295 if ($this->object->accessHandler()->mayReadObject()) {
296 $this->tabs_gui->addTab(
297 self::TAB_INFO,
298 $this->txt('info_short'),
299 $this->getLinkTarget('info')
300 );
301 }
302
303 if ($this->object->accessHandler()->mayEditObject()) {
304 $this->tabs_gui->addTab(
305 self::TAB_SETTINGS,
306 $this->txt('settings'),
307 $this->getLinkTarget('settings')
308 );
309 }
310
311 if (($this->object->accessHandler()->mayViewAllUsers()
312 || $this->object->accessHandler()->mayGradeAllUsers()
313 || ($this->object->loadMembers()->userAllreadyMember($this->usr)
314 && $this->object->isActiveLP()))
316 $this->tabs_gui->addTab(
317 self::TAB_LP,
318 $this->txt('learning_progress'),
319 $this->ctrl->getLinkTargetByClass('illearningprogressgui')
320 );
321 }
322
323 if ($this->object->accessHandler()->mayEditObject()) {
324 $mdgui = new ilObjectMetaDataGUI($this->object);
325 $mdtab = $mdgui->getTab();
326 if ($mdtab) {
327 $this->tabs_gui->addTab(
328 self::TAB_META_DATA,
329 $this->txt("meta_data"),
330 $mdtab
331 );
332 }
333 }
334
335 if ($this->object->accessHandler()->mayEditObject()) {
336 $this->tabs_gui->addTarget(
337 self::TAB_EXPORT,
338 $this->ctrl->getLinkTargetByClass('ilexportgui', ''),
339 'export',
340 'ilexportgui'
341 );
342 }
343
344 if ($this->object->accessHandler()->mayEditPermissions()) {
345 $this->tabs_gui->addTarget(
346 self::TAB_PERMISSION,
347 $this->ctrl->getLinkTargetByClass('ilpermissiongui', 'perm'),
348 array(),
349 'ilpermissiongui'
350 );
351 }
352 parent::getTabs();
353 }

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

+ Here is the call graph for this function:

◆ handleAccessViolation()

ilObjIndividualAssessmentGUI::handleAccessViolation ( )

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

380 : void
381 {
382 $this->error_object->raiseError($this->txt("msg_no_perm_read"), $this->error_object->WARNING);
383 }

References txt().

Referenced by executeCommand().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ membersObject()

ilObjIndividualAssessmentGUI::membersObject ( )

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

177 : void
178 {
179 $this->tabs_gui->activateTab(self::TAB_MEMBERS);
180 $gui = $this->object->getMembersGUI();
181 $this->ctrl->forwardCommand($gui);
182 }

References ILIAS\Repository\ctrl().

Referenced by executeCommand().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ recordIndividualAssessmentRead()

ilObjIndividualAssessmentGUI::recordIndividualAssessmentRead ( )
protected

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

83 : void
84 {
86 $this->object->getType(),
87 $this->object->getRefId(),
88 $this->object->getId(),
89 $this->usr->getId()
90 );
91 }
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)

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

Referenced by viewObject().

+ 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 257 of file class.ilObjIndividualAssessmentGUI.php.

257 : bool
258 {
259 $val = $info_settings->getContact();
260 if ($val !== null && $val !== '') {
261 return true;
262 }
263 $val = $info_settings->getResponsibility();
264 if ($val !== null && $val !== '') {
265 return true;
266 }
267 $val = $info_settings->getPhone();
268 if ($val !== null && $val !== '') {
269 return true;
270 }
271 $val = $info_settings->getMails();
272 if ($val !== null && $val !== '') {
273 return true;
274 }
275 $val = $info_settings->getConsultationHours();
276 if ($val !== null && $val !== '') {
277 return true;
278 }
279 return false;
280 }

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

Referenced by addContactDataToInfo().

+ 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 434 of file class.ilObjIndividualAssessmentGUI.php.

434 : string
435 {
436 return $this->lng->txt($code);
437 }

References ILIAS\Repository\lng().

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

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ viewObject()

ilObjIndividualAssessmentGUI::viewObject ( )

viewObject container presentation for "administration -> repository, trash, permissions"

Reimplemented from ilObjectGUI.

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

167 : void
168 {
169 $this->tabs_gui->activateTab(self::TAB_INFO);
170 $this->ctrl->setCmd('showSummary');
171 $this->ctrl->setCmdClass('ilinfoscreengui');
172 $info = $this->buildInfoScreen();
173 $this->ctrl->forwardCommand($info);
175 }

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

+ 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.

◆ $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: