ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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 ()
 
 executeCommand ()
 
 tabsGUI ()
 
 viewObject ()
 
 membersObject ()
 
 getTabs ()
 
 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 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...
 
 redirectAfterCreation ()
 Redirect after creation, see https://docu.ilias.de/goto_docu_wiki_wpage_5035_1357.html. 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)
 
- 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...
 
 showMountWebfolderIcon ()
 
 setTabs ()
 set admin tabs public More...
 
 setAdminTabs ()
 set admin tabs 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
 
 $tmp_import_dir
 
 $tabs_gui = null
 
 $ctrl
 
 $object_service
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

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

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

References $DIC.

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

Member Function Documentation

◆ _goto()

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

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

References $DIC, and ilObjectGUI\_gotoRepositoryNode().

368  {
369  global $DIC;
370  if ($DIC['ilAccess']->checkAccess('write', '', $a_target)) {
371  ilObjectGUI::_gotoRepositoryNode($a_target, 'edit');
372  }
373  if ($DIC['ilAccess']->checkAccess('read', '', $a_target)) {
375  }
376  }
global $DIC
Definition: saml.php:7
static _gotoRepositoryNode($a_ref_id, $a_cmd="frameset")
Goto repository root.
+ Here is the call graph for this function:

◆ addContactDataToInfo()

ilObjIndividualAssessmentGUI::addContactDataToInfo ( ilInfoScreenGUI  $info)
protected

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

References $info, ilInfoScreenGUI\addProperty(), ilInfoScreenGUI\addSection(), and shouldShowContactInfo().

Referenced by buildInfoScreen().

236  {
237  $info_settings = $this->object->getInfoSettings();
238  if ($this->shouldShowContactInfo($info_settings)) {
239  $info->addSection($this->lng->txt('iass_contact_info'));
240  $info->addProperty($this->lng->txt('iass_contact'), $info_settings->contact());
241  $info->addProperty($this->lng->txt('iass_responsibility'), $info_settings->responsibility());
242  $info->addProperty($this->lng->txt('iass_phone'), $info_settings->phone());
243  $info->addProperty($this->lng->txt('iass_mails'), $info_settings->mails());
244  $info->addProperty($this->lng->txt('iass_consultation_hours'), $info_settings->consultationHours());
245  }
246  return $info;
247  }
shouldShowContactInfo(ilIndividualAssessmentInfoSettings $info_settings)
addSection($a_title)
add a new section
addProperty($a_name, $a_value, $a_link="")
add a property to current section
$info
Definition: index.php:5
+ 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 225 of file class.ilObjIndividualAssessmentGUI.php.

References $info, ilInfoScreenGUI\addProperty(), and ilInfoScreenGUI\addSection().

Referenced by buildInfoScreen().

226  {
227  $content = $this->object->getSettings()->content();
228  if ($content !== null && $content !== '') {
229  $info->addSection($this->lng->txt('general'));
230  $info->addProperty($this->lng->txt('content'), $content);
231  }
232  return $info;
233  }
addSection($a_title)
add a new section
addProperty($a_name, $a_value, $a_link="")
add a property to current section
$info
Definition: index.php:5
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ addLocatorItems()

ilObjIndividualAssessmentGUI::addLocatorItems ( )

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

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

◆ addMemberDataToInfo()

ilObjIndividualAssessmentGUI::addMemberDataToInfo ( ilInfoScreenGUI  $info)
protected

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

References $info, ilObjectGUI\$tpl, ilInfoScreenGUI\addProperty(), ilInfoScreenGUI\addSection(), and getEntryForStatus().

Referenced by buildInfoScreen().

198  {
199  $member = $this->object->membersStorage()->loadMember($this->object, $this->usr);
200  $info->addSection($this->lng->txt('grading_info'));
201  if ($member->finalized()) {
202  $info->addProperty($this->lng->txt('grading'), $this->getEntryForStatus($member->LPStatus()));
203  }
204  if ($member->notify() && $member->finalized()) {
205  $info->addProperty($this->lng->txt('grading_record'), nl2br($member->record()));
206  if (($member->viewFile() || $view_self) && $member->fileName() && $member->fileName() != "") {
207  $tpl = new ilTemplate("tpl.iass_user_file_download.html", true, true, "Modules/IndividualAssessment");
208  $tpl->setVariable("FILE_NAME", $member->fileName());
209  $tpl->setVariable("HREF", $this->ctrl->getLinkTarget($this, "downloadFile"));
210  $info->addProperty($this->lng->txt('iass_upload_file'), $tpl->get());
211  }
212  }
213 
214  return $info;
215  }
addSection($a_title)
add a new section
special template class to simplify handling of ITX/PEAR
addProperty($a_name, $a_value, $a_link="")
add a property to current section
$info
Definition: index.php:5
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ addToNavigationHistory()

