method public static

Base::getSeverity()

Класс: \Bitrix\Sale\Delivery\Restrictions\Base

Сигнатура

public static getSeverity(int $mode) : int

Параметры

$mode int
RestrictionManager::MODE_CLIENT | RestrictionManager::MODE_MANAGER

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

int

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

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

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

use Bitrix\Main\Loader;
use Bitrix\Sale\Delivery\Restrictions\Base;

Loader::includeModule('sale');

$mode = 1;
$result = Base::getSeverity($mode);
// $result: int

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

getSeverity() есть и у других классов модуля «Интернет-магазин»: ByConcreteProduct, ByDimensions, ByLocation, ByMaxSize, ByPaySystem, ByPersonType, ByPrice, ByProductCategory.

Исходный файл: source/sale/lib/delivery/restrictions/base.php:176

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