PHP 인터페이스 yii\web\UrlRuleInterface

부터: 2.0
저자: Qiang Xue ([email protected])
파일 보기 프로젝트 열기: yiisoft/yii2

공개 메소드들

메소드 설명
createUrl ( UrlManager $manager, string $route, array $params ) : string | boolean Creates a URL according to the given route and parameters.
parseRequest ( UrlManager $manager, Request $request ) : array | boolean Parses the given request and returns the corresponding route and parameters.

메소드 상세

createUrl() 공개 메소드

Creates a URL according to the given route and parameters.
public createUrl ( UrlManager $manager, string $route, array $params ) : string | boolean
$manager UrlManager the URL manager
$route string the route. It should not have slashes at the beginning or the end.
$params array the parameters
리턴 string | boolean the created URL, or false if this rule cannot be used for creating this URL.

parseRequest() 공개 메소드

Parses the given request and returns the corresponding route and parameters.
public parseRequest ( UrlManager $manager, Request $request ) : array | boolean
$manager UrlManager the URL manager
$request Request the request component
리턴 array | boolean the parsing result. The route and the parameters are returned as an array. If false, it means this rule cannot be used to parse this path info.