ilObjIndividualAssessmentGUI::addToNavigationHistory ( )

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

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

Referenced by executeCommand().

401  {
402  if (!$this->getCreationMode()) {
403  if ($this->object->accessHandler()->mayViewObject()) {
404  $link = ilLink::_getLink($_GET["ref_id"], "iass");
405  $this->ilNavigationHistory->addItem($_GET['ref_id'], $link, 'iass');
406  }
407  }
408  }
$_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.
Navigation History of Repository Items.
getCreationMode()
get creation mode
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ afterSave()

ilObjIndividualAssessmentGUI::afterSave ( ilObject  $a_new_object)
protected

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

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

394  {
395  ilUtil::sendSuccess($this->lng->txt("iass_added"), true);
396  $this->ctrl->setParameter($this, "ref_id", $a_new_object->getRefId());
397  ilUtil::redirect($this->ctrl->getLinkTargetByClass('ilIndividualassessmentsettingsgui', 'edit', '', false, false));
398  }
getRefId()
get reference id public
static redirect($a_script)
+ Here is the call graph for this function:

◆ buildInfoScreen()

ilObjIndividualAssessmentGUI::buildInfoScreen ( )
protected

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

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

Referenced by executeCommand(), and viewObject().

178  {
179  $info = new ilInfoScreenGUI($this);
180  if ($this->object) {
181  include_once('Services/AdvancedMetaData/classes/class.ilAdvancedMDRecordGUI.php');
182  $record_gui = new ilAdvancedMDRecordGUI(ilAdvancedMDRecordGUI::MODE_INFO, 'iass', $this->object->getId());
183  $record_gui->setInfoObject($info);
184  $record_gui->parse();
185 
186  $info->addMetaDataSections($this->object->getId(), 0, $this->object->getType());
187 
188  $info = $this->addGeneralDataToInfo($info);
189  if ($this->object->loadMembers()->userAllreadyMember($this->usr)) {
190  $info = $this->addMemberDataToInfo($info);
191  }
192  $info = $this->addContactDataToInfo($info);
193  }
194  return $info;
195  }
Class ilInfoScreenGUI.
setInfoObject($info)
get info sections
$info
Definition: index.php:5
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ downloadFileObject()

ilObjIndividualAssessmentGUI::downloadFileObject ( )
protected

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

References ilUtil\deliverFile().

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

◆ executeCommand()

ilObjIndividualAssessmentGUI::executeCommand ( )

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

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

73  {
74  $next_class = $this->ctrl->getNextClass($this);
75  $cmd = $this->ctrl->getCmd();
76  $this->prepareOutput();
77  $this->addToNavigationHistory();
78 
79  switch ($next_class) {
80  case 'ilpermissiongui':
81  $this->tabs_gui->setTabActive(self::TAB_PERMISSION);
82  require_once 'Services/AccessControl/classes/class.ilPermissionGUI.php';
83  $ilPermissionGUI = new ilPermissionGUI($this);
84  $this->ctrl->forwardCommand($ilPermissionGUI);
85  break;
86  case 'ilindividualassessmentsettingsgui':
87  $this->tabs_gui->setTabActive(self::TAB_SETTINGS);
88  require_once 'Modules/IndividualAssessment/classes/class.ilIndividualAssessmentSettingsGUI.php';
89  $gui = new ilIndividualAssessmentSettingsGUI($this, $this->ref_id);
90  $this->ctrl->forwardCommand($gui);
91  break;
92  case 'ilindividualassessmentmembersgui':
93  $this->membersObject();
94  break;
95  case 'ilinfoscreengui':
96  $this->tabs_gui->setTabActive(self::TAB_INFO);
97  require_once 'Services/InfoScreen/classes/class.ilInfoScreenGUI.php';
98  $info = $this->buildInfoScreen();
99  $this->ctrl->forwardCommand($info);
100  break;
101  case 'illearningprogressgui':
102  if (!$this->object->accessHandler()->mayViewObject()) {
103  $this->handleAccessViolation();
104  }
105  require_once 'Services/Tracking/classes/class.ilLearningProgressGUI.php';
106  $this->tabs_gui->setTabActive(self::TAB_LP);
107  $learning_progress = new ilLearningProgressGUI(
109  $this->object->getRefId(),
110  $this->usr->getId()
111  );
112  $this->ctrl->forwardCommand($learning_progress);
113  break;
114  case "ilcommonactiondispatchergui":
115  include_once("Services/Object/classes/class.ilCommonActionDispatcherGUI.php");
117  $this->ctrl->forwardCommand($gui);
118  break;
119  case "ilexportgui":
120  include_once("./Services/Export/classes/class.ilExportGUI.php");
121  $this->tabs_gui->setTabActive(self::TAB_EXPORT);
122  $exp_gui = new ilExportGUI($this); // $this is the ilObj...GUI class of the resource
123  $exp_gui->addFormat("xml");
124  $ret = $this->ctrl->forwardCommand($exp_gui);
125  break;
126  case 'ilobjectmetadatagui':
127  $this->checkPermissionBool("write");
128  $this->tabs_gui->activateTab(self::TAB_META_DATA);
129  include_once 'Services/Object/classes/class.ilObjectMetaDataGUI.php';
130  $md_gui = new ilObjectMetaDataGUI($this->object);
131  $this->ctrl->forwardCommand($md_gui);
132  break;
133  case 'ilobjectcopygui':
134  include_once './Services/Object/classes/class.ilObjectCopyGUI.php';
135  $cp = new ilObjectCopyGUI($this);
136  $cp->setType('crs');
137  $this->ctrl->forwardCommand($cp);
138  break;
139  default:
140  if (!$cmd) {
141  $cmd = 'view';
142  if ($this->object->accessHandler()->mayEditMembers()) {
143  $this->ctrl->setCmdClass('ilIndividualassessmentmembersgui');
144  $cmd = 'members';
145  }
146  }
147  $cmd .= 'Object';
148  $this->$cmd();
149  }
150  return true;
151  }
Class ilObjectMetaDataGUI.
GUI class for the workflow of copying objects.
Export User Interface Class.
prepareOutput($a_show_subobjects=true)
prepare output
$ret
Definition: parser.php:6
New PermissionGUI (extends from old ilPermission2GUI) RBAC related output.
$info
Definition: index.php:5
checkPermissionBool($a_perm, $a_cmd="", $a_type="", $a_ref_id=null)
Check permission.
Class ilObjUserTrackingGUI.
static getInstanceFromAjaxCall()
(Re-)Build instance from ajax call
+ Here is the call graph for this function:

◆ getBaseEditForm()

ilObjIndividualAssessmentGUI::getBaseEditForm ( )

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

References ilObjectGUI\initEditForm().

357  {
358  return $this->initEditForm();
359  }
initEditForm()
Init object edit form.
+ Here is the call graph for this function:

◆ getEntryForStatus()

ilObjIndividualAssessmentGUI::getEntryForStatus (   $a_status)
protected

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

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

Referenced by addMemberDataToInfo().

379  {
380  switch ($a_status) {
382  return $this->lng->txt('iass_status_pending');
383  break;
385  return $this->lng->txt('iass_status_completed');
386  break;
388  return $this->lng->txt('iass_status_failed');
389  break;
390  }
391  }
+ Here is the caller graph for this function:

◆ getLinkTarget()

ilObjIndividualAssessmentGUI::getLinkTarget (   $a_cmd)
protected

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

Referenced by getTabs().

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  }
+ Here is the caller graph for this function:

◆ getTabs()

ilObjIndividualAssessmentGUI::getTabs ( )

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

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

