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

