Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
sitedomain.php
1
<?php
8
namespace
Bitrix\Main
;
9
10
use
Bitrix\Main\Entity
;
11
use
Bitrix\Main\ORM\Fields
;
12
29
class
SiteDomainTable
extends
Entity\DataManager
30
{
31
public
static
function
getTableName
()
32
{
33
return
'b_lang_domain'
;
34
}
35
36
public
static
function
getMap
()
37
{
38
return
array(
39
'LID'
=> array(
40
'data_type'
=>
'string'
,
41
'primary'
=>
true
,
42
),
43
'DOMAIN'
=> array(
44
'data_type'
=>
'string'
,
45
'primary'
=>
true
,
46
),
47
'SITE'
=> array(
48
'data_type'
=>
'Bitrix\Main\Site'
,
49
'reference'
=> array(
'=this.LID'
=>
'ref.LID'
),
50
),
51
new
Fields\
ExpressionField
(
'DOMAIN_LENGTH'
,
'LENGTH(%s)'
,
'DOMAIN'
),
52
);
53
}
54
}
Bitrix\Main\ORM\Entity
Definition
entity.php:26
Bitrix\Main\ORM\Fields\ExpressionField
Definition
expressionfield.php:25
Bitrix\Main\SiteDomainTable
Definition
sitedomain.php:30
Bitrix\Main\SiteDomainTable\getMap
static getMap()
Definition
sitedomain.php:36
Bitrix\Main\SiteDomainTable\getTableName
static getTableName()
Definition
sitedomain.php:31
Bitrix\Main\ORM\Fields
Definition
arrayfield.php:9
Bitrix\Main
modules
main
lib
sitedomain.php
Создано системой
1.10.0