ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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 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 }
33
37 public function shouldAdjustRequest()
38 {
39 if (!$this->isInFulfillment() && $this->user->getProfileIncomplete()) {
40 return true;
41 }
42
43 return false;
44 }
45
49 public function adjust()
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 }
56}
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)