Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
group.php
1<?php
2namespace Bitrix\Forum;
3
7
24class 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
82class 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}
static getTableName()
Definition group.php:31