ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
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 ($a_data, $a_id=0, $a_call_by_reference=true, $a_prepare_output=true)
 
 addLocatorItems ()
 should be overwritten to add object specific items (repository items are preloaded) More...
 
 executeCommand ()
 execute command More...
 
 viewObject ()
 viewObject container presentation for "administration -> repository, trash, permissions" More...
 
 membersObject ()
 
 getTabs ()
 get tabs abstract method. More...
 
 editObject ()
 edit object More...
 
 getBaseEditForm ()
 
 handleAccessViolation ()
 
 addToNavigationHistory ()
 
- Public Member Functions inherited from ilObjectGUI
 executeCommand ()
 execute command More...
 
 withReferences ()
 determines wether objects are referenced or not (got ref ids or not) More...
 
 setCreationMode ($a_mode=true)
 if true, a creation screen is displayed the current $_GET[ref_id] don't belong to the current class! the mode is determined in ilrepositorygui More...
 
 getCreationMode ()
 get creation mode More...
 
 prepareOutput ($a_show_subobjects=true)
 prepare output More...
 
 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 @access public More...
 
 createObject ()
 create new object form More...
 
 cancelCreation ()
 cancel create action and go back to repository parent More...
 
 saveObject ()
 save object More...
 
 getDidacticTemplateVar ($a_type)
 Get didactic template setting from creation screen. More...
 
 putObjectInTree (ilObject $a_obj, $a_parent_node_id=null)
 Add object to tree at given position. More...
 
 editObject ()
 edit object More...
 
 addExternalEditFormCustom (ilPropertyFormGUI $a_form)
 
 updateObject ()
 updates object entry in object_data More...
 
 getFormAction ($a_cmd, $a_formaction="")
 get form action for command (command is method name without "Object", e.g. More...
 
 isVisible ($a_ref_id, $a_type)
 
 viewObject ()
 viewObject container presentation for "administration -> repository, trash, permissions" More...
 
 deleteObject ($a_error=false)
 Display deletion confirmation screen. More...
 
 cloneAllObject ()
 Clone single (not container object) Method is overwritten in ilContainerGUI. More...
 
 redirectAfterCreation ()
 Redirect after creation, see https://docu.ilias.de/goto_docu_wiki_wpage_5035_1357.html. More...
 
 addToDeskObject ()
 @inheritDoc More...
 
 removeFromDeskObject ()
 @inheritDoc More...
 

Static Public Member Functions

static _goto ($a_target, $a_add='')
 
- Static Public Member Functions inherited from ilObjectGUI
static _gotoRepositoryRoot ($a_raise_error=false)
 Goto repository root. More...
 
static _gotoRepositoryNode ($a_ref_id, $a_cmd="frameset")
 Goto repository root. More...
 

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 COPY_WIZARD_NEEDS_PAGE = 1
 
 $objDefinition
 
 $tpl
 
 $tree
 
 $lng
 
 $data
 
 $object
 
 $ref_id
 
 $obj_id
 
 $maxcount
 
 $formaction
 
 $return_location
 
 $target_frame
 
 $tab_target_script
 
 $actions
 
 $sub_objects
 
 $omit_locator = false
 
const CFORM_NEW = 1
 
const CFORM_IMPORT = 2
 
const CFORM_CLONE = 3
 

Protected Member Functions

 recordIndividualAssessmentRead ()
 
 buildInfoScreen ()
 
 addMemberDataToInfo (ilInfoScreenGUI $info)
 
 downloadFileObject ()
 
 addGeneralDataToInfo (ilInfoScreenGUI $info)
 
 addContactDataToInfo (ilInfoScreenGUI $info)
 
 shouldShowContactInfo (ilIndividualAssessmentInfoSettings $info_settings)
 
 getLinkTarget ($a_cmd)
 
 getEntryForStatus ($a_status)
 
 afterSave (ilObject $a_new_object)
 Post (successful) object creation hook. More...
 
 txt (string $code)
 
- Protected Member Functions inherited from ilObjectGUI
 getObjectService ()
 Get object service. More...
 
 assignObject ()
 
 setTitleAndDescription ()
 called by prepare output More...
 
 initHeaderAction ($a_sub_type=null, $a_sub_id=null)
 Add header action menu. More...
 
 insertHeaderAction ($a_list_gui)
 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 @access public More...
 
 setAdminTabs ()
 set admin tabs @access public More...
 
 setLocator ()
 set Locator More...
 
 addLocatorItems ()
 should be overwritten to add object specific items (repository items are preloaded) More...
 
 omitLocator ($a_omit=true)
 
 addAdminLocatorItems ($a_do_not_add_object=false)
 should be overwritten to add object specific items (repository items are preloaded) More...
 
 initCreationForms ($a_new_type)
 Init creation froms. More...
 
 getCreationFormsHTML (array $a_forms)
 Get HTML for creation forms (accordion) More...
 
 initCreateForm ($a_new_type)
 Init object creation form. More...
 
 initDidacticTemplate (ilPropertyFormGUI $form)
 Show didactic template types. More...
 
 addDidacticTemplateOptions (array &$a_options)
 Add custom templates. More...
 
 afterSave (ilObject $a_new_object)
 Post (successful) object creation hook. More...
 
 initEditForm ()
 Init object edit form. More...
 
 initEditCustomForm (ilPropertyFormGUI $a_form)
 Add custom fields to update form. More...
 
 getEditFormValues ()
 Get values for edit form. More...
 
 getEditFormCustomValues (array &$a_values)
 Add values to custom edit fields. More...
 
 validateCustom (ilPropertyFormGUI $a_form)
 Validate custom values (if not possible with checkInput()) More...
 
 updateCustom (ilPropertyFormGUI $a_form)
 Insert custom update form values into object. More...
 
 afterUpdate ()
 Post (successful) object update hook. More...
 
 initImportForm ($a_new_type)
 Init object import form. More...
 
 importFileObject ($parent_id=null, $a_catch_errors=true)
 Import. More...
 
 afterImport (ilObject $a_new_object)
 Post (successful) object import hook. More...
 
 setFormAction ($a_cmd, $a_formaction)
 set specific form action for command More...
 
 getReturnLocation ($a_cmd, $a_location="")
 get return location for command (command is method name without "Object", e.g. More...
 
 setReturnLocation ($a_cmd, $a_location)
 set specific return location for command More...
 
 getTargetFrame ($a_cmd, $a_target_frame="")
 get target frame for command (command is method name without "Object", e.g. More...
 
 setTargetFrame ($a_cmd, $a_target_frame)
 set specific target frame for command More...
 
 showPossibleSubObjects ()
 show possible subobjects (pulldown menu) More...
 
 getTemplateFile ($a_cmd, $a_type="")
 get a template blockfile format: tpl. More...
 
 getTabs ()
 get tabs abstract method. More...
 
 __showButton ($a_cmd, $a_text, $a_target='')
 
 hitsperpageObject ()
 
__initTableGUI ()
 
 __setTableGUIBasicData (&$tbl, &$result_set, $a_from="")
 standard implementation for tables use 'from' variable use different initial setting of table More...
 
 redirectToRefId ($a_ref_id, $a_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 $_GET["ref_id"] value More...
 
 fillCloneTemplate ($a_tpl_varname, $a_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...
 
 setColumnSettings (ilColumnGUI $column_gui)
 May be overwritten in subclasses. More...
 
 checkPermission ($a_perm, $a_cmd="", $a_type="", $a_ref_id=null)
 Check permission and redirect on error. More...
 
 checkPermissionBool ($a_perm, $a_cmd="", $a_type="", $a_ref_id=null)
 Check permission. More...
 
 enableDragDropFileUpload ()
 Enables the file upload into this object by dropping files. More...
 
 handleAutoRating (ilObject $a_new_obj)
 Activate rating automatically if parent container setting. More...
 

Protected Attributes

 $ilNavigationHistory
 
 $type
 
 $usr
 
 $error_object
 
 $ilAccess
 
- Protected Attributes inherited from ilObjectGUI
 $ilErr
 
 $locator
 
 $user
 
 $access
 
 $rbacsystem
 
 $settings
 
 $rbacreview
 
 $toolbar
 
 $tmp_import_dir
 
 $tabs_gui = null
 
 $ctrl
 
 $object_service
 
 $favourites
 

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 caries a LPStatus, which is set Individually.

Author
Denis Klöpfer denis.nosp@m..klo.nosp@m.epfer.nosp@m.@con.nosp@m.cepts.nosp@m.-and.nosp@m.-trai.nosp@m.ning.nosp@m..de

@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 21 of file class.ilObjIndividualAssessmentGUI.php.

Constructor & Destructor Documentation

◆ __construct()

ilObjIndividualAssessmentGUI::__construct (   $a_data,
  $a_id = 0,
  $a_call_by_reference = true,
  $a_prepare_output = true 
)

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

57 {
58 global $DIC;
59 $this->ilNavigationHistory = $DIC['ilNavigationHistory'];
60 $this->type = 'iass';
61 $this->tpl = $DIC['tpl'];
62 $this->ctrl = $DIC['ilCtrl'];
63 $this->usr = $DIC['ilUser'];
64 $this->error_object = $DIC['ilErr'];
65 $this->lng = $DIC['lng'];
66 $this->lng->loadLanguageModule('iass');
67 $this->tpl->loadStandardTemplate();
68
69 parent::__construct($a_data, $a_id, $a_call_by_reference, $a_prepare_output);
70 }
Navigation History of Repository Items.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
$DIC
Definition: xapitoken.php:46

References $DIC, and ILIAS\GlobalScreen\Provider\__construct().

+ Here is the call graph for this function:

Member Function Documentation

◆ _goto()

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

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

372 {
373 global $DIC;
374 if ($DIC['ilAccess']->checkAccess('write', '', $a_target)) {
375 ilObjectGUI::_gotoRepositoryNode($a_target, 'edit');
376 }
377 if ($DIC['ilAccess']->checkAccess('read', '', $a_target)) {
379 }
380 }
static _gotoRepositoryNode($a_ref_id, $a_cmd="frameset")
Goto repository root.

References $DIC, and ilObjectGUI\_gotoRepositoryNode().

+ Here is the call graph for this function:

◆ addContactDataToInfo()

ilObjIndividualAssessmentGUI::addContactDataToInfo ( ilInfoScreenGUI  $info)
protected

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

237 {
238 $info_settings = $this->object->getInfoSettings();
239 if ($this->shouldShowContactInfo($info_settings)) {
240 $info->addSection($this->txt('iass_contact_info'));
241 $info->addProperty($this->txt('iass_contact'), $info_settings->getContact());
242 $info->addProperty($this->txt('iass_responsibility'), $info_settings->getResponsibility());
243 $info->addProperty($this->txt('iass_phone'), $info_settings->getPhone());
244 $info->addProperty($this->txt('iass_mails'), $info_settings->getMails());
245 $info->addProperty($this->txt('iass_consultation_hours'), $info_settings->getConsultationHours());
246 }
247 return $info;
248 }
addProperty($a_name, $a_value, $a_link="")
add a property to current section
addSection($a_title)
add a new 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 226 of file class.ilObjIndividualAssessmentGUI.php.

227 {
228 $content = $this->object->getSettings()->getContent();
229 if ($content !== null && $content !== '') {
230 $info->addSection($this->txt('general'));
231 $info->addProperty($this->txt('content'), $content);
232 }
233 return $info;
234 }

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 ( )

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

Reimplemented from ilObjectGUI.

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

73 {
74 if (is_object($this->object)) {
75 $this->locator->addItem($this->object->getTitle(), $this->ctrl->getLinkTarget($this, "view"), "", $this->object->getRefId());
76 }
77 }

◆ addMemberDataToInfo()

ilObjIndividualAssessmentGUI::addMemberDataToInfo ( ilInfoScreenGUI  $info)
protected

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

199 {
200 $member = $this->object->membersStorage()->loadMember($this->object, $this->usr);
201 $info->addSection($this->txt('grading_info'));
202 if ($member->finalized()) {
203 $info->addProperty($this->txt('grading'), $this->getEntryForStatus($member->LPStatus()));
204 }
205 if ($member->notify() && $member->finalized()) {
206 $info->addProperty($this->txt('grading_record'), nl2br($member->record()));
207 if (($member->viewFile() || $view_self) && $member->fileName() && $member->fileName() != "") {
208 $tpl = new ilTemplate("tpl.iass_user_file_download.html", true, true, "Modules/IndividualAssessment");
209 $tpl->setVariable("FILE_NAME", $member->fileName());
210 $tpl->setVariable("HREF", $this->ctrl->getLinkTarget($this, "downloadFile"));
211 $info->addProperty($this->txt('iass_upload_file'), $tpl->get());
212 }
213 }
214
215 return $info;
216 }
special template class to simplify handling of ITX/PEAR

References ilObjectGUI\$tpl, ilInfoScreenGUI\addProperty(), ilInfoScreenGUI\addSection(), getEntryForStatus(), 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 404 of file class.ilObjIndividualAssessmentGUI.php.

405 {
406 if (!$this->getCreationMode()) {
407 if ($this->object->accessHandler()->mayViewObject()) {
408 $link = ilLink::_getLink($_GET["ref_id"], "iass");
409 $this->ilNavigationHistory->addItem($_GET['ref_id'], $link, 'iass');
410 }
411 }
412 }
$_GET["client_id"]
addItem( $a_ref_id, $a_link, $a_type, $a_title="", $a_sub_obj_id="", $a_goto_link="")
Add an item to the stack.
getCreationMode()
get creation mode

References $_GET, ilLink\_getLink(), ilNavigationHistory\addItem(), and ilObjectGUI\getCreationMode().

Referenced by executeCommand().

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

◆ afterSave()

ilObjIndividualAssessmentGUI::afterSave ( ilObject  $a_new_object)
protected

Post (successful) object creation hook.

Parameters
ilObject$a_new_object

Reimplemented from ilObjectGUI.

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

398 {
399 ilUtil::sendSuccess($this->txt("iass_added"), true);
400 $this->ctrl->setParameter($this, "ref_id", $a_new_object->getRefId());
401 ilUtil::redirect($this->ctrl->getLinkTargetByClass('ilIndividualassessmentsettingsgui', 'edit', '', false, false));
402 }
getRefId()
get reference id @access public
static redirect($a_script)

References ilObject\getRefId(), ilUtil\redirect(), and txt().

+ Here is the call graph for this function:

◆ buildInfoScreen()

ilObjIndividualAssessmentGUI::buildInfoScreen ( )
protected

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

180 {
181 $info = new ilInfoScreenGUI($this);
182 if ($this->object) {
183 $record_gui = new ilAdvancedMDRecordGUI(ilAdvancedMDRecordGUI::MODE_INFO, 'iass', $this->object->getId());
184 $record_gui->setInfoObject($info);
185 $record_gui->parse();
186
187 $info->addMetaDataSections($this->object->getId(), 0, $this->object->getType());
188
189 $info = $this->addGeneralDataToInfo($info);
190 if ($this->object->loadMembers()->userAllreadyMember($this->usr)) {
191 $info = $this->addMemberDataToInfo($info);
192 }
193 $info = $this->addContactDataToInfo($info);
194 }
195 return $info;
196 }
Class ilInfoScreenGUI.

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

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

219 {
220 $member = $this->object->membersStorage()->loadMember($this->object, $this->usr);
221 $file_storage = $this->object->getFileStorage();
222 $file_storage->setUserId($this->usr->getId());
223 ilUtil::deliverFile($file_storage->getFilePath(), $member->fileName());
224 }
static deliverFile( $a_file, $a_filename, $a_mime='', $isInline=false, $removeAfterDelivery=false, $a_exit_after=true)
deliver file for download via browser.

References ilUtil\deliverFile().

+ Here is the call graph for this function:

◆ editObject()

ilObjIndividualAssessmentGUI::editObject ( )

edit object

@access public

Reimplemented from ilObjectGUI.

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

356 {
357 $link = $this->getLinkTarget('settings');
358 $this->ctrl->redirectToURL($link);
359 }

References getLinkTarget().

+ Here is the call graph for this function:

◆ executeCommand()

ilObjIndividualAssessmentGUI::executeCommand ( )

execute command

Reimplemented from ilObjectGUI.

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

90 {
91 $next_class = $this->ctrl->getNextClass($this);
92 $cmd = $this->ctrl->getCmd();
93 $this->prepareOutput();
95
96 switch ($next_class) {
97 case 'ilpermissiongui':
98 $this->tabs_gui->activateTab(self::TAB_PERMISSION);
99 $ilPermissionGUI = new ilPermissionGUI($this);
100 $this->ctrl->forwardCommand($ilPermissionGUI);
101 break;
102 case 'ilindividualassessmentsettingsgui':
103 $this->tabs_gui->activateTab(self::TAB_SETTINGS);
104 $gui = $this->object->getSettingsGUI();
105 $this->ctrl->forwardCommand($gui);
106 break;
107 case 'ilindividualassessmentmembersgui':
108 $this->membersObject();
109 break;
110 case 'ilinfoscreengui':
111 $this->tabs_gui->activateTab(self::TAB_INFO);
112 $info = $this->buildInfoScreen();
113 $this->ctrl->forwardCommand($info);
114 break;
115 case 'illearningprogressgui':
116 if (!$this->object->accessHandler()->mayViewObject()) {
117 $this->handleAccessViolation();
118 }
119 $this->tabs_gui->activateTab(self::TAB_LP);
120 $learning_progress = new ilLearningProgressGUI(
122 $this->object->getRefId(),
123 $this->usr->getId()
124 );
125 $this->ctrl->forwardCommand($learning_progress);
126 break;
127 case "ilcommonactiondispatchergui":
129 $this->ctrl->forwardCommand($gui);
130 break;
131 case "ilexportgui":
132 $this->tabs_gui->activateTab(self::TAB_EXPORT);
133 $exp_gui = new ilExportGUI($this); // $this is the ilObj...GUI class of the resource
134 $exp_gui->addFormat("xml");
135 $ret = $this->ctrl->forwardCommand($exp_gui);
136 break;
137 case 'ilobjectmetadatagui':
138 $this->checkPermissionBool("write");
139 $this->tabs_gui->activateTab(self::TAB_META_DATA);
140 $md_gui = new ilObjectMetaDataGUI($this->object);
141 $this->ctrl->forwardCommand($md_gui);
142 break;
143 case 'ilobjectcopygui':
144 $cp = new ilObjectCopyGUI($this);
145 $cp->setType('crs');
146 $this->ctrl->forwardCommand($cp);
147 break;
148 default:
149 if (!$cmd) {
150 $cmd = 'view';
151 if ($this->object->accessHandler()->mayEditMembers()) {
152 $this->ctrl->setCmdClass('ilIndividualassessmentmembersgui');
153 $cmd = 'members';
154 }
155 }
156 $cmd .= 'Object';
157 $this->$cmd();
158 }
159 return true;
160 }
static getInstanceFromAjaxCall()
(Re-)Build instance from ajax call
Export User Interface Class.
Class ilObjUserTrackingGUI.
GUI class for the workflow of copying objects.
prepareOutput($a_show_subobjects=true)
prepare output
checkPermissionBool($a_perm, $a_cmd="", $a_type="", $a_ref_id=null)
Check permission.
Class ilObjectMetaDataGUI.
New PermissionGUI (extends from old ilPermission2GUI) RBAC related output.
$ret
Definition: parser.php:6

References $ret, addToNavigationHistory(), buildInfoScreen(), ilObjectGUI\checkPermissionBool(), ilCommonActionDispatcherGUI\getInstanceFromAjaxCall(), handleAccessViolation(), ilLearningProgressBaseGUI\LP_CONTEXT_REPOSITORY, membersObject(), and ilObjectGUI\prepareOutput().

+ Here is the call graph for this function:

◆ getBaseEditForm()

ilObjIndividualAssessmentGUI::getBaseEditForm ( )

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

362 {
363 return $this->initEditForm();
364 }
initEditForm()
Init object edit form.

References ilObjectGUI\initEditForm().

+ Here is the call graph for this function:

◆ getEntryForStatus()

ilObjIndividualAssessmentGUI::getEntryForStatus (   $a_status)
protected

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

383 {
384 switch ($a_status) {
386 return $this->txt('iass_status_pending');
387 break;
389 return $this->txt('iass_status_completed');
390 break;
392 return $this->txt('iass_status_failed');
393 break;
394 }
395 }

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 (   $a_cmd)
protected

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

343 {
344 if ($a_cmd == 'settings') {
345 return $this->ctrl->getLinkTargetByClass('ilindividualassessmentsettingsgui', 'edit');
346 }
347 if ($a_cmd == 'info') {
348 return $this->ctrl->getLinkTarget($this, 'view');
349 }
350 if ($a_cmd == 'members') {
351 return $this->ctrl->getLinkTargetByClass('ilindividualassessmentmembersgui', 'view');
352 }
353 return $this->ctrl->getLinkTarget($this, $a_cmd);
354 }

Referenced by editObject(), and getTabs().

+ Here is the caller graph for this function:

◆ getTabs()

ilObjIndividualAssessmentGUI::getTabs ( )

get tabs abstract method.

@abstract overwrite in derived GUI class of your object type @access public

Parameters
objectinstance of ilTabsGUI

Reimplemented from ilObjectGUI.

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

276 {
277 if ($this->object->accessHandler()->mayViewObject()) {
278 $this->tabs_gui->addTab(
279 self::TAB_INFO,
280 $this->txt('info_short'),
281 $this->getLinkTarget('info')
282 );
283 }
284 if ($this->object->accessHandler()->mayEditObject()) {
285 $this->tabs_gui->addTab(
286 self::TAB_SETTINGS,
287 $this->txt('settings'),
288 $this->getLinkTarget('settings')
289 );
290 $mdgui = new ilObjectMetaDataGUI($this->object);
291 $mdtab = $mdgui->getTab();
292 if ($mdtab) {
293 $this->tabs_gui->addTab(
294 self::TAB_META_DATA,
295 $this->txt("meta_data"),
296 $mdtab
297 );
298 }
299 }
300 if ($this->object->accessHandler()->mayEditMembers()
301 || $this->object->accessHandler()->mayGradeUser()
302 || $this->object->accessHandler()->mayAmendGradeUser()
303 || $this->object->accessHandler()->mayViewUser()) {
304 $this->tabs_gui->addTab(
305 self::TAB_MEMBERS,
306 $this->txt('il_iass_members'),
307 $this->getLinkTarget('members')
308 );
309 }
310 if (($this->object->accessHandler()->mayViewUser()
311 || $this->object->accessHandler()->mayGradeUser()
312 || ($this->object->loadMembers()->userAllreadyMember($this->usr)
313 && $this->object->isActiveLP()))
315 $this->tabs_gui->addTab(
316 self::TAB_LP,
317 $this->txt('learning_progress'),
318 $this->ctrl->getLinkTargetByClass('illearningprogressgui')
319 );
320 }
321
322 if ($this->object->accessHandler()->mayEditObject()) {
323 $this->tabs_gui->addTarget(
324 self::TAB_EXPORT,
325 $this->ctrl->getLinkTargetByClass('ilexportgui', ''),
326 'export',
327 'ilexportgui'
328 );
329 }
330
331 if ($this->object->accessHandler()->mayEditPermissions()) {
332 $this->tabs_gui->addTarget(
333 self::TAB_PERMISSION,
334 $this->ctrl->getLinkTargetByClass('ilpermissiongui', 'perm'),
335 array(),
336 'ilpermissiongui'
337 );
338 }
339 parent::getTabs();
340 }
static _enabledLearningProgress()
check wether learing progress is enabled or not

References ilObjUserTracking\_enabledLearningProgress(), getLinkTarget(), and txt().

+ Here is the call graph for this function:

◆ handleAccessViolation()

ilObjIndividualAssessmentGUI::handleAccessViolation ( )

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

367 {
368 $this->error_object->raiseError($this->txt("msg_no_perm_read"), $this->error_object->WARNING);
369 }

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

173 {
174 $this->tabs_gui->activateTab(self::TAB_MEMBERS);
175 $gui = $this->object->getMembersGUI();
176 $this->ctrl->forwardCommand($gui);
177 }

Referenced by executeCommand().

+ Here is the caller graph for this function:

◆ recordIndividualAssessmentRead()

ilObjIndividualAssessmentGUI::recordIndividualAssessmentRead ( )
protected

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

80 {
82 $this->object->getType(),
83 $this->object->getRefId(),
84 $this->object->getId(),
85 $this->usr->getId()
86 );
87 }
static _recordReadEvent( $a_type, $a_ref_id, $obj_id, $usr_id, $isCatchupWriteEvents=true, $a_ext_rc=false, $a_ext_time=false)
Records a read event and catches up with write events.

References ilChangeEvent\_recordReadEvent().

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

251 {
252 $val = $info_settings->getContact();
253 if ($val !== null && $val !== '') {
254 return true;
255 }
256 $val = $info_settings->getResponsibility();
257 if ($val !== null && $val !== '') {
258 return true;
259 }
260 $val = $info_settings->getPhone();
261 if ($val !== null && $val !== '') {
262 return true;
263 }
264 $val = $info_settings->getMails();
265 if ($val !== null && $val !== '') {
266 return true;
267 }
268 $val = $info_settings->getConsultationHours();
269 if ($val !== null && $val !== '') {
270 return true;
271 }
272 return false;
273 }

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

414 : string
415 {
416 return $this->lng->txt($code);
417 }

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

+ Here is the caller graph for this function:

◆ viewObject()

ilObjIndividualAssessmentGUI::viewObject ( )

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

Exceptions

ilObjectException

Reimplemented from ilObjectGUI.

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

163 {
164 $this->tabs_gui->activateTab(self::TAB_INFO);
165 $this->ctrl->setCmd('showSummary');
166 $this->ctrl->setCmdClass('ilinfoscreengui');
167 $info = $this->buildInfoScreen();
168 $this->ctrl->forwardCommand($info);
170 }

References buildInfoScreen(), and recordIndividualAssessmentRead().

+ Here is the call graph for this function:

Field Documentation

◆ $error_object

ilObjIndividualAssessmentGUI::$error_object
protected

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

◆ $ilAccess

ilObjIndividualAssessmentGUI::$ilAccess
protected

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

◆ $ilNavigationHistory

ilObjIndividualAssessmentGUI::$ilNavigationHistory
protected

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

◆ $type

ilObjIndividualAssessmentGUI::$type
protected

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

◆ $usr

ilObjIndividualAssessmentGUI::$usr
protected

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

◆ TAB_EXPORT

const ilObjIndividualAssessmentGUI::TAB_EXPORT = 'export'

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

◆ TAB_INFO

const ilObjIndividualAssessmentGUI::TAB_INFO = 'info_short'

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

◆ TAB_LP

const ilObjIndividualAssessmentGUI::TAB_LP = 'learning_progress'

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

◆ TAB_MEMBERS

const ilObjIndividualAssessmentGUI::TAB_MEMBERS = 'members'

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

◆ TAB_META_DATA

const ilObjIndividualAssessmentGUI::TAB_META_DATA = "meta_data"

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

◆ TAB_PERMISSION

const ilObjIndividualAssessmentGUI::TAB_PERMISSION = 'perm_settings'

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

◆ TAB_SETTINGS

const ilObjIndividualAssessmentGUI::TAB_SETTINGS = 'settings'

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


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