1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
optionstatetable.php
См. документацию.
1<?php
2
3namespace Bitrix\Im\Model;
4
5use Bitrix\Im\V2\Common\MultiplyInsertTrait;
6use Bitrix\Main\ArgumentTypeException,
7 Bitrix\Main\ORM\Data\DataManager,
8 Bitrix\Main\ORM\Fields\IntegerField,
9 Bitrix\Main\ORM\Fields\StringField,
10 Bitrix\Main\ORM\Fields\Validators\LengthValidator,
11 Bitrix\Main\SystemException;
12
13
39
41{
42 use MultiplyInsertTrait;
43
49 public static function getTableName(): string
50 {
51 return 'b_im_option_state';
52 }
53
60 public static function getMap(): array
61 {
62 return [
63 'GROUP_ID' => (new IntegerField('GROUP_ID', [
64 'primary' => true,
65 ])),
66 'NAME' => (new StringField('NAME', [
67 'primary' => true,
68 'validation' => [__CLASS__, 'validateName'],
69 ])),
70 'VALUE' => (new StringField('VALUE', [
71 'validation' => [__CLASS__, 'validateValue']
72 ])),
73 ];
74 }
75
82 public static function validateName(): array
83 {
84 return [
85 new LengthValidator(null, 64),
86 ];
87 }
88
95 public static function validateValue(): array
96 {
97 return [
98 new LengthValidator(null, 255),
99 ];
100 }
101}
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804