Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
kkmmodel.php
1
<?php
2
namespace
Bitrix\Sale\Cashbox\Internals
;
3
4
use
Bitrix\Main\Application
;
5
use Bitrix\Main\Entity\DataManager;
6
use
Bitrix\Sale\Cashbox\Cashbox1C
;
7
24
class
KkmModelTable
extends
DataManager
25
{
26
public
static
function
getTableName
()
27
{
28
return
'b_sale_kkm_model'
;
29
}
30
31
public
static
function
getMap
()
32
{
33
return
array(
34
'ID'
=> array(
35
'primary'
=>
true
,
36
'data_type'
=>
'integer'
,
37
),
38
'NAME'
=> array(
39
'data_type'
=>
'string'
,
40
'required'
=>
true
,
41
),
42
'SETTINGS'
=> array(
43
'data_type'
=>
'string'
,
44
'serialized'
=>
true
45
),
46
);
47
}
48
49
public
static
function
delete
($primary)
50
{
51
if
($primary ==
Cashbox1C::getId
())
52
{
53
$cacheManager =
Application::getInstance
()->getManagedCache();
54
$cacheManager->clean(
Cashbox1C::CACHE_ID
);
55
}
56
57
return
parent::delete($primary);
58
}
59
}
Bitrix\Main\Application
Definition
application.php:28
Bitrix\Main\Application\getInstance
static getInstance()
Definition
application.php:95
Bitrix\Main\ORM\Data\DataManager
Definition
datamanager.php:33
Bitrix\Sale\Cashbox\Cashbox1C
Definition
cashbox1c.php:16
Bitrix\Sale\Cashbox\Cashbox1C\CACHE_ID
const CACHE_ID
Definition
cashbox1c.php:17
Bitrix\Sale\Cashbox\Cashbox1C\getId
static getId()
Definition
cashbox1c.php:50
Bitrix\Sale\Cashbox\Internals\KkmModelTable
Definition
kkmmodel.php:25
Bitrix\Sale\Cashbox\Internals\KkmModelTable\getMap
static getMap()
Definition
kkmmodel.php:31
Bitrix\Sale\Cashbox\Internals\KkmModelTable\getTableName
static getTableName()
Definition
kkmmodel.php:26
Bitrix\Sale\Cashbox\Internals
modules
sale
lib
cashbox
internals
kkmmodel.php
Создано системой
1.10.0