ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
class.ilUserProfileIncompleteRequestTargetAdjustmentCase.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2013 ILIAS open source, Extended GPL, see docs/LICENSE */
3
4require_once 'Services/User/classes/class.ilUserRequestTargetAdjustmentCase.php';
5
10{
14 public function shouldStoreRequestTarget()
15 {
16 return true;
17 }
18
22 public function isInFulfillment()
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 }
34
38 public function shouldAdjustRequest()
39 {
40 if(!$this->isInFulfillment() && $this->user->getProfileIncomplete())
41 {
42 return true;
43 }
44
45 return false;
46 }
47
51 public function adjust()
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 }
58}
user()
Definition: user.php:4
$_GET["client_id"]
An exception for terminatinating execution or to throw for unit testing.
Class ilUserRequestTargetAdjustmentCase.
static redirect($a_script)
http redirect to other script