Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
rating.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
45
class
RatingTable
extends
Main\Entity\DataManager
46
{
52
public
static
function
getTableName
()
53
{
54
return
'b_rating'
;
55
}
56
62
public
static
function
getMap
()
63
{
64
return
array(
65
'ID'
=> array(
66
'data_type'
=>
'integer'
,
67
'primary'
=>
true
,
68
'autocomplete'
=>
true
,
69
),
70
'ACTIVE'
=> array(
71
'data_type'
=>
'string'
,
72
'required'
=>
true
,
73
'validation'
=> array(__CLASS__,
'validateActive'
),
74
),
75
'NAME'
=> array(
76
'data_type'
=>
'string'
,
77
'required'
=>
true
,
78
'validation'
=> array(__CLASS__,
'validateName'
),
79
),
80
'ENTITY_ID'
=> array(
81
'data_type'
=>
'string'
,
82
'required'
=>
true
,
83
'validation'
=> array(__CLASS__,
'validateEntityId'
),
84
),
85
'CALCULATION_METHOD'
=> array(
86
'data_type'
=>
'string'
,
87
'required'
=>
true
,
88
'validation'
=> array(__CLASS__,
'validateCalculationMethod'
),
89
),
90
'CREATED'
=> array(
91
'data_type'
=>
'datetime'
,
92
),
93
'LAST_MODIFIED'
=> array(
94
'data_type'
=>
'datetime'
,
95
),
96
'LAST_CALCULATED'
=> array(
97
'data_type'
=>
'datetime'
,
98
),
99
'POSITION'
=> array(
100
'data_type'
=>
'boolean'
,
101
'values'
=> array(
'N'
,
'Y'
),
102
),
103
'AUTHORITY'
=> array(
104
'data_type'
=>
'boolean'
,
105
'values'
=> array(
'N'
,
'Y'
),
106
),
107
'CALCULATED'
=> array(
108
'data_type'
=>
'boolean'
,
109
'values'
=> array(
'N'
,
'Y'
),
110
),
111
'CONFIGS'
=> array(
112
'data_type'
=>
'text'
,
113
),
114
);
115
}
116
117
public
static
function
add
(array $data)
118
{
119
throw
new
NotImplementedException
(
"Use CRatings class."
);
120
}
121
122
public
static
function
update
($primary, array $data)
123
{
124
throw
new
NotImplementedException
(
"Use CRatings class."
);
125
}
126
127
public
static
function
delete
($primary)
128
{
129
throw
new
NotImplementedException
(
"Use CRatings class."
);
130
}
131
}
Bitrix\Main\Localization\Loc
Definition
loc.php:11
Bitrix\Main\Localization\Loc\loadMessages
static loadMessages($file)
Definition
loc.php:64
Bitrix\Main\NotImplementedException
Definition
exception.php:147
Bitrix\Main\Rating\RatingTable
Definition
rating.php:46
Bitrix\Main\Rating\RatingTable\getMap
static getMap()
Definition
rating.php:62
Bitrix\Main\Rating\RatingTable\add
static add(array $data)
Definition
rating.php:117
Bitrix\Main\Rating\RatingTable\update
static update($primary, array $data)
Definition
rating.php:122
Bitrix\Main\Rating\RatingTable\getTableName
static getTableName()
Definition
rating.php:52
Bitrix\Main\Rating
Bitrix\Main
modules
main
lib
rating
rating.php
Создано системой
1.10.0