method public static

ByPaySystem::delete()

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

Сигнатура

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

Параметры

$restrictionId mixed
$deliveryId mixed = 0

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

DeleteResult

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

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

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

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

Loader::includeModule('sale');

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

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

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

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

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