TYPO3
7.6
|
Public Member Functions | |
__construct ($path, $options) | |
getPath () | |
setPath ($pattern) | |
getOptions () | |
setOptions (array $options) | |
setOption ($name, $value) | |
getOption ($name) | |
hasOption ($name) | |
Protected Attributes | |
$path = '/' | |
$options = array() | |
This is a single entity for a Route.
The architecture is highly inspired by the Symfony Routing Component.
__construct | ( | $path, | |
$options | |||
) |
Constructor setting up the required path and options
string | $path | The path pattern to match |
array | $options | An array of options |
Definition at line 40 of file Route.php.
References Route\$options, Route\$path, and Route\setPath().
getOption | ( | $name | ) |
getOptions | ( | ) |
Returns the options set
Definition at line 76 of file Route.php.
References Route\$options.
getPath | ( | ) |
Returns the path
Definition at line 50 of file Route.php.
References Route\$path.
hasOption | ( | $name | ) |
setOption | ( | $name, | |
$value | |||
) |
setOptions | ( | array | $options | ) |
Sets the options
This method implements a fluent interface.
array | $options | The options |
Definition at line 89 of file Route.php.
References Route\$options.
setPath | ( | $pattern | ) |
Sets the pattern for the path A pattern must start with a slash and must not have multiple slashes at the beginning because the generated path for this route would be confused with a network path, e.g. '//domain.com/path'.
This method implements a fluent interface.
string | $pattern | The path pattern |
Definition at line 65 of file Route.php.
References path.
Referenced by Route\__construct().
|
protected |
Definition at line 32 of file Route.php.
Referenced by Route\__construct(), Route\getOptions(), and Route\setOptions().
|
protected |
Definition at line 27 of file Route.php.
Referenced by Route\__construct(), and Route\getPath().