method
public
static
Quantity::prepareParamsToSave()
Сигнатура
public static prepareParamsToSave(array<string|int, mixed> $params) : mixed
Параметры
$params
array<string|int, mixed>
Возвращаемое значение
mixed
Как применяется в Quantity
Quantity::prepareParamsToSave() — метод класса \Bitrix\Sale\Delivery\ExtraServices\Quantity модуля «Интернет-магазин».
Статический метод — вызывается через имя класса Quantity, без создания объекта.
use Bitrix\Main\Loader;
use Bitrix\Sale\Delivery\ExtraServices\Quantity;
Loader::includeModule('sale');
$params = [];
$result = Quantity::prepareParamsToSave($params);
// $result: mixedДругие методы Quantity
canManagerEditValue()canUserEditValue()getAdminDefaultControl()getAdminParamsControl()getAdminParamsName()getClassTitle()getCode()getCost()getCostShipment()getDescription()getDisplayValue()getEditControl()
prepareParamsToSave() есть и у других классов модуля «Интернет-магазин»: Base, Checkbox, Enum, Manager, Store.
Исходный файл: source/sale/lib/delivery/extra_services/quantity.php:167

