method public static

ItemsPool::isTypeExists()

Класс: \Bitrix\Sale\Internals\ItemsPool

Сигнатура

public static isTypeExists(mixed $code, mixed $type) : bool

Параметры

$code mixed
$type mixed

Возвращаемое значение

bool

Как применяется в ItemsPool

ItemsPool::isTypeExists() — метод класса \Bitrix\Sale\Internals\ItemsPool модуля «Интернет-магазин».

Статический метод — вызывается через имя класса ItemsPool, без создания объекта.

use Bitrix\Main\Loader;
use Bitrix\Sale\Internals\ItemsPool;

Loader::includeModule('sale');

$code = null;
$type = null;
$result = ItemsPool::isTypeExists($code, $type);
// $result: bool

Другие методы ItemsPool

isTypeExists() есть и у других классов модуля «Интернет-магазин»: ActionEntity, EventsPool, PoolBase.

Исходный файл: source/sale/lib/internals/itemspool.php:76

Что будем искать? Например,Продвижение