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

