Свойство | Type | Description | |
---|---|---|---|
$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. |
Méthode | Description | |
---|---|---|
__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. |
Méthode | Description | |
---|---|---|
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. |
public addConditions ( array $conditions ) | ||
$conditions | array |
public conditionalParameters ( ) : array | ||
Résultat | array |
public createRewriteRule ( ) |
protected getConditions ( ) : array | ||
Résultat | array |
public getRewriteRuleRegex ( ) : mixed | string | ||
Résultat | mixed | string |
public getWpValidators ( ) : array | ||
Résultat | array |
public parameters ( ) : array | ||
Résultat | array |
protected parseCondition ( string $uri ) : string | ||
$uri | string | |
Résultat | string |
protected parseConditionalParameters ( array $action ) : array | ||
$action | array | The action parameter where the conditional parameters are in |
Résultat | array | An array with the conditional parameters or null |
protected string $condition | ||
Résultat | string |
protected array $conditions | ||
Résultat | array |
protected string $rewrite_tag_prefix | ||
Résultat | string |