ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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...
 
 tabsGUI ()
 
 viewObject ()
 list childs of current object More...
 
 membersObject ()
 
 getTabs ()
 get tabs abstract method. 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 ()
 list childs of current object More...
 
 deleteObject ($a_error=false)
 Display deletion confirmation screen. More...
 
 cloneAllObject ()
 Clone single (not container object) Method is overwritten in ilContainerGUI. 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'
 
- 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

 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...
 
- Protected Member Functions inherited from ilObjectGUI
 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...
 
 showMountWebfolderIcon ()
 
 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...
 

Additional Inherited Members

- Protected Attributes inherited from ilObjectGUI
 $ilErr
 
 $locator
 
 $user
 
 $access
 
 $settings
 
 $rbacreview
 
 $toolbar
 
 $rbacsystem
 
 $tmp_import_dir
 
 $tabs_gui = null
 
 $ctrl
 

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

Definition at line 25 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 34 of file class.ilObjIndividualAssessmentGUI.php.

35 {
36 global $DIC;
37 $this->ilNavigationHistory = $DIC['ilNavigationHistory'];
38 $this->type = 'iass';
39 $this->tpl = $DIC['tpl'];
40 $this->ctrl = $DIC['ilCtrl'];
41 $this->usr = $DIC['ilUser'];
42 $this->ilias = $DIC['ilias'];
43 $this->lng = $DIC['lng'];
44 $this->ilAccess = $DIC['ilAccess'];
45 $this->lng->loadLanguageModule('iass');
46 $this->tpl->getStandardTemplate();
47 $this->locator = $DIC['ilLocator'];
48
49 parent::__construct($a_data, $a_id, $a_call_by_reference, $a_prepare_output);
50 }
Class ilAccessHandler.
Navigation History of Repository Items.
redirection script todo: (a better solution should control the processing via a xml file)
global $DIC
Definition: saml.php:7

References $DIC.

Member Function Documentation

◆ _goto()

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

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

324 {
325 global $DIC;
326 if ($DIC['ilAccess']->checkAccess('read', '', $a_target)) {
327 ilObjectGUI::_gotoRepositoryNode($a_target, 'view');
328 }
329 }
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 201 of file class.ilObjIndividualAssessmentGUI.php.

202 {
203 $info_settings = $this->object->getInfoSettings();
204 if ($this->shouldShowContactInfo($info_settings)) {
205 $info->addSection($this->lng->txt('iass_contact_info'));
206 $info->addProperty($this->lng->txt('iass_contact'), $info_settings->contact());
207 $info->addProperty($this->lng->txt('iass_responsibility'), $info_settings->responsibility());
208 $info->addProperty($this->lng->txt('iass_phone'), $info_settings->phone());
209 $info->addProperty($this->lng->txt('iass_mails'), $info_settings->mails());
210 $info->addProperty($this->lng->txt('iass_consultation_hours'), $info_settings->consultationHours());
211 }
212 return $info;
213 }
shouldShowContactInfo(ilIndividualAssessmentInfoSettings $info_settings)
$info
Definition: index.php:5

References $info, and shouldShowContactInfo().

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

192 {
193 $content = $this->object->getSettings()->content();
194 if ($content !== null && $content !== '') {
195 $info->addSection($this->lng->txt('general'));
196 $info->addProperty($this->lng->txt('content'), $content);
197 }
198 return $info;
199 }

References $info.

Referenced by buildInfoScreen().

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

53 {
54 if (is_object($this->object)) {
55 $this->locator->addItem($this->object->getTitle(), $this->ctrl->getLinkTarget($this, "view"), "", $this->object->getRefId());
56 }
57 }

◆ addMemberDataToInfo()

ilObjIndividualAssessmentGUI::addMemberDataToInfo ( ilInfoScreenGUI  $info)
protected

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

164 {
165 $member = $this->object->membersStorage()->loadMember($this->object, $this->usr);
166 $info->addSection($this->lng->txt('grading_info'));
167 if ($member->finalized()) {
168 $info->addProperty($this->lng->txt('grading'), $this->getEntryForStatus($member->LPStatus()));
169 }
170 if ($member->notify() && $member->finalized()) {
171 $info->addProperty($this->lng->txt('grading_record'), nl2br($member->record()));
172 if (($member->viewFile() || $view_self) && $member->fileName() && $member->fileName() != "") {
173 $tpl = new ilTemplate("tpl.iass_user_file_download.html", true, true, "Modules/IndividualAssessment");
174 $tpl->setVariable("FILE_NAME", $member->fileName());
175 $tpl->setVariable("HREF", $this->ctrl->getLinkTarget($this, "downloadFile"));
176 $info->addProperty($this->lng->txt('iass_upload_file'), $tpl->get());
177 }
178 }
179
180 return $info;
181 }
special template class to simplify handling of ITX/PEAR

