Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
group.php
1
<?php
2
namespace
Bitrix\Forum
;
3
4
use
Bitrix\Main\Entity
;
5
use
Bitrix\Main\ORM\Fields\Relations\Reference
;
6
use
Bitrix\Main\ORM\Query\Join
;
7
24
class
GroupTable
extends
Entity\DataManager
25
{
31
public
static
function
getTableName
()
32
{
33
return
'b_forum_group'
;
34
}
35
41
public
static
function
getMap
()
42
{
43
return
[
44
new
Entity\IntegerField(
'ID'
, [
'primary'
=>
true
,
'autocomplete'
=>
true
]),
45
new
Entity\IntegerField(
'SORT'
, [
'default_value'
=> 150]),
46
new
Entity\IntegerField(
'PARENT_ID'
),
47
new
Entity\IntegerField(
'LEFT_MARGIN'
),
48
new
Entity\IntegerField(
'RIGHT_MARGIN'
),
49
new
Entity\IntegerField(
'DEPTH_LEVEL'
),
50
new
Entity\StringField(
'XML_ID'
, [
'size'
=> 255]),
51
new
Reference
(
"LANG"
, GroupLangTable::class, Join::on(
"this.ID"
,
"ref.FORUM_GROUP_ID"
))
52
];
53
}
54
}
55
82
class
GroupLangTable
extends
Entity\DataManager
83
{
89
public
static
function
getTableName
()
90
{
91
return
'b_forum_group_lang'
;
92
}
93
99
public
static
function
getMap
()
100
{
101
return
[
102
new
Entity\IntegerField(
'ID'
, [
'primary'
=>
true
,
'autocomplete'
=>
true
]),
103
new
Entity\IntegerField(
'FORUM_GROUP_ID'
),
104
new
Entity\StringField(
'LID'
, [
'size'
=> 2]),
105
new
Entity\StringField(
'NAME'
, [
'size'
=> 255]),
106
new
Entity\StringField(
'DESCRIPTION'
, [
'size'
=> 255])
107
];
108
}
109
}
Bitrix\Forum\GroupLangTable
Definition
group.php:83
Bitrix\Forum\GroupLangTable\getMap
static getMap()
Definition
group.php:99
Bitrix\Forum\GroupLangTable\getTableName
static getTableName()
Definition
group.php:89
Bitrix\Forum\GroupTable
Definition
group.php:25
Bitrix\Forum\GroupTable\getMap
static getMap()
Definition
group.php:41
Bitrix\Forum\GroupTable\getTableName
static getTableName()
Definition
group.php:31
Bitrix\Main\ORM\Entity
Definition
entity.php:26
Bitrix\Main\ORM\Fields\Relations\Reference
Definition
reference.php:26
Bitrix\Main\ORM\Query\Join
Definition
join.php:19
Bitrix\Forum
modules
forum
lib
group.php
Создано системой
1.10.0