method public static

File::getError()

Класс: \Bitrix\Sale\Internals\Input\File

Сигнатура

public static getError(array<string|int, mixed> $input, mixed $value) : mixed

Параметры

$input array<string|int, mixed>
$value mixed

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

mixed

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

File::getError() — метод класса \Bitrix\Sale\Internals\Input\File модуля «Интернет-магазин». File: Файл Необходимо использовать: File::getPostWithFiles перед использованием этого типа!.

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

use Bitrix\Main\Loader;
use Bitrix\Sale\Internals\Input\File;

Loader::includeModule('sale');

$input = [];
$value = null;
$result = File::getError($input, $value);
// $result: mixed

Другие методы File

getError() есть и у других классов модуля «Интернет-магазин»: Address, Base, ButtonSelector, ConcreteProduct, Date, EitherYN, Enum, Location.

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

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