ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilUserProfileIncompleteRequestTargetAdjustmentCase Class Reference

Class ilUserProfileIncompleteRequestTargetAdjustmentCase. More...

+ Inheritance diagram for ilUserProfileIncompleteRequestTargetAdjustmentCase:
+ Collaboration diagram for ilUserProfileIncompleteRequestTargetAdjustmentCase:

Public Member Functions

 shouldStoreRequestTarget ()
 
 isInFulfillment ()
 
 shouldAdjustRequest ()
 
 adjust ()
 
- Public Member Functions inherited from ilUserRequestTargetAdjustmentCase
 __construct (ilObjUser $user, ilCtrl $ctrl)
 
 shouldStoreRequestTarget ()
 
 shouldAdjustRequest ()
 
 isInFulfillment ()
 
 adjust ()
 

Additional Inherited Members

- Protected Attributes inherited from ilUserRequestTargetAdjustmentCase
 $ctrl
 
 $user
 

Detailed Description

Member Function Documentation

◆ adjust()

ilUserProfileIncompleteRequestTargetAdjustmentCase::adjust ( )
Returns
void

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

References $_GET, array, and ilUtil\redirect().

50  {
51  $_GET['baseClass'] = 'ilpersonaldesktopgui';
52  // sm: directly redirect to personal desktop -> personal profile
53  $this->ctrl->setTargetScript('ilias.php');
54  ilUtil::redirect($this->ctrl->getLinkTargetByClass(array('ilpersonaldesktopgui', 'ilpersonalprofilegui'), 'showPersonalData', '', false, false));
55  }
$_GET["client_id"]
Create styles array
The data for the language used.
static redirect($a_script)
+ Here is the call graph for this function:

◆ isInFulfillment()

ilUserProfileIncompleteRequestTargetAdjustmentCase::isInFulfillment ( )
Returns
boolean

Definition at line 22 of file class.ilUserProfileIncompleteRequestTargetAdjustmentCase.php.

References $_GET, and array.

Referenced by shouldAdjustRequest().

23  {
24  if (!isset($_GET['baseClass']) || strtolower($_GET['baseClass']) != 'ilpersonaldesktopgui') {
25  return false;
26  }
27 
28  return (
29  strtolower($this->ctrl->getCmdClass()) == 'ilpersonalprofilegui' &&
30  in_array(strtolower($this->ctrl->getCmd()), array('savepersonaldata', 'showpersonaldata', 'showprofile'))
31  );
32  }
$_GET["client_id"]
Create styles array
The data for the language used.
+ Here is the caller graph for this function:

◆ shouldAdjustRequest()

ilUserProfileIncompleteRequestTargetAdjustmentCase::shouldAdjustRequest ( )
Returns
boolean

Definition at line 37 of file class.ilUserProfileIncompleteRequestTargetAdjustmentCase.php.

References isInFulfillment(), and user().

38  {
39  if (!$this->isInFulfillment() && $this->user->getProfileIncomplete()) {
40  return true;
41  }
42 
43  return false;
44  }
user()
Definition: user.php:4
+ Here is the call graph for this function:

◆ shouldStoreRequestTarget()

ilUserProfileIncompleteRequestTargetAdjustmentCase::shouldStoreRequestTarget ( )
Returns
boolean

Definition at line 14 of file class.ilUserProfileIncompleteRequestTargetAdjustmentCase.php.

15  {
16  return true;
17  }

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