class Javascript implements WebPreconditionInterface (View source)

Methods

string
getName()

Get the precondition name.

string
getUniqueIdentifier()

Get the precondition handle.

bool
isOptional()

Is this an optional precondition?

int|null
getInitialState()

Get the initial state of the precondition.

string
getInitialMessage()

Get the initial message of the precondition.

getHtml()

Get the HTML used to check the precondition.

performCheck()

Get the precondition result.

getAjaxAnswer(string $argument)

Get the answer of ajax calls.

Details

string getName()

Get the precondition name.

Return Value

string

See also

PreconditionInterface::getName

string getUniqueIdentifier()

Get the precondition handle.

Return Value

string

See also

PreconditionInterface::getUniqueIdentifier

bool isOptional()

Is this an optional precondition?

Return Value

bool

See also

PreconditionInterface::isOptional

int|null getInitialState()

Get the initial state of the precondition.

Return Value

int|null

One of the PreconditionResult::STATE_... constants (or NULL if working)

See also

WebPreconditionInterface::getInitialState

string getInitialMessage()

Get the initial message of the precondition.

Return Value

string

See also

WebPreconditionInterface::getInitialMessage

getHtml()

Get the HTML used to check the precondition.

PreconditionResult performCheck()

Get the precondition result.

getAjaxAnswer(string $argument)

Get the answer of ajax calls.

Parameters

string $argument

See also

WebPreconditionInterface::getAjaxAnswer