Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
basestorebarcodeaction.php
1
<?php
2
3
namespace
Bitrix\Catalog\Document\Action\Barcode
;
4
5
use
Bitrix\Catalog\StoreBarcodeTable
;
6
10
trait
BaseStoreBarcodeAction
11
{
15
protected
$storeId;
16
20
protected
$productId
;
21
25
protected
$barcode
;
26
30
protected
$userId
;
31
38
public
function
__construct
(
39
?
int
$storeId,
40
int
$productId
,
41
string
$barcode
,
42
int
$userId
43
)
44
{
45
$this->storeId = $storeId;
46
$this->productId =
$productId
;
47
$this->barcode =
$barcode
;
48
$this->userId =
$userId
;
49
}
50
56
protected
function
getBarcodeRow
(): ?array
57
{
58
return
StoreBarcodeTable::getRow
([
59
'select'
=> [
60
'ID'
,
61
'STORE_ID'
,
62
'PRODUCT_ID'
,
63
'BARCODE'
,
64
],
65
'filter'
=> [
66
'=BARCODE'
=> $this->barcode,
67
],
68
]) ?:
null
;
69
}
70
}
Bitrix\Catalog\StoreBarcodeTable
Definition
storebarcode.php:45
Bitrix\Main\ORM\Data\DataManager\getRow
static getRow(array $parameters)
Definition
datamanager.php:410
Bitrix\Catalog\Document\Action\Barcode
Definition
addstorebarcodeaction.php:3
Bitrix\Catalog\Document\Action\Barcode\getBarcodeRow
getBarcodeRow()
Definition
basestorebarcodeaction.php:56
Bitrix\Catalog\Document\Action\Barcode\BaseStoreBarcodeAction
trait BaseStoreBarcodeAction
Definition
basestorebarcodeaction.php:11
Bitrix\Catalog\Document\Action\Barcode\$userId
$userId
Definition
basestorebarcodeaction.php:30
Bitrix\Catalog\Document\Action\Barcode\$barcode
$barcode
Definition
basestorebarcodeaction.php:25
Bitrix\Catalog\Document\Action\Barcode\__construct
__construct(?int $storeId, int $productId, string $barcode, int $userId)
Definition
basestorebarcodeaction.php:38
Bitrix\Catalog\Document\Action\Barcode\$productId
$productId
Definition
basestorebarcodeaction.php:20
modules
catalog
lib
document
action
barcode
basestorebarcodeaction.php
Создано системой
1.10.0