UrlCondition
class UrlCondition implements ConditionInterface, UrlableInterface, CanFilterQueryInterface (View source)
Check against the current url
Constants
WILDCARD |
|
Methods
__construct(string $url, array $where = [])
Constructor.
boolean
array
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
at line 66
__construct(string $url, array $where = [])
Constructor.
at line 104
boolean
isSatisfied(RequestInterface $request)
Get whether the condition is satisfied
at line 123
array
getArguments(RequestInterface $request)
Get an array of arguments for use in request
at line 147
string
getUrl()
Get the url for this condition.
at line 157
void
setUrl(string $url)
Set the url for this condition.
at line 168
getUrlWhere()
{@inheritDoc}
at line 175
setUrlWhere($where)
{@inheritDoc}
at line 186
UrlCondition
concatenate(string $url, array $where = [])
Append a url to this one returning a new instance.
at line 247
string
getValidationPattern(string $url, boolean $wrap = true)
Get pattern to test whether normal urls match the parameter-based one.
at line 278
string
toUrl(array $arguments = [])
Convert to URL.