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