275  {
276  if ($this->object->accessHandler()->mayViewObject()) {
277  $this->tabs_gui->addTab(
278  self::TAB_INFO,
279  $this->lng->txt('info_short'),
280  $this->getLinkTarget('info')
281  );
282  }
283  if ($this->object->accessHandler()->mayEditObject()) {
284  $this->tabs_gui->addTab(
285  self::TAB_SETTINGS,
286  $this->lng->txt('settings'),
287  $this->getLinkTarget('settings')
288  );
289  include_once "Services/Object/classes/class.ilObjectMetaDataGUI.php";
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->lng->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->lng->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->lng->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  }
Class ilObjectMetaDataGUI.
static _enabledLearningProgress()
check wether learing progress is enabled or not
+ Here is the call graph for this function:

◆ handleAccessViolation()

ilObjIndividualAssessmentGUI::handleAccessViolation ( )

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

References $DIC.

Referenced by executeCommand().

362  {
363  global $DIC;
364  $DIC['ilias']->raiseError($DIC['lng']->txt("msg_no_perm_read"), $DIC['ilias']->error_obj->WARNING);
365  }
global $DIC
Definition: saml.php:7
+ Here is the caller graph for this function:

◆ membersObject()

ilObjIndividualAssessmentGUI::membersObject ( )

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

Referenced by executeCommand().

170  {
171  $this->tabs_gui->setTabActive(self::TAB_MEMBERS);
172  require_once 'Modules/IndividualAssessment/classes/class.ilIndividualAssessmentMembersGUI.php';
173  $gui = new ilIndividualAssessmentMembersGUI($this, $this->ref_id);
174  $this->ctrl->forwardCommand($gui);
175  }
For the purpose of streamlining the grading and learning-process status definition outside of tests...
+ Here is the caller graph for this function:

◆ recordIndividualAssessmentRead()

ilObjIndividualAssessmentGUI::recordIndividualAssessmentRead ( )
protected

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

References ilChangeEvent\_recordReadEvent().

Referenced by viewObject().

61  {
62 
64  $this->object->getType(),
65  $this->object->getRefId(),
66  $this->object->getId(),
67  $this->usr->getId()
68  );
69 
70  }
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.
+ 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 249 of file class.ilObjIndividualAssessmentGUI.php.

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

Referenced by addContactDataToInfo().

250  {
251  $val = $info_settings->contact();
252  if ($val !== null && $val !== '') {
253  return true;
254  }
255  $val = $info_settings->responsibility();
256  if ($val !== null && $val !== '') {
257  return true;
258  }
259  $val = $info_settings->phone();
260  if ($val !== null && $val !== '') {
261  return true;
262  }
263  $val = $info_settings->mails();
264  if ($val !== null && $val !== '') {
265  return true;
266  }
267  $val = $info_settings->consultationHours();
268  if ($val !== null && $val !== '') {
269  return true;
270  }
271  return false;
272  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ tabsGUI()

ilObjIndividualAssessmentGUI::tabsGUI ( )

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

References ilObjectGUI\$tabs_gui.

154  {
155  return $this->tabs_gui;
156  }

◆ viewObject()

ilObjIndividualAssessmentGUI::viewObject ( )

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

References $info, buildInfoScreen(), and recordIndividualAssessmentRead().

159  {
160  $this->tabs_gui->setTabActive(self::TAB_INFO);
161  require_once 'Services/InfoScreen/classes/class.ilInfoScreenGUI.php';
162  $this->ctrl->setCmd('showSummary');
163  $this->ctrl->setCmdClass('ilinfoscreengui');
164  $info = $this->buildInfoScreen();
165  $this->ctrl->forwardCommand($info);
167  }
$info
Definition: index.php:5
+ Here is the call graph for this function:

Field Documentation

◆ TAB_EXPORT

const ilObjIndividualAssessmentGUI::TAB_EXPORT = 'export'

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

◆ TAB_INFO

const ilObjIndividualAssessmentGUI::TAB_INFO = 'info_short'

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

◆ TAB_LP

const ilObjIndividualAssessmentGUI::TAB_LP = 'learning_progress'

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

◆ TAB_MEMBERS

const ilObjIndividualAssessmentGUI::TAB_MEMBERS = 'members'

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

◆ TAB_META_DATA

const ilObjIndividualAssessmentGUI::TAB_META_DATA = "meta_data"

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

◆ TAB_PERMISSION

const ilObjIndividualAssessmentGUI::TAB_PERMISSION = 'perm_settings'

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

◆ TAB_SETTINGS

const ilObjIndividualAssessmentGUI::TAB_SETTINGS = 'settings'

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


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