1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
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
Определения
areatable.php:10
Bitrix\Location\Model\AreaTable\getMap
static getMap()
Определения
areatable.php:22
Bitrix\Location\Model\AreaTable\getTableName
static getTableName()
Определения
areatable.php:14
Bitrix\Main\ORM\Data\DataManager
Определения
datamanager.php:35
Bitrix\Main\ORM\Fields\IntegerField
Определения
integerfield.php:20
Bitrix\Main\ORM\Fields\StringField
Определения
stringfield.php:20
Bitrix\Main\ORM\Fields\Validators\LengthValidator
Определения
lengthvalidator.php:19
bitrix
modules
location
lib
model
areatable.php
Создано системой
1.14.0