method
public
ShipmentItemCollection::isAnyItemAdded()
Сигнатура
public isAnyItemAdded() : bool
Возвращаемое значение
bool
Как применяется в ShipmentItemCollection
ShipmentItemCollection::isAnyItemAdded() — метод класса \Bitrix\Sale\ShipmentItemCollection модуля «Интернет-магазин».
Метод объекта: сначала нужен экземпляр ShipmentItemCollection.
use Bitrix\Main\Loader;
use Bitrix\Sale\ShipmentItemCollection;
Loader::includeModule('sale');
/** @var ShipmentItemCollection $object */
$result = $object->isAnyItemAdded();
// $result: boolДругие методы ShipmentItemCollection
canAutoFixError()clearCollection()clearStartField()count()Подсчитывает количество элементов объекта.createItem()current()Возвращает текущий элемент.deleteByBasketItem()doFinalAction()getBasketItemQuantity()getErrorEntity()getIndexById()getItemByBasketCode()
isAnyItemAdded() есть и у других классов модуля «Интернет-магазин»: Basket, BasketBase, BasketItemCollection, BasketPropertiesCollection, BasketPropertiesCollectionBase, EntityCollection, ShipmentCollection, ShipmentItemStoreCollection.
Исходный файл: source/sale/lib/shipmentitemcollection.php:395

