ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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 {
37 return false;
38 }
39
40 if(
41 $this->user->hasToAcceptTermsOfService() &&
42 $this->user->checkTimeLimit() &&
43 $this->user->hasToAcceptTermsOfServiceInSession()
44 )
45 {
46 return true;
47 }
48
49 return false;
50 }
51
55 public function adjust()
56 {
57 ilUtil::redirect('ilias.php?baseClass=ilStartUpGUI&cmdClass=ilStartupGUI&cmd=getAcceptance');
58 }
59}
user()
Definition: user.php:4
An exception for terminatinating execution or to throw for unit testing.
Class ilUserRequestTargetAdjustmentCase.
static redirect($a_script)
http redirect to other script