method
public
ShipmentCollection::getIndexById()
Сигнатура
public getIndexById(mixed $id) : bool|int|null
Параметры
$id
mixed
Возвращаемое значение
bool|int|null
Как применяется в ShipmentCollection
ShipmentCollection::getIndexById() — метод класса \Bitrix\Sale\ShipmentCollection модуля «Интернет-магазин».
Метод объекта: сначала нужен экземпляр ShipmentCollection.
use Bitrix\Main\Loader;
use Bitrix\Sale\ShipmentCollection;
Loader::includeModule('sale');
/** @var ShipmentCollection $object */
$id = null;
$result = $object->getIndexById($id);
// $result: bool|int|nullДругие методы ShipmentCollection
allowDelivery()Разрешение на добавление отгрузки в коллекцию отгрузокcalculateDelivery()canAutoFixError()clearCollection()clearStartField()count()Подсчитывает количество элементов объекта.createItem()Создаёт новую отгрузкуcurrent()Возвращает текущий элемент.disallowDelivery()Запрет на добавление отгрузки в коллекцию отгрузокdoFinalAction()getBasePriceDelivery()getBasketItemDistributedQuantity()
getIndexById() есть и у других классов модуля «Интернет-магазин»: Basket, BasketBase, BasketItemCollection, BasketPropertiesCollection, BasketPropertiesCollectionBase, EntityCollection, ShipmentItemCollection, ShipmentItemStoreCollection.
Исходный файл: source/sale/lib/shipmentcollection.php:203