References $info, and ilObjectGUI\$tpl.

Referenced by buildInfoScreen().

+ Here is the caller graph for this function:

◆ addToNavigationHistory()

ilObjIndividualAssessmentGUI::addToNavigationHistory ( )

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

354 {
355 if (!$this->getCreationMode()) {
356 if ($this->object->accessHandler()->mayViewObject()) {
357 $link = ilLink::_getLink($_GET["ref_id"], "iass");
358 $this->ilNavigationHistory->addItem($_GET['ref_id'], $link, 'iass');
359 }
360 }
361 }
$_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 346 of file class.ilObjIndividualAssessmentGUI.php.

347 {
348 ilUtil::sendSuccess($this->lng->txt("iass_added"), true);
349 $this->ctrl->setParameter($this, "ref_id", $a_new_object->getRefId());
350 ilUtil::redirect($this->ctrl->getLinkTargetByClass('ilIndividualassessmentsettingsgui', 'edit', '', false, false));
351 }
getRefId()
get reference id @access public
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
static redirect($a_script)

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

+ Here is the call graph for this function:

◆ buildInfoScreen()

ilObjIndividualAssessmentGUI::buildInfoScreen ( )
protected

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

151 {
152 $info = new ilInfoScreenGUI($this);
153 if ($this->object) {
155 if ($this->object->loadMembers()->userAllreadyMember($this->usr)) {
157 }
159 }
160 return $info;
161 }
Class ilInfoScreenGUI.

References $info, addContactDataToInfo(), addGeneralDataToInfo(), and addMemberDataToInfo().

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

184 {
185 $member = $this->object->membersStorage()->loadMember($this->object, $this->usr);
186 $file_storage = $this->object->getFileStorage();
187 $file_storage->setUserId($this->usr->getId());
188 ilUtil::deliverFile($file_storage->getFilePath(), $member->fileName());
189 }
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:

◆ executeCommand()

ilObjIndividualAssessmentGUI::executeCommand ( )

execute command

Reimplemented from ilObjectGUI.

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

60 {
61 $next_class = $this->ctrl->getNextClass($this);
62 $cmd = $this->ctrl->getCmd();
63 $this->prepareOutput();
65
66 switch ($next_class) {
67 case 'ilpermissiongui':
68 $this->tabs_gui->setTabActive(self::TAB_PERMISSION);
69 require_once 'Services/AccessControl/classes/class.ilPermissionGUI.php';
70 $ilPermissionGUI = new ilPermissionGUI($this);
71 $this->ctrl->forwardCommand($ilPermissionGUI);
72 break;
73 case 'ilindividualassessmentsettingsgui':
74 $this->tabs_gui->setTabActive(self::TAB_SETTINGS);
75 require_once 'Modules/IndividualAssessment/classes/class.ilIndividualAssessmentSettingsGUI.php';
76 $gui = new ilIndividualAssessmentSettingsGUI($this, $this->ref_id);
77 $this->ctrl->forwardCommand($gui);
78 break;
79 case 'ilindividualassessmentmembersgui':
80 $this->membersObject();
81 break;
82 case 'ilinfoscreengui':
83 $this->tabs_gui->setTabActive(self::TAB_INFO);
84 require_once 'Services/InfoScreen/classes/class.ilInfoScreenGUI.php';
85 $info = $this->buildInfoScreen();
86 $this->ctrl->forwardCommand($info);
87 break;
88 case 'illearningprogressgui':
89 if (!$this->object->accessHandler()->mayViewObject()) {
90 $this->handleAccessViolation();
91 }
92 require_once 'Services/Tracking/classes/class.ilLearningProgressGUI.php';
93 $this->tabs_gui->setTabActive(self::TAB_LP);
94 $learning_progress = new ilLearningProgressGUI(
96 $this->object->getRefId(),
97 $this->usr->getId()
98 );
99 $this->ctrl->forwardCommand($learning_progress);
100 break;
101 case "ilcommonactiondispatchergui":
102 include_once("Services/Object/classes/class.ilCommonActionDispatcherGUI.php");
104 $this->ctrl->forwardCommand($gui);
105 break;
106 case "ilexportgui":
107 include_once("./Services/Export/classes/class.ilExportGUI.php");
108 $this->tabs_gui->setTabActive(self::TAB_EXPORT);
109 $exp_gui = new ilExportGUI($this); // $this is the ilObj...GUI class of the resource
110 $exp_gui->addFormat("xml");
111 $ret = $this->ctrl->forwardCommand($exp_gui);
112 break;
113 default:
114 if (!$cmd) {
115 $cmd = 'view';
116 if ($this->object->accessHandler()->mayEditMembers()) {
117 $this->ctrl->setCmdClass('ilIndividualassessmentmembersgui');
118 $cmd = 'members';
119 }
120 }
121 $cmd .= 'Object';
122 $this->$cmd();
123 }
124 return true;
125 }
static getInstanceFromAjaxCall()
(Re-)Build instance from ajax call
Export User Interface Class.
Class ilObjUserTrackingGUI.
prepareOutput($a_show_subobjects=true)
prepare output
New PermissionGUI (extends from old ilPermission2GUI) RBAC related output.
$ret
Definition: parser.php:6

