Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
results.php
1<?
2namespace Bitrix\Main\Rating;
3
7
8Loc::loadMessages(__FILE__);
9
41class ResultsTable extends Main\Entity\DataManager
42{
48 public static function getTableName()
49 {
50 return 'b_rating_results';
51 }
52
58 public static function getMap()
59 {
60 return array(
61 'ID' => array(
62 'data_type' => 'integer',
63 'primary' => true,
64 'autocomplete' => true,
65 'title' => Loc::getMessage('RESULTS_ENTITY_ID_FIELD'),
66 ),
67 'RATING_ID' => array(
68 'data_type' => 'integer',
69 'required' => true,
70 ),
71 'ENTITY_TYPE_ID' => array(
72 'data_type' => 'string',
73 'required' => true,
74 'validation' => array(__CLASS__, 'validateEntityTypeId'),
75 ),
76 'ENTITY_ID' => array(
77 'data_type' => 'integer',
78 'required' => true,
79 ),
80 'CURRENT_VALUE' => array(
81 'data_type' => 'float',
82 ),
83 'PREVIOUS_VALUE' => array(
84 'data_type' => 'float',
85 ),
86 'CURRENT_POSITION' => array(
87 'data_type' => 'integer',
88 ),
89 'PREVIOUS_POSITION' => array(
90 'data_type' => 'integer',
91 ),
92 'RATING' => array(
93 'data_type' => RatingTable::class,
94 'reference' => array('=this.RATING_ID' => 'ref.ID'),
95 ),
96 );
97 }
98
99 public static function add(array $data)
100 {
101 throw new NotImplementedException("Use CRatings class.");
102 }
103
104 public static function update($primary, array $data)
105 {
106 throw new NotImplementedException("Use CRatings class.");
107 }
108
109 public static function delete($primary)
110 {
111 throw new NotImplementedException("Use CRatings class.");
112 }
113}
static loadMessages($file)
Definition loc.php:64
static getMessage($code, $replace=null, $language=null)
Definition loc.php:29
static add(array $data)
Definition results.php:99
static update($primary, array $data)
Definition results.php:104