class MaterialField extends Slot

Слот для хранения полей материалов

Methods

__construct($table, $id, $field)

Creates a new slot object.

mixed
load()

Loads a data of this slot. If nothing is found, returns false.

from Slot
void
save(mixed $data)

Saves a data for this slot.

from Slot
void
remove()

Removes a data of specified slot.

from Slot
void
addTag(Tag $tag)

Associates a tag with current slot.

from Slot

Details

at line 19
__construct($table, $id, $field)

Creates a new slot object.

Parameters

$table
$id
$field

in Slot at line 56
mixed load()

Loads a data of this slot. If nothing is found, returns false.

Return Value

mixed Complex data or false if no cache entry is found.

in Slot at line 69
void save(mixed $data)

Saves a data for this slot.

Parameters

mixed $data Data to be saved.

Return Value

void

in Slot at line 85
void remove()

Removes a data of specified slot.

Return Value

void

in Slot at line 97
void addTag(Tag $tag)

Associates a tag with current slot.

Parameters

Tag $tag Tag object to associate.

Return Value

void