Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
ratingvote.php
1<?php
9
14
16{
17 public static function onGetRatingContentOwner($params)
18 {
19 if(intval($params['ENTITY_ID']) && $params['ENTITY_TYPE_ID'] == 'LOG_COMMENT')
20 {
21 $res = LogCommentTable::getList(array(
22 'filter' => array(
23 'ID' => $params['ENTITY_ID']
24 ),
25 'select' => array('USER_ID')
26 ));
27 if (
28 ($logCommentFields = $res->fetch())
29 && intval($logCommentFields['USER_ID']) > 0
30 )
31 {
32 return intval($logCommentFields['USER_ID']);
33 }
34 }
35
36 return false;
37 }
38}
static getList(array $parameters=array())