Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
widget.php
1<?php
2
4
5use Bitrix\Main\Entity\BooleanField;
6use Bitrix\Main\Entity\IntegerField;
7use Bitrix\Main\Entity\DateField;
8use Bitrix\Main\Entity\ReferenceField;
9use Bitrix\Main\Entity\StringField;
10
29{
35 public static function getTableName()
36 {
37 return 'b_report_visual_report_widget';
38 }
39
46 public static function getMap()
47 {
48 return array(
49 new IntegerField('ID', array(
50 'primary' => true,
51 'autocomplete' => true,
52 )),
53 new StringField('GID'),
54 new StringField('BOARD_ID'),
55 new IntegerField('DASHBOARD_ROW_ID'),
56 new IntegerField('PARENT_WIDGET_ID'),
57 new StringField('WEIGHT'),
58 new StringField('CATEGORY_KEY'),
59 new StringField('VIEW_KEY'),
60 new IntegerField('OWNER_ID'),
61 new StringField('WIDGET_CLASS'),
62 new DateField('CREATED_DATE'),
63 new DateField('UPDATED_DATE'),
64 new BooleanField('IS_PATTERN'),
65 new ReferenceField(
66 'ROW',
67 'Bitrix\Report\VisualConstructor\Internal\DashboardRowTable',
68 array('=this.DASHBOARD_ROW_ID' => 'ref.ID')
69 ),
70 new ReferenceField(
71 'PARENTWIDGET',
72 'Bitrix\Report\VisualConstructor\Internal\WidgetTable',
73 array('=this.PARENT_WIDGET_ID' => 'ref.ID')
74 )
75 );
76 }
77}