class AjaxCondition implements ConditionInterface, UrlableInterface (View source)

Check against the current ajax action.

Methods

__construct(string $action, boolean $private = true, boolean $public = false)

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
toUrl(array $arguments = [])

Convert to URL.

Details

__construct(string $action, boolean $private = true, boolean $public = false)

Constructor

Parameters

string $action
boolean $private
boolean $public

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 toUrl(array $arguments = [])

Convert to URL.

Parameters

array $arguments

Return Value

string