method
public
RestrictionInfoCollection::add()
Сигнатура
public add(RestrictionInfo $restrictionInfo) : void
Параметры
$restrictionInfo
RestrictionInfo
Возвращаемое значение
void
Как применяется в RestrictionInfoCollection
RestrictionInfoCollection::add() — метод класса \Bitrix\Sale\Services\Base\RestrictionInfoCollection модуля «Интернет-магазин».
Метод объекта: сначала нужен экземпляр RestrictionInfoCollection.
use Bitrix\Main\Loader;
use Bitrix\Sale\Services\Base\RestrictionInfoCollection;
Loader::includeModule('sale');
/** @var RestrictionInfoCollection $object */
$restrictionInfo = null; // RestrictionInfo
$object->add($restrictionInfo);Другие методы RestrictionInfoCollection
add() есть и у других классов модуля «Интернет-магазин»: ActionEntity, BasketArchiveTable, CashboxRestHandlerTable, DeliveryRestHandlerTable, DiscountCouponsManager, DiscountCouponsManagerBase, DiscountCouponTable, DiscountEntitiesTable.
Исходный файл: source/sale/lib/services/base/restrictioninfocollection.php:19

