Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
kkmmodel.php
1<?php
3
5use Bitrix\Main\Entity\DataManager;
7
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}