class UrlCondition implements ConditionInterface, UrlableInterface, CanFilterQueryInterface (View source)

Check against the current url

Constants

WILDCARD

Methods

__construct(string $url, array $where = [])

Constructor.

boolean
isSatisfied(RequestInterface $request)

Get whether the condition is satisfied

array
getArguments(RequestInterface $request)

Get an array of arguments for use in request

string
getUrl()

Get the url for this condition.

void
setUrl(string $url)

Set the url for this condition.

getUrlWhere()

{@inheritDoc}

setUrlWhere($where)

{@inheritDoc}

concatenate(string $url, array $where = [])

Append a url to this one returning a new instance.

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

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

string
toUrl(array $arguments = [])

Convert to URL.

Details

__construct(string $url, array $where = [])

Constructor.

Parameters

string $url
array $where string> $where

boolean isSatisfied(RequestInterface $request)

Get whether the condition is satisfied

Parameters

RequestInterface $request

Return Value

boolean

array getArguments(RequestInterface $request)

Get an array of arguments for use in request

Parameters

RequestInterface $request

Return Value

array

string getUrl()

Get the url for this condition.

Return Value

string

void setUrl(string $url)

Set the url for this condition.

Parameters

string $url

Return Value

void

getUrlWhere()

{@inheritDoc}

setUrlWhere($where)

{@inheritDoc}

Parameters

$where

UrlCondition concatenate(string $url, array $where = [])

Append a url to this one returning a new instance.

Parameters

string $url
array $where string> $where

Return Value

UrlCondition

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

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

Parameters

string $url
boolean $wrap

Return Value

string

string toUrl(array $arguments = [])

Convert to URL.

Parameters

array $arguments

Return Value

string