Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
forumsite.php
1<?php
2namespace Bitrix\Forum;
3
6
7Loc::loadMessages(__FILE__);
8
36class ForumSiteTable extends \Bitrix\Main\Entity\DataManager
37{
43 public static function getTableName()
44 {
45 return 'b_forum2site';
46 }
47
53 public static function getMap()
54 {
55 return array(
56 'FORUM_ID' => array(
57 'data_type' => 'integer',
58 'primary' => true,
59 'title' => Loc::getMessage('FORUM_SITE_TABLE_FIELD_FORUM_ID'),
60 ),
61 'SITE_ID' => array(
62 'data_type' => 'string',
63 'primary' => true,
64 'size' => 2,
65 'title' => Loc::getMessage('FORUM_SITE_TABLE_FIELD_SITE_ID'),
66 ),
67 'PATH2FORUM_MESSAGE' => array(
68 'data_type' => 'string',
69 'title' => Loc::getMessage('FORUM_SITE_TABLE_FIELD_SITE_ID'),
70 ),
71 'FORUM' => array(
72 'data_type' => 'Bitrix\Forum\Forum',
73 'reference' => array('=this.FORUM_ID' => 'ref.ID')
74 ),
75 'SITE' => array(
76 'data_type' => 'Bitrix\Main\Site',
77 'reference' => array('=this.SITE_ID' => 'ref.LID'),
78 ),
79 );
80 }
81}
static loadMessages($file)
Definition loc.php:64
static getMessage($code, $replace=null, $language=null)
Definition loc.php:29