ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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 51 of file class.ilUserProfileIncompleteRequestTargetAdjustmentCase.php.

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

52  {
53  $_GET['baseClass'] = 'ilpersonaldesktopgui';
54  // sm: directly redirect to personal desktop -> personal profile
55  $this->ctrl->setTargetScript('ilias.php');
56  ilUtil::redirect($this->ctrl->getLinkTargetByClass(array('ilpersonaldesktopgui', 'ilpersonalprofilegui'), 'showPersonalData', '', false, false));
57  }
$_GET["client_id"]
Create styles array
The data for the language used.
static redirect($a_script)
http redirect to other 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  {
26  return false;
27  }
28 
29  return (
30  strtolower($this->ctrl->getCmdClass()) == 'ilpersonalprofilegui' &&
31  in_array(strtolower($this->ctrl->getCmd()), array('savepersonaldata', 'showpersonaldata', 'showprofile'))
32  );
33  }
$_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 38 of file class.ilUserProfileIncompleteRequestTargetAdjustmentCase.php.

References isInFulfillment(), and user().

39  {
40  if(!$this->isInFulfillment() && $this->user->getProfileIncomplete())
41  {
42  return true;
43  }
44 
45  return false;
46  }
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: