Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
deletestorebarcodeaction.php
1
<?php
2
3
namespace
Bitrix\Catalog\Document\Action\Barcode
;
4
5
use
Bitrix\Catalog\Document\Action
;
6
use
Bitrix\Main\Result
;
7
use CCatalogStoreBarCode;
8
12
class
DeleteStoreBarcodeAction
implements
Action
13
{
14
use
BaseStoreBarcodeAction
;
15
19
public
function
canExecute
():
Result
20
{
21
return
new
Result
();
22
}
23
29
public
function
execute
():
Result
30
{
31
$result =
new
Result
();
32
33
$row = $this->
getBarcodeRow
();
34
if
($row)
35
{
36
CCatalogStoreBarCode::delete($row[
'ID'
]);
37
}
38
39
return
$result;
40
}
41
}
Bitrix\Catalog\Document\Action\Barcode\DeleteStoreBarcodeAction
Definition
deletestorebarcodeaction.php:13
Bitrix\Catalog\Document\Action\Barcode\DeleteStoreBarcodeAction\execute
execute()
Definition
deletestorebarcodeaction.php:29
Bitrix\Catalog\Document\Action\Barcode\DeleteStoreBarcodeAction\canExecute
canExecute()
Definition
deletestorebarcodeaction.php:19
Bitrix\Main\ORM\Data\Result
Definition
result.php:16
Bitrix\Main\Result
Definition
result.php:14
Bitrix\Catalog\Document\Action
Definition
action.php:11
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
modules
catalog
lib
document
action
barcode
deletestorebarcodeaction.php
Создано системой
1.10.0