ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
FastRoute\Dispatcher\GroupCountBased Class Reference
+ Inheritance diagram for FastRoute\Dispatcher\GroupCountBased:
+ Collaboration diagram for FastRoute\Dispatcher\GroupCountBased:

Public Member Functions

 __construct ($data)
 
- Public Member Functions inherited from FastRoute\Dispatcher\RegexBasedAbstract
 dispatch ($httpMethod, $uri)
 Dispatches against the provided HTTP method verb and URI. More...
 

Protected Member Functions

 dispatchVariableRoute ($routeData, $uri)
 
- Protected Member Functions inherited from FastRoute\Dispatcher\RegexBasedAbstract
 dispatchVariableRoute ($routeData, $uri)
 

Additional Inherited Members

- Data Fields inherited from FastRoute\Dispatcher
const NOT_FOUND = 0
 
const FOUND = 1
 
const METHOD_NOT_ALLOWED = 2
 
- Protected Attributes inherited from FastRoute\Dispatcher\RegexBasedAbstract
 $staticRouteMap = []
 
 $variableRouteData = []
 

Detailed Description

Definition at line 5 of file GroupCountBased.php.

Constructor & Destructor Documentation

◆ __construct()

FastRoute\Dispatcher\GroupCountBased::__construct (   $data)

Definition at line 7 of file GroupCountBased.php.

References $data.

8  {
9  list($this->staticRouteMap, $this->variableRouteData) = $data;
10  }

Member Function Documentation

◆ dispatchVariableRoute()

FastRoute\Dispatcher\GroupCountBased::dispatchVariableRoute (   $routeData,
  $uri 
)
protected

Definition at line 12 of file GroupCountBased.php.

References $data, $handler, and $i.

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  }
$i
Definition: disco.tpl.php:19
$handler

The documentation for this class was generated from the following file: