method
public
static
Manager::add()
Сигнатура
public static add(array<string|int, mixed> $data) : AddResult
Параметры
$data
array<string|int, mixed>
Возвращаемое значение
AddResult
Как применяется в Manager
Manager::add() — метод класса \Bitrix\Sale\PaySystem\Manager модуля «Интернет-магазин».
Статический метод — вызывается через имя класса Manager, без создания объекта.
use Bitrix\Main\Loader;
use Bitrix\Sale\PaySystem\Manager;
Loader::includeModule('sale');
$data = [];
$result = Manager::add($data);
// $result: AddResultДругие методы Manager
delete()generateXmlId()getBusValueGroups()getByCode()getById()getClassNameFromPath()getConsumersList()getDataRefundablePage()getFolderFromClassName()getHandlerDescription()getHandlerDirectories()getHandlerList()
add() есть и у других классов модуля «Интернет-магазин»: ActionEntity, BasketArchiveTable, CashboxRestHandlerTable, DeliveryRestHandlerTable, DiscountCouponsManager, DiscountCouponsManagerBase, DiscountCouponTable, DiscountEntitiesTable.
Исходный файл: source/sale/lib/paysystem/manager.php:158

