method public static

ByPersonType::delete()

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

Сигнатура

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

Параметры

$restrictionId mixed
$entityId int = 0

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

DeleteResult

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

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

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

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

Loader::includeModule('sale');

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

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

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

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

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