프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$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 |
메소드 | 설명 | |
---|---|---|
__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 |
리턴 | boolean | Match status |