class ValueList (View source)

Properties

protected int|null $scvlID

The identifier of this value list instance.

protected Value[] $values

The list of values.

Methods

int|null
getValueListID()

Get the identifier of this value list instance.

Value[]
getValues()

Get the list of values.

static ValueList
loadFromRequest(ParameterBag $request, StyleList $styles)

Extract the value list from a received data.

static ValueList
loadFromLessFile(string $file, string $urlroot = '')

Extract the value list from a LESS file.

static ValueList|null
getByID(int $scvlID)

Get a value list from the database.

save()

Persist this list of values.

$this
addValue(Value $value)

Add a value.

$this
addValues(Value[]|Traversable $values)

Add a list of values.

Details

int|null getValueListID()

Get the identifier of this value list instance.

Return Value

int|null

Value[] getValues()

Get the list of values.

Return Value

Value[]

static ValueList loadFromRequest(ParameterBag $request, StyleList $styles)

Extract the value list from a received data.

Parameters

ParameterBag $request
StyleList $styles

Return Value

ValueList

static ValueList loadFromLessFile(string $file, string $urlroot = '')

Extract the value list from a LESS file.

Parameters

string $file

the full path of the LESS file

string $urlroot

The url of the file

Return Value

ValueList

static ValueList|null getByID(int $scvlID)

Get a value list from the database.

Parameters

int $scvlID

the identifier of the value list

Return Value

ValueList|null

save()

Persist this list of values.

$this addValue(Value $value)

Add a value.

Parameters

Value $value

Return Value

$this

$this addValues(Value[]|Traversable $values)

Add a list of values.

Parameters

Value[]|Traversable $values

Return Value

$this