Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
abtest.php
1<?php
2
3namespace Bitrix\ABTest;
4
7
8Localization\Loc::loadMessages(__FILE__);
9
26class ABTestTable extends Entity\DataManager
27{
28
34 public static function getTableName()
35 {
36 return 'b_abtest';
37 }
38
44 public static function getMap()
45 {
46 return array(
47 'ID' => array(
48 'data_type' => 'integer',
49 'primary' => true,
50 'autocomplete' => true
51 ),
52 'SITE_ID' => array(
53 'data_type' => 'string',
54 'title' => Localization\Loc::getMessage('abtest_entity_site_field'),
55 'required' => true
56 ),
57 'ACTIVE' => array(
58 'data_type' => 'boolean',
59 'title' => Localization\Loc::getMessage('abtest_entity_active_field'),
60 'values' => array('N', 'Y'),
61 'required' => true
62 ),
63 'ENABLED' => array(
64 'data_type' => 'enum',
65 'title' => Localization\Loc::getMessage('abtest_entity_enabled_field'),
66 'values' => array('N', 'T', 'Y'),
67 'required' => true
68 ),
69 'NAME' => array(
70 'data_type' => 'string',
71 'title' => Localization\Loc::getMessage('abtest_entity_name_field'),
72 ),
73 'DESCR' => array(
74 'data_type' => 'text',
75 'title' => Localization\Loc::getMessage('abtest_entity_descr_field'),
76 ),
77
78 'TEST_DATA' => array(
79 'data_type' => 'text',
80 'title' => Localization\Loc::getMessage('abtest_entity_test_data_field'),
81 'serialized' => true,
82 'required' => true
83 ),
84
85 'START_DATE' => array(
86 'data_type' => 'datetime',
87 'title' => Localization\Loc::getMessage('abtest_entity_start_date_field'),
88 ),
89 'STOP_DATE' => array(
90 'data_type' => 'datetime',
91 'title' => Localization\Loc::getMessage('abtest_entity_stop_date_field'),
92 ),
93 'DURATION' => array(
94 'data_type' => 'integer',
95 'title' => Localization\Loc::getMessage('abtest_entity_duration_field'),
96 'required' => true
97 ),
98 'PORTION' => array(
99 'data_type' => 'integer',
100 'title' => Localization\Loc::getMessage('abtest_entity_portion_field'),
101 'required' => true
102 ),
103
104 'MIN_AMOUNT' => array(
105 'data_type' => 'integer',
106 'title' => Localization\Loc::getMessage('abtest_entity_min_amount_field')
107 ),
108
109 'USER_ID' => array(
110 'data_type' => 'integer',
111 'title' => Localization\Loc::getMessage('abtest_entity_userid_field')
112 ),
113 'USER' => array(
114 'data_type' => 'Bitrix\Main\User',
115 'reference' => array('=this.USER_ID' => 'ref.ID'),
116 ),
117
118 'SORT' => array(
119 'data_type' => 'integer',
120 'title' => Localization\Loc::getMessage('abtest_entity_sort_field'),
121 ),
122 );
123 }
124
125}
static getMessage($code, $replace=null, $language=null)
Definition loc.php:29