class UrlCondition implements ConditionInterface (View source)

Check against the current url

Constants

WILDCARD

Methods

__construct(string $url)

Constructor

boolean
isSatisfied(Request $request)

Get whether the condition is satisfied

array
getArguments(Request $request)

Get an array of arguments for use in request

string
getUrl()

Get the url for this condition

concatenate(UrlCondition $url)

Concatenate 2 url conditions into a new one

string
getValidationRegex(string $url, boolean $wrap = true)

Get regex to test whether normal urls match the parameter-based one

Details

__construct(string $url)

Constructor

Parameters

string $url

boolean isSatisfied(Request $request)

Get whether the condition is satisfied

Parameters

Request $request

Return Value

boolean

array getArguments(Request $request)

Get an array of arguments for use in request

Parameters

Request $request

Return Value

array

string getUrl()

Get the url for this condition

Return Value

string

UrlCondition concatenate(UrlCondition $url)

Concatenate 2 url conditions into a new one

Parameters

UrlCondition $url

Return Value

UrlCondition

string getValidationRegex(string $url, boolean $wrap = true)

Get regex to test whether normal urls match the parameter-based one

Parameters

string $url
boolean $wrap

Return Value

string