Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
results.php
1
<?
2
namespace
Bitrix\Main\Rating
;
3
4
use
Bitrix\Main
;
5
use
Bitrix\Main\Localization\Loc
;
6
use
Bitrix\Main\NotImplementedException
;
7
8
Loc::loadMessages
(__FILE__);
9
41
class
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
}
Bitrix\Main\Localization\Loc
Definition
loc.php:11
Bitrix\Main\Localization\Loc\loadMessages
static loadMessages($file)
Definition
loc.php:64
Bitrix\Main\Localization\Loc\getMessage
static getMessage($code, $replace=null, $language=null)
Definition
loc.php:29
Bitrix\Main\NotImplementedException
Definition
exception.php:147
Bitrix\Main\Rating\ResultsTable
Definition
results.php:42
Bitrix\Main\Rating\ResultsTable\getMap
static getMap()
Definition
results.php:58
Bitrix\Main\Rating\ResultsTable\add
static add(array $data)
Definition
results.php:99
Bitrix\Main\Rating\ResultsTable\update
static update($primary, array $data)
Definition
results.php:104
Bitrix\Main\Rating\ResultsTable\getTableName
static getTableName()
Definition
results.php:48
Bitrix\Main\Rating
Bitrix\Main
modules
main
lib
rating
results.php
Создано системой
1.10.0