프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$_compiledPattern | string | ||
$_httpMethod | string | ||
$_paths | array | ||
$_pattern | string |
메소드 | 설명 | |
---|---|---|
__construct ( string $pattern, string | array $paths = null, string $httpMethod = null ) | \ManaPHP\Mvc\Router\Route constructor | |
getPaths ( ) : array | Returns the paths | |
getRoutePaths ( string | array $paths = null ) : array | Returns routePaths | |
match ( string $uri ) : boolean | array |
메소드 | 설명 | |
---|---|---|
_compilePattern ( string $pattern ) : string | Replaces placeholders from pattern returning a valid PCRE regular expression | |
_extractNamedParams ( string $pattern ) : string | Extracts parameters from a string |
protected _compilePattern ( string $pattern ) : string | ||
$pattern | string | |
리턴 | string |
protected _extractNamedParams ( string $pattern ) : string | ||
$pattern | string | |
리턴 | string |