ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
◀ ilDoc Overview
GroupCountBased.php
Go to the documentation of this file.
1
<?php
2
3
namespace
FastRoute\Dispatcher
;
4
5
class
GroupCountBased
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
list(
$handler
, $varNames) = $data[
'routeMap'
][count($matches)];
20
21
$vars = [];
22
$i
= 0;
23
foreach
($varNames as $varName) {
24
$vars[$varName] = $matches[++
$i
];
25
}
26
return
[self::FOUND,
$handler
, $vars];
27
}
28
29
return
[self::NOT_FOUND];
30
}
31
}
FastRoute\Dispatcher\GroupCountBased\__construct
__construct($data)
Definition:
GroupCountBased.php:7
FastRoute\Dispatcher
Definition:
CharCountBased.php:3
$data
$data
Definition:
test-settings.sample.php:14
FastRoute\Dispatcher\GroupCountBased\dispatchVariableRoute
dispatchVariableRoute($routeData, $uri)
Definition:
GroupCountBased.php:12
FastRoute\Dispatcher\RegexBasedAbstract
Definition:
RegexBasedAbstract.php:7
$i
$i
Definition:
disco.tpl.php:19
FastRoute\Dispatcher\GroupCountBased
Definition:
GroupCountBased.php:5
$handler
$handler
Definition:
resumelogout.php:11
libs
composer
vendor
nikic
fast-route
src
Dispatcher
GroupCountBased.php
Generated on Tue Jan 28 2025 19:01:07 for ILIAS by
1.8.13 (using
Doxyfile
)