Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
forumstat.php
1<?php
2namespace Bitrix\Forum;
3
7
8
25class ForumStatTable extends Entity\DataManager
26{
27 public static function getTableName()
28 {
29 return 'b_forum_stat';
30 }
31
32 public static function getMap()
33 {
34 return [
35 new Entity\IntegerField('ID', ['primary' => true, 'autocomplete' => true]),
36 new Entity\IntegerField('USER_ID'),
37 new Entity\StringField('IP_ADDRESS', ['size' => 128]),
38 new Entity\StringField('PHPSESSID', ['size' => 255]),
39 new Entity\DatetimeField('LAST_VISIT'),
40 new Entity\StringField('SITE_ID', ['size' => 2]),
41 new Entity\IntegerField('FORUM_ID'),
42 new Entity\IntegerField('TOPIC_ID'),
43 new Entity\EnumField('SHOW_NAME', ['values' => ['Y', 'N'], 'default_value' => 'N']),
44 new Reference('USER', \Bitrix\Main\UserTable::class, Join::on('this.USER_ID', 'ref.ID')),
45 new Reference('FORUM_USER', \Bitrix\Forum\UserTable::class, Join::on('this.USER_ID', 'ref.USER_ID')),
46 ];
47 }
48}