class ImageValue extends Value (View source)

Properties

protected string $variable

The name of the LESS variable.

from  Value
protected string $imageUrl

The URL of the image.

protected int|null $fID

The ID of the associated File instance.

Methods

__construct(string $variable = '')

Initialize the instance.

from  Value
string
getVariable()

Get the name of the LESS variable.

from  Value
string
toStyleString()

Get the CSS representation of this value.

array
toLessVariablesArray()

Get the LESS representation of this variable and associated values.

$this
setUrl(string $url)

Set the URL of the image.

string
getUrl()

Get the URL of the image.

$this
setFileID(int|null $fID)

Set the ID of the associated File instance.

int|null
getFileID()

Get the ID of the associated File instance.

Details

__construct(string $variable = '')

Initialize the instance.

Parameters

string $variable

the name of the LESS variable

string getVariable()

Get the name of the LESS variable.

Return Value

string

string toStyleString()

Get the CSS representation of this value.

Return Value

string

See also

Value::toStyleString

array toLessVariablesArray()

Get the LESS representation of this variable and associated values.

Return Value

array

See also

Value::toLessVariablesArray

$this setUrl(string $url)

Set the URL of the image.

Parameters

string $url

Return Value

$this

string getUrl()

Get the URL of the image.

Return Value

string

$this setFileID(int|null $fID)

Set the ID of the associated File instance.

Parameters

int|null $fID

Return Value

$this

int|null getFileID()

Get the ID of the associated File instance.

Return Value

int|null