Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
optionstatetable.php
1<?php
2
3namespace Bitrix\Im\Model;
4
11
12
27{
33 public static function getTableName(): string
34 {
35 return 'b_im_option_state';
36 }
37
44 public static function getMap(): array
45 {
46 return [
47 'GROUP_ID' => (new IntegerField('GROUP_ID', [
48 'primary' => true,
49 ])),
50 'NAME' => (new StringField('NAME', [
51 'primary' => true,
52 'validation' => [__CLASS__, 'validateName'],
53 ])),
54 'VALUE' => (new StringField('VALUE', [
55 'validation' => [__CLASS__, 'validateValue']
56 ])),
57 ];
58 }
59
66 public static function validateName(): array
67 {
68 return [
69 new LengthValidator(null, 64),
70 ];
71 }
72
79 public static function validateValue(): array
80 {
81 return [
82 new LengthValidator(null, 255),
83 ];
84 }
85}