Summary
- File
- Package hierarchy MVC\Dispatcher
- Class hierarchy \AbstractUrlMapper \UrlControllerMapper
Call the controller method matching an url
Call the controller method matching an url
__construct( $classname, string $capture_regex = '`^/?$`u', string $parameters_names = array())
build a new UrlDispatcherItem
| $classname | ||
| string | $capture_regex | the regular expression matching the url
and capturing the controller method parameters. By default, match the empty url |
| string | $parameters_names | the names of the parameters in the capture order |
| None found |
match(string $url) : boolean
Returns true if the UrlDispatcherItem match the url
| string | $url | the to match |
true if the UrlDispatcherItem match the url
| None found |
call()
Call the controller method if the url match and if the method exists
| None found |
get_captured_parameters()
| None found |
build_parameters()
| None found |
do_call()
| None found |
$capture_regex : string
| None found |
$captured_parameters : array<mixed,string>
| None found |
$classname :
| None found |
$parameters_names :
| None found |