Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
subscribe.php
1<?php
2namespace Bitrix\Forum;
3
7
41class SubscribeTable extends Entity\DataManager
42{
48 public static function getTableName()
49 {
50 return 'b_forum_subscribe';
51 }
52
58 public static function getMap()
59 {
60 return [
61 new Entity\IntegerField('ID', ['primary' => true, 'autocomplete' => true]),
62 new Entity\IntegerField('USER_ID'),
63 new Entity\IntegerField('FORUM_ID'),
64 new Entity\IntegerField('TOPIC_ID'),
65 new Entity\DatetimeField('START_DATE'),
66 new Entity\IntegerField('LAST_SEND'),
67 new Entity\EnumField('NEW_TOPIC_ONLY', ['values' => ['Y', 'N'], 'default_value' => 'N']),
68 new Entity\StringField('SITE_ID', ['size' => 2, 'default_value' => 'ru']),
69 new Entity\IntegerField('SOCNET_GROUP_ID'),
70 new Reference("USER", \Bitrix\Main\UserTable::class, Join::on("this.USER_ID", "ref.ID")),
71 new Reference("FORUM_USER", \Bitrix\Forum\UserTable::class, Join::on("this.USER_ID", "ref.USER_ID")),
72 ];
73 }
74}