ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
GroupPosBased.php
Go to the documentation of this file.
1
<?
php
2
3
namespace
FastRoute\Dispatcher
;
4
5
class
GroupPosBased
extends
RegexBasedAbstract
6
{
7
public
function
__construct
(
$data
)
8
{
9
list($this->staticRouteMap, $this->variableRouteData) =
$data
;
10
}
11
12
protected
function
dispatchVariableRoute
($routeData, $uri)
13
{
14
foreach
($routeData as
$data
) {
15
if
(!preg_match($data[
'regex'
], $uri, $matches)) {
16
continue
;
17
}
18
19
// find first non-empty match
20
for
(
$i
= 1;
''
=== $matches[
$i
]; ++
$i
);
21
22
list(
$handler
, $varNames) = $data[
'routeMap'
][
$i
];
23
24
$vars = [];
25
foreach
($varNames as $varName) {
26
$vars[$varName] = $matches[
$i
++];
27
}
28
return
[self::FOUND,
$handler
, $vars];
29
}
30
31
return
[self::NOT_FOUND];
32
}
33
}
FastRoute\Dispatcher\GroupPosBased\dispatchVariableRoute
dispatchVariableRoute($routeData, $uri)
Definition:
GroupPosBased.php:12
FastRoute\Dispatcher
Definition:
CharCountBased.php:3
FastRoute\Dispatcher\GroupPosBased\__construct
__construct($data)
Definition:
GroupPosBased.php:7
FastRoute\Dispatcher\GroupPosBased
Definition:
GroupPosBased.php:5
FastRoute\Dispatcher\RegexBasedAbstract
Definition:
RegexBasedAbstract.php:7
$i
$i
Definition:
disco.tpl.php:19
php
$handler
$handler
Definition:
resumelogout.php:11
$data
$data
Definition:
bench.php:6
libs
composer
vendor
nikic
fast-route
src
Dispatcher
GroupPosBased.php
Generated on Thu Jan 16 2025 19:01:44 for ILIAS by
1.8.13 (using
Doxyfile
)