method public static

ProductCategories::getValueSingle()

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

Сигнатура

public static getValueSingle(array<string|int, mixed> $input, mixed $userValue) : mixed

Параметры

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

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

mixed

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

ProductCategories::getValueSingle() — метод класса \Bitrix\Sale\Internals\Input\ProductCategories модуля «Интернет-магазин».

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

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

Loader::includeModule('sale');

$input = [];
$userValue = null;
$result = ProductCategories::getValueSingle($input, $userValue);
// $result: mixed

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

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

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

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