Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
app.php
1<?php
2namespace Bitrix\Im\Model;
3
5
46class AppTable extends Main\Entity\DataManager
47{
53 public static function getTableName()
54 {
55 return 'b_im_app';
56 }
57
63 public static function getMap()
64 {
65 return array(
66 'ID' => array(
67 'data_type' => 'integer',
68 'primary' => true,
69 'autocomplete' => true
70 ),
71 'MODULE_ID' => array(
72 'data_type' => 'string',
73 'required' => true,
74 'validation' => array(__CLASS__, 'validateModuleId'),
75 ),
76 'BOT_ID' => array(
77 'data_type' => 'integer',
78 ),
79 'APP_ID' => array(
80 'data_type' => 'string',
81 'validation' => array(__CLASS__, 'validateAppId'),
82 ),
83 'HASH' => array(
84 'data_type' => 'string',
85 'validation' => array(__CLASS__, 'validateHash'),
86 ),
87 'REGISTERED' => array(
88 'data_type' => 'string',
89 'validation' => array(__CLASS__, 'validateHash'),
90 'default_value' => 'Y',
91 ),
92 'CODE' => array(
93 'data_type' => 'string',
94 'required' => true,
95 'validation' => array(__CLASS__, 'validateIconCode'),
96 ),
97 'ICON_FILE_ID' => array(
98 'data_type' => 'string',
99 'validation' => array(__CLASS__, 'validateIconFileId'),
100 ),
101 'CONTEXT' => array(
102 'data_type' => 'string',
103 'validation' => array(__CLASS__, 'validateContext'),
104 ),
105 'IFRAME' => array(
106 'data_type' => 'string',
107 'validation' => array(__CLASS__, 'validateIframe'),
108 ),
109 'IFRAME_WIDTH' => array(
110 'data_type' => 'integer',
111 'default_value' => '350',
112 ),
113 'IFRAME_HEIGHT' => array(
114 'data_type' => 'integer',
115 'default_value' => '250',
116 ),
117 'IFRAME_POPUP' => array(
118 'data_type' => 'boolean',
119 'values' => array('N', 'Y'),
120 'default_value' => 'N',
121 ),
122 'JS' => array(
123 'data_type' => 'string',
124 'validation' => array(__CLASS__, 'validateJs'),
125 ),
126 'EXTRANET_SUPPORT' => array(
127 'data_type' => 'boolean',
128 'values' => array('N', 'Y'),
129 'default_value' => 'N',
130 ),
131 'LIVECHAT_SUPPORT' => array(
132 'data_type' => 'boolean',
133 'values' => array('N', 'Y'),
134 'default_value' => 'N',
135 ),
136 'HIDDEN' => array(
137 'data_type' => 'boolean',
138 'values' => array('N', 'Y'),
139 'default_value' => 'N',
140 ),
141 'CLASS' => array(
142 'data_type' => 'string',
143 'validation' => array(__CLASS__, 'validateClass'),
144 ),
145 'METHOD_LANG_GET' => array(
146 'data_type' => 'string',
147 'validation' => array(__CLASS__, 'validateMethodLangGet'),
148 ),
149 );
150 }
156 public static function validateModuleId()
157 {
158 return array(
159 new Main\Entity\Validator\Length(null, 50),
160 );
161 }
167 public static function validateAppId()
168 {
169 return array(
170 new Main\Entity\Validator\Length(null, 128),
171 );
172 }
178 public static function validateHash()
179 {
180 return array(
181 new Main\Entity\Validator\Length(null, 32),
182 );
183 }
189 public static function validateIconCode()
190 {
191 return array(
192 new Main\Entity\Validator\Length(null, 255),
193 );
194 }
200 public static function validateIconFileId()
201 {
202 return array(
203 new Main\Entity\Validator\Length(null, 255),
204 );
205 }
211 public static function validateContext()
212 {
213 return array(
214 new Main\Entity\Validator\Length(null, 128),
215 );
216 }
222 public static function validateIframe()
223 {
224 return array(
225 new Main\Entity\Validator\Length(null, 255),
226 );
227 }
233 public static function validateJs()
234 {
235 return array(
236 new Main\Entity\Validator\Length(null, 255),
237 );
238 }
244 public static function validateClass()
245 {
246 return array(
247 new Main\Entity\Validator\Length(null, 255),
248 );
249 }
255 public static function validateMethodLangGet()
256 {
257 return array(
258 new Main\Entity\Validator\Length(null, 255),
259 );
260 }
261}
static validateIframe()
Definition app.php:222
static validateAppId()
Definition app.php:167
static validateMethodLangGet()
Definition app.php:255
static validateIconFileId()
Definition app.php:200
static validateClass()
Definition app.php:244
static validateHash()
Definition app.php:178
static validateModuleId()
Definition app.php:156
static getTableName()
Definition app.php:53
static validateIconCode()
Definition app.php:189
static validateContext()
Definition app.php:211