1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
storeitem.php
См. документацию.
1
<?php
2
namespace
Bitrix\Catalog\Product\Store\BatchBalancer\Entity;
3
4
use Bitrix\Catalog\EO_StoreBatch;
5
use Bitrix\Main\Result;
6
12
final
class
StoreItem
implements
InventoryTreeItem
13
{
14
private
EO_StoreBatch
$batch;
15
private
string
$hash;
16
public
function
__construct
(
EO_StoreBatch
$batch)
17
{
18
$this->batch = $batch;
19
20
$this->hash = md5(uniqid(rand(),
true
));
21
}
22
public
function
getStoreBatch
(): ?
EO_StoreBatch
23
{
24
return
$this->batch;
25
}
26
27
public
function
getHash
(): string
28
{
29
return
$this->hash
;
30
}
31
32
public
function
save
():
Result
33
{
34
return
$this->batch->save();
35
}
36
}
$hash
$hash
Определения
ajax_redirector.php:8
Bitrix\Catalog\EO_StoreBatch
Определения
orm.php:7942
Bitrix\Catalog\Product\Store\BatchBalancer\Entity\StoreItem
Определения
storeitem.php:13
Bitrix\Catalog\Product\Store\BatchBalancer\Entity\StoreItem\getHash
getHash()
Определения
storeitem.php:27
Bitrix\Catalog\Product\Store\BatchBalancer\Entity\StoreItem\getStoreBatch
getStoreBatch()
Определения
storeitem.php:22
Bitrix\Catalog\Product\Store\BatchBalancer\Entity\StoreItem\__construct
__construct(EO_StoreBatch $batch)
Определения
storeitem.php:16
Bitrix\Catalog\Product\Store\BatchBalancer\Entity\StoreItem\save
save()
Определения
storeitem.php:32
Bitrix\Main\ORM\Data\Result
Определения
result.php:16
Bitrix\Catalog\Product\Store\BatchBalancer\Entity\InventoryTreeItem
Определения
inventorytreeitem.php:12
bitrix
modules
catalog
lib
product
store
batchbalancer
entity
storeitem.php
Создано системой
1.14.0