method public static

DeliveryPaySystemTable::getLinks()

Класс: \Bitrix\Sale\Internals\DeliveryPaySystemTable

Сигнатура

public static getLinks(int $entityId, string $entityType[, array<string|int, mixed> $preparedData = array() ][, mixed $considerParent = true ]) : array<string|int, int>

Параметры

$entityId int
$entityType string
self::ENTITY_TYPE_DELIVERY || self::ENTITY_TYPE_PAYSYSTEM
$preparedData array<string|int, mixed> = array()
$considerParent mixed = true

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

array<string|int, int>

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

DeliveryPaySystemTable::getLinks() — метод класса \Bitrix\Sale\Internals\DeliveryPaySystemTable модуля «Интернет-магазин». Это ORM-сущность D7 (наследник DataManager): строки читаются как объекты EO_DeliveryPaySystem, наборы — как EO_DeliveryPaySystem_Collection.

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

use Bitrix\Main\Loader;
use Bitrix\Sale\Internals\DeliveryPaySystemTable;

Loader::includeModule('sale');

$entityId = 1;
$entityType = '';
$result = DeliveryPaySystemTable::getLinks($entityId, $entityType);
// $result: array<string|int, int>

Собственные методы DeliveryPaySystemTable

Исходный файл: source/sale/lib/internals/delivery_paysystem.php:525

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