Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
sourcetable.php
1
<?php
2
3
namespace
Bitrix\Location\Model
;
4
5
use
Bitrix\Main
;
6
use
Bitrix\Main\ORM\Fields
;
7
26
class
SourceTable
extends
Main\ORM\Data\DataManager
27
{
31
public
static
function
getTableName
()
32
{
33
return
'b_location_source'
;
34
}
35
39
public
static
function
getMap
()
40
{
41
return
[
42
(
new
Fields\StringField(
'CODE'
))
43
->addValidator(
new
Main\ORM\Fields\Validators\
LengthValidator
(1, 15))
44
->configurePrimary(
true
),
45
(
new
Fields\StringField(
'NAME'
))
46
->configureRequired(
true
)
47
->addValidator(
new
Main\ORM\Fields\Validators\
LengthValidator
(1, 255)),
48
new
Fields\
TextField
(
'CONFIG'
),
49
];
50
}
51
}
Bitrix\Location\Model\SourceTable
Definition
sourcetable.php:27
Bitrix\Location\Model\SourceTable\getMap
static getMap()
Definition
sourcetable.php:39
Bitrix\Location\Model\SourceTable\getTableName
static getTableName()
Definition
sourcetable.php:31
Bitrix\Main\ORM\Data\DataManager
Definition
datamanager.php:33
Bitrix\Main\ORM\Fields\TextField
Definition
textfield.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
Bitrix\Main
modules
location
lib
model
sourcetable.php
Создано системой
1.10.0