method
public
static
RestrictionManager::getById()
Сигнатура
public static getById(mixed $id) : Result
Параметры
$id
mixed
Возвращаемое значение
Result
Как применяется в RestrictionManager
RestrictionManager::getById() — метод класса \Bitrix\Sale\Services\Base\RestrictionManager модуля «Интернет-магазин».
Статический метод — вызывается через имя класса RestrictionManager, без создания объекта.
use Bitrix\Main\Loader;
use Bitrix\Sale\Services\Base\RestrictionManager;
Loader::includeModule('sale');
$id = null;
$result = RestrictionManager::getById($id);
// $result: ResultДругие методы RestrictionManager
applyRestriction()Применяет ограничение к службеcheckService()getClassesList()getEventName()getList()getRestrictionsList()getSitesByServiceId()setupDefaultRestrictions()Применяет к службе её ограничения по умолчанию
getById() есть и у других классов модуля «Интернет-магазин»: BasketArchivePackedTable, BasketArchiveTable, BasketPropertyTable, BasketTable, BusinessValueCode1CTable, BusinessValuePersonDomainTable, BusinessValueTable, BuyerStatisticTable.
Исходный файл: source/sale/lib/services/base/restrictionmanager.php:346

