method public static

ByPrice::getSeverity()

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

Сигнатура

public static getSeverity(int $mode) : int

Параметры

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

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

int

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

ByPrice::getSeverity() — метод класса \Bitrix\Sale\Delivery\Restrictions\ByPrice модуля «Интернет-магазин». ByPrice: Класс ByWeight Ограничивает доставку по весу.

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

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

Loader::includeModule('sale');

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

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

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

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

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