class Variable extends Slot

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

Methods

__construct(int $server_id, string $name)

Установливает текущий раздел.

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 26
__construct(int $server_id, string $name)

Установливает текущий раздел.

Parameters

int $server_id ID сервера раздел
string $name имя переменной

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