ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
◀ ilDoc Overview
Route.php
Go to the documentation of this file.
1
<?php
2
3
namespace
FastRoute
;
4
5
class
Route
6
{
8
public
$httpMethod
;
9
11
public
$regex
;
12
14
public
$variables
;
15
17
public
$handler
;
18
27
public
function
__construct
($httpMethod,
$handler
, $regex, $variables)
28
{
29
$this->httpMethod = $httpMethod;
30
$this->handler =
$handler
;
31
$this->regex = $regex;
32
$this->variables = $variables;
33
}
34
42
public
function
matches
($str)
43
{
44
$regex =
'~^'
. $this->regex .
'$~'
;
45
return
(
bool
) preg_match($regex, $str);
46
}
47
}
FastRoute\Route\$httpMethod
$httpMethod
Definition:
Route.php:8
FastRoute\Route\$handler
$handler
Definition:
Route.php:17
FastRoute\Route
Definition:
Route.php:5
FastRoute\Route\$regex
$regex
Definition:
Route.php:11
FastRoute\Route\$variables
$variables
Definition:
Route.php:14
FastRoute
Definition:
BadRouteException.php:3
FastRoute\Route\matches
matches($str)
Tests whether this route matches the given string.
Definition:
Route.php:42
FastRoute\Route\__construct
__construct($httpMethod, $handler, $regex, $variables)
Constructs a route (value object).
Definition:
Route.php:27
$handler
$handler
Definition:
resumelogout.php:11
libs
composer
vendor
nikic
fast-route
src
Route.php
Generated on Sat Jan 18 2025 19:01:06 for ILIAS by
1.8.13 (using
Doxyfile
)