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

