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

