PHP 클래스 ManaPHP\Mvc\Router\Route

상속: implements ManaPHP\Mvc\Router\RouteInterface
파일 보기 프로젝트 열기: manaphp/manaphp

보호된 프로퍼티들

프로퍼티 타입 설명
$_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

메소드 상세

__construct() 공개 메소드

\ManaPHP\Mvc\Router\Route constructor
public __construct ( string $pattern, string | array $paths = null, string $httpMethod = null )
$pattern string
$paths string | array
$httpMethod string

_compilePattern() 보호된 메소드

Replaces placeholders from pattern returning a valid PCRE regular expression
protected _compilePattern ( string $pattern ) : string
$pattern string
리턴 string

_extractNamedParams() 보호된 메소드

Extracts parameters from a string
protected _extractNamedParams ( string $pattern ) : string
$pattern string
리턴 string

getPaths() 공개 메소드

Returns the paths
public getPaths ( ) : array
리턴 array

getRoutePaths() 공개 정적인 메소드

Returns routePaths
public static getRoutePaths ( string | array $paths = null ) : array
$paths string | array
리턴 array

match() 공개 메소드

public match ( string $uri ) : boolean | array
$uri string
리턴 boolean | array

프로퍼티 상세

$_compiledPattern 보호되어 있는 프로퍼티

protected string $_compiledPattern
리턴 string

$_httpMethod 보호되어 있는 프로퍼티

protected string $_httpMethod
리턴 string

$_paths 보호되어 있는 프로퍼티

protected array $_paths
리턴 array

$_pattern 보호되어 있는 프로퍼티

protected string $_pattern
리턴 string