ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
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)

Additional Inherited Members

- Protected Attributes inherited from ilUserRequestTargetAdjustmentCase
 $ctrl
 $user

Detailed Description

Member Function Documentation

ilUserProfileIncompleteRequestTargetAdjustmentCase::adjust ( )
Returns
void

Reimplemented from ilUserRequestTargetAdjustmentCase.

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

References $_GET, and ilUtil\redirect().

{
if(isset($_GET['baseClass']) && strtolower($_GET['baseClass']) == 'ilpersonaldesktopgui')
{
$this->ctrl->setTargetScript('ilias.php');
ilUtil::redirect($this->ctrl->getLinkTargetByClass(array('ilpersonaldesktopgui', 'ilpersonalprofilegui'), 'showPersonalData', '', false, false));
}
else
{
ilUtil::redirect('ilias.php?baseClass=ilPersonalDesktopGUI');
}
}

+ Here is the call graph for this function:

ilUserProfileIncompleteRequestTargetAdjustmentCase::isInFulfillment ( )
Returns
boolean

Reimplemented from ilUserRequestTargetAdjustmentCase.

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

References $_GET.

Referenced by shouldAdjustRequest().

{
if(!isset($_GET['baseClass']) || strtolower($_GET['baseClass']) != 'ilpersonaldesktopgui')
{
return false;
}
return (
strtolower($this->ctrl->getCmdClass()) == 'ilpersonalprofilegui' &&
in_array(strtolower($this->ctrl->getCmd()), array('savepersonaldata', 'showpersonaldata', 'showprofile'))
);
}

+ Here is the caller graph for this function:

ilUserProfileIncompleteRequestTargetAdjustmentCase::shouldAdjustRequest ( )
Returns
boolean

Reimplemented from ilUserRequestTargetAdjustmentCase.

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

References isInFulfillment().

{
if(!$this->isInFulfillment() && $this->user->getProfileIncomplete())
{
return true;
}
return false;
}

+ Here is the call graph for this function:

ilUserProfileIncompleteRequestTargetAdjustmentCase::shouldStoreRequestTarget ( )
Returns
boolean

Reimplemented from ilUserRequestTargetAdjustmentCase.

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

{
return true;
}

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