Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
exportprofile.php
1<?php
3
7
8Loc::loadMessages(__FILE__);
9
10
27class ExportProfileTable extends Entity\DataManager
28{
29 public static function getTableName()
30 {
31 return 'b_sale_tp_vk_profile';
32 }
33
34 public static function getMap()
35 {
36 return array(
37 new Entity\IntegerField('ID', array(
38 'primary' => true,
39 'autocomplete' => true,
40 'title' => Loc::getMessage('TP_VK_PROFILE_ID_FIELD'),
41 )),
42
43 new Entity\StringField('DESCRIPTION', array(
44 'required' => true,
45 'validation' => array(__CLASS__, 'validateDesc'),
46 'title' => Loc::getMessage('TP_VK_PROFILE_DESCRIPTION_FIELD'),
47 )),
48
49 new Entity\IntegerField('PLATFORM_ID', array(
50 'required' => true,
51 'title' => Loc::getMessage('TP_VK_PROFILE_PLATFORM_ID_FIELD'),
52 )),
53
54 new Entity\StringField('VK_SETTINGS', array(
55 'required' => false,
56 'serialized' => true,
57 'title' => Loc::getMessage('TP_VK_PROFILE_VK_SETTINGS_FIELD'),
58 )),
59
60 new Entity\StringField('EXPORT_SETTINGS', array(
61 'required' => false,
62 'serialized' => true,
63 'title' => Loc::getMessage('TP_VK_PROFILE_EXPORT_SETTINGS_FIELD'),
64 )),
65
66 new Entity\StringField('OAUTH', array(
67 'required' => false,
68 'serialized' => true,
69 'title' => Loc::getMessage('TP_VK_PROFILE_OAUTH_SETTINGS_FIELD'),
70 )),
71
72 new Entity\StringField('PROCESS', array(
73 'required' => false,
74 'serialized' => true,
75 'title' => Loc::getMessage('TP_VK_PROFILE_PROCESS_FIELD'),
76 )),
77
78 new Entity\StringField('JOURNAL', array(
79 'required' => false,
80 'serialized' => true,
81 'title' => Loc::getMessage('TP_VK_PROFILE_JOURNAL_FIELD'),
82 )),
83 );
84 }
85
86 public static function validateDesc()
87 {
88 return array(
89 new Entity\Validator\Length(3, 100),
90 );
91 }
92}
static loadMessages($file)
Definition loc.php:64
static getMessage($code, $replace=null, $language=null)
Definition loc.php:29