69 : bool
70 {
71 $this->dic->logger()->init()->debug('Started request interception checks ...');
72
73 if (defined('IL_CERT_SSO')) {
74 $this->dic->logger()->init()->debug('ApacheAuthentication request. No interception.');
75 return false;
77 $this->dic->logger()->init()->debug('Context does not support redirects. No interception.');
78 return false;
79 } elseif ($this->dic->ctrl()->isAsynch()) {
80 $this->dic->logger()->init()->debug('Async request. No interception.');
81 return false;
82 } elseif (in_array(basename(
$_SERVER[
'PHP_SELF']), array(
'logout.php'))) {
83 $this->dic->logger()->init()->debug('Logout request. No interception.');
84 return false;
85 } elseif (!$this->dic->user()->getId() || $this->dic->user()->isAnonymous()) {
86 $this->dic->logger()->init()->debug('Anonymous request. No interception.');
87 return false;
89 $this->dic->logger()->init()->debug(__CLASS__ . ' already passed in the current user session.');
90 return false;
91 }
92
93
94 $this->sequence->rewind();
95 while (!$this->sequence->isEmpty()) {
96 $step = $this->sequence->shift();
97
98 if ($step->isInFulfillment()) {
99 $this->dic->logger()->init()->debug('Step is in fulfillment:' . get_class($step));
100 return false;
101 }
102
103 if ($step->shouldInterceptRequest()) {
104 $this->dic->logger()->init()->debug('Step required adjustment:' . get_class($step));
105 if ($step->shouldStoreRequestTarget()) {
107 }
108 $step->execute();
109 return true;
110 }
111 }
112
114 return false;
115 }
static supportsRedirects()
Are redirects supported?
static set($a_var, $a_val)
Set a value.
static get($a_var)
Get a value.