1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
storetree.php
См. документацию.
1
<?php
2
namespace
Bitrix\Catalog\Product\Store\BatchBalancer;
3
4
use Bitrix\Catalog\Product\Store\BatchBalancer\Entity\StoreItem;
5
6
12
final
class
StoreTree
extends
InventoryTree
13
{
14
public
function
push
(
StoreItem
$item): void
15
{
16
$this->append($item);
17
}
18
19
public
function
getByHash
(
string
$hash
): ?
StoreItem
20
{
21
foreach
($this->getIterator() as $item)
22
{
23
if
($item->getHash() ===
$hash
)
24
{
25
return
$item;
26
}
27
}
28
29
return
null
;
30
}
31
}
$hash
$hash
Определения
ajax_redirector.php:8
Bitrix\Catalog\Product\Store\BatchBalancer\Entity\StoreItem
Определения
storeitem.php:13
Bitrix\Catalog\Product\Store\BatchBalancer\InventoryTree
Определения
inventorytree.php:14
Bitrix\Catalog\Product\Store\BatchBalancer\StoreTree
Определения
storetree.php:13
Bitrix\Catalog\Product\Store\BatchBalancer\StoreTree\push
push(StoreItem $item)
Определения
storetree.php:14
Bitrix\Catalog\Product\Store\BatchBalancer\StoreTree\getByHash
getByHash(string $hash)
Определения
storetree.php:19
bitrix
modules
catalog
lib
product
store
batchbalancer
storetree.php
Создано системой
1.14.0