Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
roomcategorytable.php
1<?php
3
9
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}
static getMessage($code, $replace=null, $language=null)
Definition loc.php:29