ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
class.ilTermsOfServiceRequestTargetAdjustmentCase.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 return (
25 strtolower($this->ctrl->getCmdClass()) == 'ilstartupgui' &&
26 strtolower($this->ctrl->getCmd()) == 'getacceptance'
27 );
28 }
29
33 public function shouldAdjustRequest()
34 {
35 if ($this->isInFulfillment()) {
36 return false;
37 }
38
39 if (
40 $this->user->hasToAcceptTermsOfService() &&
41 $this->user->checkTimeLimit() &&
42 $this->user->hasToAcceptTermsOfServiceInSession()
43 ) {
44 return true;
45 }
46
47 return false;
48 }
49
53 public function adjust()
54 {
55 ilUtil::redirect('ilias.php?baseClass=ilStartUpGUI&cmdClass=ilStartupGUI&cmd=getAcceptance');
56 }
57}
user()
Definition: user.php:4
An exception for terminatinating execution or to throw for unit testing.
Class ilUserRequestTargetAdjustmentCase.
static redirect($a_script)