method public static

Automatic::onBeforeUpdate()

Класс: \Bitrix\Sale\Delivery\Services\Automatic

Сигнатура

public static onBeforeUpdate(int $serviceId[, array<string|int, mixed> &$fields = array() ]) : bool

Параметры

$serviceId int
$fields array<string|int, mixed> = array()

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

bool

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

Automatic::onBeforeUpdate() — метод класса \Bitrix\Sale\Delivery\Services\Automatic модуля «Интернет-магазин». Automatic: Класс Automatic Прокси для работы старых обработчиков доставки с новым API.

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

use Bitrix\Main\Loader;
use Bitrix\Sale\Delivery\Services\Automatic;

Loader::includeModule('sale');

$serviceId = 1;
$result = Automatic::onBeforeUpdate($serviceId);
// $result: bool

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

onBeforeUpdate() есть и у других классов модуля «Интернет-магазин»: AutomaticProfile, Base, CashboxRestHandlerTable, Configurable, DeliveryRestHandlerTable, DiscountCouponTable, DiscountEntitiesTable, DiscountGroupTable.

Исходный файл: source/sale/lib/delivery/services/automatic.php:620

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