Property | Type | Description | |
---|---|---|---|
$callback | Callback function | ||
$methods | HTTP methods | ||
$params | Route parameters | ||
$pass | Pass self in callback parameters | ||
$pattern | URL pattern | ||
$regex | Matching regular expression | ||
$splat | URL splat content |
Method | Description | |
---|---|---|
__construct ( string $pattern, mixed $callback, array $methods, boolean $pass ) | Constructor. | |
matchMethod ( string $method ) : boolean | Checks if an HTTP method matches the route methods. | |
matchUrl ( string $url, boolean $case_sensitive = false ) : boolean | Checks if a URL matches the route pattern. Also parses named parameters in the URL. |
public matchMethod ( string $method ) : boolean | ||
$method | string | HTTP method |
return | boolean | Match status |