method
public
static
PoolBase::getPoolByCode()
Сигнатура
public static getPoolByCode(mixed $code) : mixed
Параметры
$code
mixed
Возвращаемое значение
mixed
Как применяется в PoolBase
PoolBase::getPoolByCode() — метод класса \Bitrix\Sale\Internals\PoolBase модуля «Интернет-магазин».
Статический метод — вызывается через имя класса PoolBase, без создания объекта.
use Bitrix\Main\Loader;
use Bitrix\Sale\Internals\PoolBase;
Loader::includeModule('sale');
$code = null;
$result = PoolBase::getPoolByCode($code);
// $result: mixedДругие методы PoolBase
getPoolByCode() есть и у других классов модуля «Интернет-магазин»: ActionEntity, EventsPool, ItemsPool.
Исходный файл: source/sale/lib/internals/poolbase.php:9

