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