Метод setItemContext

public

Сигнатура метода

public function setItemContext(mixed $context): Field

Возвращает: Field

Описание

Stores the full row of the currently formatted item. Set by {@see Display::processValues()} before each call to {@see getFormattedValue()} so that subclasses can read sibling field values (e.g. resolve currency code from currencyFieldName). The value is stored as-is (typically a plain values array on the standard Display path, or an \ArrayAccess row such as {@see \Bitrix\Crm\Item} fed by callers like crmmobile's ProviderDecorator). Consumers reading it via {@see getItemContext()} must validate the format before use.

Параметры

1
Имя Тип По умолчанию Флаги
$context mixed —
—

Расположение

Исходный файл метода в Bitrix Framework

Путь к исходному файлу Source
~/bitrix/modulescrm/lib/Service/Display/Field.php
Расположение метода в файле
Строки 487–492

Исходный код

PHP