PHP 클래스 Themosis\Route\Route

상속: extends Illuminate\Routing\Route
파일 보기 프로젝트 열기: themosis/framework 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$condition string The WordPress template condition.
$conditionalParameters array | void The additional parameters for the WordPress template conditions
$conditions array WordPress conditional tags.
$rewrite_tag_prefix string The prefix used to name the custom route tag.

공개 메소드들

메소드 설명
__construct ( array | string $methods, string $uri, mixed $action ) Build a Route instance.
addConditions ( array $conditions ) Allow developers to add route WordPress conditions.
condition ( ) : string Get the WordPress condition.
conditionalParameters ( ) : array Return the conditional parameters
createRewriteRule ( ) Create a WordPress rewrite rule for the route if the route is not using a WordPress conditional tag.
getRewriteRuleRegex ( ) : mixed | string Returns the regex to be registered as a rewrite rule to let WordPress know the existence of this route
getWpValidators ( ) : array Get matching validators.
matches ( Illuminate\Http\Request $request, boolean $includingMethod = true ) : boolean Determine if the route matches given request.
parameters ( ) : array Get the key / value list of parameters for the route.

보호된 메소드들

메소드 설명
getConditions ( ) : array Retrieve the list of registered WordPress conditions.
parseCondition ( string $uri ) : string Return the real WordPress conditional tag.
parseConditionalParameters ( array $action ) : array Parses the conditional parameter out of the action parameter. This is the parameter given to WordPress conditional functions later.

메소드 상세

__construct() 공개 메소드

Build a Route instance.
public __construct ( array | string $methods, string $uri, mixed $action )
$methods array | string
$uri string
$action mixed

addConditions() 공개 메소드

Allow developers to add route WordPress conditions.
public addConditions ( array $conditions )
$conditions array

condition() 공개 메소드

Get the WordPress condition.
public condition ( ) : string
리턴 string

conditionalParameters() 공개 메소드

Return the conditional parameters
public conditionalParameters ( ) : array
리턴 array

createRewriteRule() 공개 메소드

By registering a rewrite rule using the route's regex we force WordPress not to change the url to one Wordpress knows.
public createRewriteRule ( )

getConditions() 보호된 메소드

Retrieve the list of registered WordPress conditions.
protected getConditions ( ) : array
리턴 array

getRewriteRuleRegex() 공개 메소드

Returns the regex to be registered as a rewrite rule to let WordPress know the existence of this route
public getRewriteRuleRegex ( ) : mixed | string
리턴 mixed | string

getWpValidators() 공개 메소드

Get matching validators.
public getWpValidators ( ) : array
리턴 array

matches() 공개 메소드

Determine if the route matches given request.
public matches ( Illuminate\Http\Request $request, boolean $includingMethod = true ) : boolean
$request Illuminate\Http\Request
$includingMethod boolean
리턴 boolean

parameters() 공개 메소드

Get the key / value list of parameters for the route.
public parameters ( ) : array
리턴 array

parseCondition() 보호된 메소드

Return the real WordPress conditional tag.
protected parseCondition ( string $uri ) : string
$uri string
리턴 string

parseConditionalParameters() 보호된 메소드

Parses the conditional parameter out of the action parameter. This is the parameter given to WordPress conditional functions later.
protected parseConditionalParameters ( array $action ) : array
$action array The action parameter where the conditional parameters are in
리턴 array An array with the conditional parameters or null

프로퍼티 상세

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

The WordPress template condition.
protected string $condition
리턴 string

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

The additional parameters for the WordPress template conditions
protected array|void $conditionalParameters
리턴 array | void

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

WordPress conditional tags.
protected array $conditions
리턴 array

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

The prefix used to name the custom route tag.
protected string $rewrite_tag_prefix
리턴 string