method public static

ByPrice::delete()

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

Сигнатура

public static delete(mixed $restrictionId[, int $entityId = 0 ]) : DeleteResult

Параметры

$restrictionId mixed
$entityId int = 0

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

DeleteResult

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

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

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

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

Loader::includeModule('sale');

$restrictionId = null;
$result = ByPrice::delete($restrictionId);
// $result: DeleteResult

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

delete() есть и у других классов модуля «Интернет-магазин»: ActionEntity, Base, BasketArchiveTable, BasketItem, BasketItemBase, BasketPropertyItem, BasketPropertyItemBase, BusinessValue.

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

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