method public static

ByPaySystem::prepareData()

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

Сигнатура

public static prepareData(array<string|int, mixed> $deliveryIds) : bool

Параметры

$deliveryIds array<string|int, mixed>

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

bool

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

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

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

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

Loader::includeModule('sale');

$deliveryIds = [];
$result = ByPaySystem::prepareData($deliveryIds);
// $result: bool

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

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

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

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