Метод present

public

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

public function present(SourceRef $source, iterable $rows): iterable

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

Описание

Returns, per input row key (keys preserved), a map of source-field code to human-readable label for dictionary/reference fields only. Untouched fields are omitted; a row with nothing to format maps to an empty array. The join/id value is never rewritten here. A label is plain text, never HTML: escaping belongs to whoever puts it into a page, so a label escaped here would reach the user double-escaped. The signature stays at two parameters so an implementation shipped by a module on its own release cycle keeps loading against a newer bizproc. The actor a row was extracted under is passed as an extra trailing int argument: a provider that builds labels under permissions declares it as `int $actorId = 0` and gets it, one that does not simply ignores it.

Параметры

2
Имя Тип По умолчанию Флаги
$source SourceRef —
—
$rows iterable —
—

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

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

Путь к исходному файлу Source
~/bitrix/modulesbizproc/lib/Public/DataView/Interface/PresentableProvider.php
Расположение метода в файле
Строки 32–32

Исходный код

PHP