class Element implements JsonSerializable, Parameter

Methods

__construct(string $sSelector = '', string $sContext = '')

The constructor.

__call($sMethod, $aArguments)

Add a call to a jQuery method on the selected elements

__get($sAttribute)

Get the value of an attribute on the first selected element

__set($sAttribute, $xValue)

Set the value of an attribute on the first selected element

string
getScript()

Generate the jQuery call.

string
__toString()

Magic function to generate the jQuery call.

string
jsonSerialize()

Generate the jQuery call, when converting the response into json.

Details

at line line 50
__construct(string $sSelector = '', string $sContext = '')

The constructor.

Parameters

string $sSelector The jQuery selector
string $sContext A context associated to the selector

at line line 74
Element __call($sMethod, $aArguments)

Add a call to a jQuery method on the selected elements

Parameters

$sMethod
$aArguments

Return Value

Element

at line line 87
Element __get($sAttribute)

Get the value of an attribute on the first selected element

Parameters

$sAttribute

Return Value

Element

at line line 100
Element __set($sAttribute, $xValue)

Set the value of an attribute on the first selected element

Parameters

$sAttribute
$xValue

Return Value

Element

at line line 113
string getScript()

Generate the jQuery call.

Return Value

string

at line line 127
string __toString()

Magic function to generate the jQuery call.

Return Value

string

at line line 139
string jsonSerialize()

Generate the jQuery call, when converting the response into json.

This is a method of the JsonSerializable interface.

Return Value

string