ILIAS  Release_4_4_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
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 
4 require_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 }