1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
ratingvote.php
См. документацию.
1
<?php
8
namespace
Bitrix\Lists\Integration\Main
;
9
10
use
Bitrix\Main\Loader
;
11
use
Bitrix\Socialnetwork\LogTable
;
12
13
class
RatingVote
14
{
15
public
static
function
onGetRatingContentOwner
(
$params
)
16
{
17
if
(
18
intval(
$params
[
'ENTITY_ID'
])
19
&&
$params
[
'ENTITY_TYPE_ID'
] ==
'LISTS_NEW_ELEMENT'
20
&& Loader::includeModule(
'socialnetwork'
)
21
)
22
{
23
$res
= LogTable::getList(
array
(
24
'filter'
=>
array
(
25
'=SOURCE_ID'
=>
$params
[
'ENTITY_ID'
],
26
'EVENT_ID'
=>
'lists_new_element'
27
),
28
'select'
=>
array
(
'USER_ID'
)
29
));
30
if
(
31
($logFields =
$res
->fetch())
32
&& intval($logFields[
'USER_ID'
]) > 0
33
)
34
{
35
return
intval($logFields[
'USER_ID'
]);
36
}
37
}
38
39
return
false
;
40
}
41
42
}
43
?>
Bitrix\Lists\Integration\Main\RatingVote
Определения
ratingvote.php:14
Bitrix\Lists\Integration\Main\RatingVote\onGetRatingContentOwner
static onGetRatingContentOwner($params)
Определения
ratingvote.php:15
Bitrix\Main\Loader
Определения
loader.php:13
Bitrix\Socialnetwork\LogTable
Определения
log.php:36
array
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения
file_new.php:804
$res
$res
Определения
filter_act.php:7
Bitrix\Lists\Integration\Main
Определения
ratingvote.php:8
$params
if($inWords) echo htmlspecialcharsbx(Number2Word_Rus(roundEx($totalVatSum $params['CURRENCY']
Определения
template.php:799
bitrix
modules
lists
lib
integration
main
ratingvote.php
Создано системой
1.14.0