method
public
static
StringType::convertPropertyToView()
Сигнатура
public static convertPropertyToView(FieldType $fieldType, int $viewMode, array<string|int, mixed> $property) : array<string|int, mixed>
Параметры
$fieldType
FieldType
$viewMode
int
$property
array<string|int, mixed>
Возвращаемое значение
array<string|int, mixed>
Как применяется в StringType
StringType::convertPropertyToView() — метод класса \Bitrix\Bizproc\BaseType\StringType модуля «Бизнес-процессы».
Статический метод — вызывается через имя класса StringType, без создания объекта.
use Bitrix\Main\Loader;
use Bitrix\Bizproc\BaseType\StringType;
Loader::includeModule('bizproc');
$fieldType = null; // FieldType
$viewMode = 1;
$property = [];
$result = StringType::convertPropertyToView($fieldType, $viewMode, $property);
// $result: array<string|int, mixed>Другие методы StringType
addError()addErrors()addFormat()canRenderControl()clearValueMultiple()clearValueSingle()compareValues()convertFrom()convertTo()convertValueMultiple()convertValueSingle()externalizeValue()
convertPropertyToView() есть и у других классов модуля «Бизнес-процессы»: Base, BoolType, Date, Datetime, Double, FieldType, File, InternalSelect.
Исходный файл: source/bizproc/lib/basetype/stringtype.php:887

