method public static

File::getRequiredError()

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

Сигнатура

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

Параметры

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

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

array<string|int, mixed>

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

File::getRequiredError() — метод класса \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::getRequiredError($input, $value);
// $result: array<string|int, mixed>

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

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

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

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