1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
optionaccesstable.php
См. документацию.
1<?php
2
3namespace Bitrix\Im\Model;
4
5use Bitrix\Main\ArgumentTypeException,
6 Bitrix\Main\ORM\Data\DataManager,
7 Bitrix\Main\ORM\Fields\IntegerField,
8 Bitrix\Main\ORM\Fields\StringField,
9 Bitrix\Main\ORM\Fields\Validators\LengthValidator,
10 Bitrix\Main\SystemException;
11
12
38
40{
46 public static function getTableName(): string
47 {
48 return 'b_im_option_access';
49 }
50
57 public static function getMap(): array
58 {
59 return [
60 'ID' => (new IntegerField('ID', [
61 'primary' => true,
62 'autocomplete' => true,
63 ])),
64 'GROUP_ID' => (new IntegerField('GROUP_ID', [
65 'required' => true,
66 ])),
67 'ACCESS_CODE' => (new StringField('ACCESS_CODE', [
68 'validation' => [__CLASS__, 'validateAccessCode'],
69 ])),
70 ];
71 }
72
79 public static function validateAccessCode(): array
80 {
81 return [
82 new LengthValidator(null, 100),
83 ];
84 }
85}
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804