ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
class.ilTermsOfServiceRequestTargetAdjustmentCase.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2018 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
9 {
13  public function shouldStoreRequestTarget()
14  {
15  return true;
16  }
17 
21  public function isInFulfillment()
22  {
23  return (
24  strtolower($this->ctrl->getCmdClass()) == 'ilstartupgui' &&
25  strtolower($this->ctrl->getCmd()) == 'getacceptance'
26  );
27  }
28 
32  public function shouldAdjustRequest()
33  {
34  if ($this->isInFulfillment()) {
35  return false;
36  }
37 
38  if (
39  $this->user->hasToAcceptTermsOfService() &&
40  $this->user->checkTimeLimit() &&
41  $this->user->hasToAcceptTermsOfServiceInSession()
42  ) {
43  return true;
44  }
45 
46  return false;
47  }
48 
52  public function adjust()
53  {
54  $this->ctrl->redirectToURL('ilias.php?baseClass=ilStartUpGUI&cmdClass=ilStartupGUI&cmd=getAcceptance');
55  }
56 }
Class ilUserRequestTargetAdjustmentCase.
user()
Definition: user.php:4