method
public
IdentityMap::get()
Сигнатура
public get(mixed $class, mixed $primary) : EntityObject|null
Параметры
$class
mixed
$primary
mixed
Возвращаемое значение
EntityObject|null
Как применяется в IdentityMap
IdentityMap::get() — метод класса \Bitrix\Main\ORM\Objectify\IdentityMap модуля «Главный модуль». IdentityMap: Реестр объектов, хранит объекты в коллекциях.
Метод объекта: сначала нужен экземпляр IdentityMap.
use Bitrix\Main\ORM\Objectify\IdentityMap;
/** @var IdentityMap $object */
$class = null;
$primary = null;
$result = $object->get($class, $primary);
// $result: EntityObject|nullДругие методы IdentityMap
get() есть и у других классов модуля «Главный модуль»: CacheEngineApc, CacheEngineMemcache, CacheEngineMemcached, CacheEngineRedis, CacheEngineRedisLight, ComponentParams, Configuration, CurrentUser.
Исходный файл: source/main/lib/orm/objectify/identitymap.php:32

