method
public
SessionLocalStorage::set()
Сигнатура
public set(mixed $key, mixed $value) : self
Параметры
$key
mixed
$value
mixed
Возвращаемое значение
self
Как применяется в SessionLocalStorage
SessionLocalStorage::set() — метод класса \Bitrix\Main\Data\LocalStorage\SessionLocalStorage модуля «Главный модуль».
Метод объекта: сначала нужен экземпляр SessionLocalStorage.
use Bitrix\Main\Data\LocalStorage\SessionLocalStorage;
/** @var SessionLocalStorage $object */
$key = null;
$value = null;
$result = $object->set($key, $value);
// $result: selfДругие методы SessionLocalStorage
clear()count()get()getData()getIterator()getName()getUniqueName()offsetExists()offsetGet()offsetSet()offsetUnset()setData()
set() есть и у других классов модуля «Главный модуль»: CacheEngineApc, CacheEngineMemcache, CacheEngineMemcached, CacheEngineRedis, CacheEngineRedisLight, Dictionary, EntityObject, Environment.
Исходный файл: source/main/lib/data/localstorage/sessionlocalstorage.php:67