References $info, $ret, addToNavigationHistory(), buildInfoScreen(), 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 312 of file class.ilObjIndividualAssessmentGUI.php.

313 {
314 return $this->initEditForm();
315 }
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 331 of file class.ilObjIndividualAssessmentGUI.php.

332 {
333 switch ($a_status) {
335 return $this->lng->txt('iass_status_pending');
336 break;
338 return $this->lng->txt('iass_status_completed');
339 break;
341 return $this->lng->txt('iass_status_failed');
342 break;
343 }
344 }

References ilIndividualAssessmentMembers\LP_COMPLETED, ilIndividualAssessmentMembers\LP_FAILED, and ilIndividualAssessmentMembers\LP_IN_PROGRESS.

◆ getLinkTarget()

ilObjIndividualAssessmentGUI::getLinkTarget (   $a_cmd)
protected

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

299 {
300 if ($a_cmd == 'settings') {
301 return $this->ctrl->getLinkTargetByClass('ilindividualassessmentsettingsgui', 'edit');
302 }
303 if ($a_cmd == 'info') {
304 return $this->ctrl->getLinkTarget($this, 'view');
305 }
306 if ($a_cmd == 'members') {
307 return $this->ctrl->getLinkTargetByClass('ilindividualassessmentmembersgui', 'view');
308 }
309 return $this->ctrl->getLinkTarget($this, $a_cmd);
310 }

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

241 {
242 if ($this->object->accessHandler()->mayViewObject()) {
243 $this->tabs_gui->addTab(
244 self::TAB_INFO,
245 $this->lng->txt('info_short'),
246 $this->getLinkTarget('info')
247 );
248 }
249 if ($this->object->accessHandler()->mayEditObject()) {
250 $this->tabs_gui->addTab(
251 self::TAB_SETTINGS,
252 $this->lng->txt('settings'),
253 $this->getLinkTarget('settings')
254 );
255 }
256 if ($this->object->accessHandler()->mayEditMembers()
257 || $this->object->accessHandler()->mayGradeUser()
258 || $this->object->accessHandler()->mayAmendGradeUser()
259 || $this->object->accessHandler()->mayViewUser()) {
260 $this->tabs_gui->addTab(
261 self::TAB_MEMBERS,
262 $this->lng->txt('il_iass_members'),
263 $this->getLinkTarget('members')
264 );
265 }
266 if (($this->object->accessHandler()->mayViewUser()
267 || $this->object->accessHandler()->mayGradeUser()
268 || ($this->object->loadMembers()->userAllreadyMember($this->usr)
269 && $this->object->isActiveLP()))
271 $this->tabs_gui->addTab(
272 self::TAB_LP,
273 $this->lng->txt('learning_progress'),
274 $this->ctrl->getLinkTargetByClass('illearningprogressgui')
275 );
276 }
277
278 if ($this->object->accessHandler()->mayEditObject()) {
279 $this->tabs_gui->addTarget(
280 self::TAB_EXPORT,
281 $this->ctrl->getLinkTargetByClass('ilexportgui', ''),
282 'export',
283 'ilexportgui'
284 );
285 }
286
287 if ($this->object->accessHandler()->mayEditPermissions()) {
288 $this->tabs_gui->addTarget(
289 self::TAB_PERMISSION,
290 $this->ctrl->getLinkTargetByClass('ilpermissiongui', 'perm'),
291 array(),
292 'ilpermissiongui'
293 );
294 }
295 parent::getTabs();
296 }
static _enabledLearningProgress()
check wether learing progress is enabled or not

