Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
log.php
1<?php
3
7Loc::loadMessages(__FILE__);
8
9
26class LogTable extends Entity\DataManager
27{
28 public static function getTableName()
29 {
30 return 'b_sale_tp_vk_log';
31 }
32
33 public static function getMap()
34 {
35 return array(
36 new Entity\IntegerField('ID', array(
37 'primary' => true,
38 'autocomplete' => true,
39 'title' => Loc::getMessage('TP_VK_LOG_ID_FIELD'),
40 )),
41
42 new Entity\IntegerField('EXPORT_ID', array(
43 'required' => true,
44 'title' => Loc::getMessage('TP_VK_LOG_EXPORT_ID_FIELD'),
45 )),
46
47 new Entity\StringField('ERROR_CODE', array(
48 'required' => true,
49 'title' => Loc::getMessage('TP_VK_LOG_ERROR_CODE_FIELD'),
50 )),
51
52 new Entity\StringField('ITEM_ID', array(
53 'title' => Loc::getMessage('TP_VK_LOG_ITEM_ID_FIELD'),
54 )),
55
56 new Entity\DatetimeField('TIME', array(
57 'title' => Loc::getMessage('TP_VK_LOG_TIME_FIELD'),
58 'default_value' => new Type\DateTime(),
59 )),
60
61 new Entity\TextField('ERROR_PARAMS', array(
62 'title' => Loc::getMessage('TP_VK_LOG_ERROR_PARAMS'),
63 'serialized' => true,
64 )),
65 );
66 }
67}
static loadMessages($file)
Definition loc.php:64
static getMessage($code, $replace=null, $language=null)
Definition loc.php:29