Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
areatable.php
1
<?php
2
3
namespace
Bitrix\Location\Model
;
4
5
use
Bitrix\Main\ORM\Data\DataManager
;
6
use
Bitrix\Main\ORM\Fields\Validators\LengthValidator
;
7
use
Bitrix\Main\ORM\Fields
;
8
9
class
AreaTable
extends
DataManager
10
{
14
public
static
function
getTableName
()
15
{
16
return
'b_location_area'
;
17
}
18
22
public
static
function
getMap
()
23
{
24
return
[
25
(
new
Fields\IntegerField(
'ID'
))
26
->configurePrimary(
true
)
27
->configureAutocomplete(
true
),
28
(
new
Fields\StringField(
'TYPE'
))
29
->configureRequired(
true
)
30
->addValidator(
new
LengthValidator
(1, 255)),
31
(
new
Fields\
StringField
(
'CODE'
))
32
->addValidator(
new
LengthValidator
(
null
, 255)),
33
(
new
Fields\
IntegerField
(
'SORT'
))
34
->configureDefaultValue(100),
35
(
new
Fields\StringField(
'GEOMETRY'
))
36
->configureRequired(
true
),
37
];
38
}
39
}
Bitrix\Location\Model\AreaTable
Definition
areatable.php:10
Bitrix\Location\Model\AreaTable\getMap
static getMap()
Definition
areatable.php:22
Bitrix\Location\Model\AreaTable\getTableName
static getTableName()
Definition
areatable.php:14
Bitrix\Main\ORM\Data\DataManager
Definition
datamanager.php:33
Bitrix\Main\ORM\Fields\IntegerField
Definition
integerfield.php:20
Bitrix\Main\ORM\Fields\StringField
Definition
stringfield.php:20
Bitrix\Main\ORM\Fields\Validators\LengthValidator
Definition
lengthvalidator.php:19
Bitrix\Location\Model
Definition
addressfieldtable.php:3
Bitrix\Main\ORM\Fields
Definition
arrayfield.php:9
modules
location
lib
model
areatable.php
Создано системой
1.10.0