1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
roomcategorytable.php
См. документацию.
1<?php
2namespace Bitrix\Calendar\Internals;
3
4use Bitrix\Main\Localization\Loc;
5use Bitrix\Main\ORM\Data\DataManager;
6use Bitrix\Main\ORM\Fields\IntegerField;
7use Bitrix\Main\ORM\Fields\StringField;
8use Bitrix\Main\ORM\Fields\Validators\LengthValidator;
9
34
36{
42 public static function getTableName()
43 {
44 return 'b_calendar_room_category';
45 }
46
52 public static function getMap()
53 {
54 return [
55 (new IntegerField('ID'))
56 ->configureTitle(Loc::getMessage('ROOM_CATEGORY_ENTITY_ID_FIELD'))
57 ->configurePrimary(true)
58 ->configureAutocomplete(true)
59 ,
60 (new StringField('NAME',
61 [
62 'validation' => [__CLASS__, 'validateName']
63 ]
64 ))
65 ->configureTitle(Loc::getMessage('ROOM_CATEGORY_ENTITY_NAME_FIELD'))
66 ,
67 ];
68 }
69
75 public static function validateName(): array
76 {
77 return [
78 new LengthValidator(null, 255),
79 ];
80 }
81}
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804