References ilObjUserTracking\_enabledLearningProgress().

+ Here is the call graph for this function:

◆ handleAccessViolation()

ilObjIndividualAssessmentGUI::handleAccessViolation ( )

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

318 {
319 global $DIC;
320 $DIC['ilias']->raiseError($DIC['lng']->txt("msg_no_perm_read"), $DIC['ilias']->error_obj->WARNING);
321 }

References $DIC.

Referenced by executeCommand().

+ Here is the caller graph for this function:

◆ membersObject()

ilObjIndividualAssessmentGUI::membersObject ( )

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

143 {
144 $this->tabs_gui->setTabActive(self::TAB_MEMBERS);
145 require_once 'Modules/IndividualAssessment/classes/class.ilIndividualAssessmentMembersGUI.php';
146 $gui = new ilIndividualAssessmentMembersGUI($this, $this->ref_id);
147 $this->ctrl->forwardCommand($gui);
148 }
For the purpose of streamlining the grading and learning-process status definition outside of tests,...

Referenced by executeCommand().

+ Here is the caller graph for this function:

◆ shouldShowContactInfo()

ilObjIndividualAssessmentGUI::shouldShowContactInfo ( ilIndividualAssessmentInfoSettings  $info_settings)
protected

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

216 {
217 $val = $info_settings->contact();
218 if ($val !== null && $val !== '') {
219 return true;
220 }
221 $val = $info_settings->responsibility();
222 if ($val !== null && $val !== '') {
223 return true;
224 }
225 $val = $info_settings->phone();
226 if ($val !== null && $val !== '') {
227 return true;
228 }
229 $val = $info_settings->mails();
230 if ($val !== null && $val !== '') {
231 return true;
232 }
233 $val = $info_settings->consultationHours();
234 if ($val !== null && $val !== '') {
235 return true;
236 }
237 return false;
238 }

References ilIndividualAssessmentInfoSettings\consultationHours(), ilIndividualAssessmentInfoSettings\contact(), ilIndividualAssessmentInfoSettings\mails(), ilIndividualAssessmentInfoSettings\phone(), and ilIndividualAssessmentInfoSettings\responsibility().

Referenced by addContactDataToInfo().

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

◆ tabsGUI()

ilObjIndividualAssessmentGUI::tabsGUI ( )

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

128 {
129 return $this->tabs_gui;
130 }

References ilObjectGUI\$tabs_gui.

◆ viewObject()

ilObjIndividualAssessmentGUI::viewObject ( )

list childs of current object

@access public

Reimplemented from ilObjectGUI.

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

133 {
134 $this->tabs_gui->setTabActive(self::TAB_INFO);
135 require_once 'Services/InfoScreen/classes/class.ilInfoScreenGUI.php';
136 $this->ctrl->setCmd('showSummary');
137 $this->ctrl->setCmdClass('ilinfoscreengui');
138 $info = $this->buildInfoScreen();
139 $this->ctrl->forwardCommand($info);
140 }

References $info, and buildInfoScreen().

+ Here is the call graph for this function:

Field Documentation

◆ TAB_EXPORT

const ilObjIndividualAssessmentGUI::TAB_EXPORT = 'export'

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

◆ TAB_INFO

const ilObjIndividualAssessmentGUI::TAB_INFO = 'info_short'

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

◆ TAB_LP

const ilObjIndividualAssessmentGUI::TAB_LP = 'learning_progress'

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

◆ TAB_MEMBERS

const ilObjIndividualAssessmentGUI::TAB_MEMBERS = 'members'

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

◆ TAB_PERMISSION

const ilObjIndividualAssessmentGUI::TAB_PERMISSION = 'perm_settings'

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

◆ TAB_SETTINGS

const ilObjIndividualAssessmentGUI::TAB_SETTINGS = 'settings'

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


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