Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
locationtable.php
1
<?php
2
3
namespace
Bitrix\Calendar\Internals
;
4
5
use
Bitrix\Main
;
6
use
Bitrix\Main\Localization\Loc
,
7
Bitrix\Main\ORM\Fields\IntegerField
,
8
Bitrix\Main\ORM\Fields\BooleanField
;
9
10
Loc::loadMessages
(__FILE__);
11
39
class
LocationTable
extends
Main\Entity\DataManager
40
{
46
public
static
function
getTableName
()
47
{
48
return
'b_calendar_location'
;
49
}
55
public
static
function
getMap
()
56
{
57
return
[
58
(
new
IntegerField
(
'ID'
))
59
->configurePrimary()
60
->configureAutocomplete()
61
,
62
(
new
IntegerField
(
'SECTION_ID'
))
63
->configureRequired()
64
,
65
(
new
BooleanField
(
'NECESSITY'
))
66
->configureStorageValues(
'N'
,
'Y'
)
67
->configureDefaultValue(
'N'
)
68
,
69
(
new
IntegerField
(
'CAPACITY'
))
70
->configureDefaultValue(0)
71
,
72
(
new
IntegerField
(
'CATEGORY_ID'
))
73
->configureDefaultValue(
null
)
74
,
75
];
76
}
77
}
Bitrix\Calendar\Internals\LocationTable\getMap
static getMap()
Definition
locationtable.php:55
Bitrix\Calendar\Internals\LocationTable\getTableName
static getTableName()
Definition
locationtable.php:46
Bitrix\Main\Localization\Loc
Definition
loc.php:11
Bitrix\Main\Localization\Loc\loadMessages
static loadMessages($file)
Definition
loc.php:64
Bitrix\Main\ORM\Fields\BooleanField
Definition
booleanfield.php:20
Bitrix\Main\ORM\Fields\IntegerField
Definition
integerfield.php:20
Bitrix\Calendar\Internals
Definition
access.php:3
Bitrix\Main
modules
calendar
lib
internals
locationtable.php
Создано системой
1.10.0