Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
ratingvote.php
1
<?php
8
namespace
Bitrix\Socialnetwork\Integration\Main
;
9
10
use
Bitrix\Socialnetwork\Livefeed\Provider
;
11
use
Bitrix\Main\Event
;
12
use
Bitrix\Main\EventResult
;
13
use
Bitrix\Socialnetwork\LogCommentTable
;
14
15
class
RatingVote
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
}
Bitrix\Main\Event
Definition
event.php:5
Bitrix\Main\EventResult
Definition
eventresult.php:5
Bitrix\Main\ORM\Data\DataManager\getList
static getList(array $parameters=array())
Definition
datamanager.php:441
Bitrix\Socialnetwork\Integration\Main\RatingVote
Definition
ratingvote.php:16
Bitrix\Socialnetwork\Integration\Main\RatingVote\onGetRatingContentOwner
static onGetRatingContentOwner($params)
Definition
ratingvote.php:17
Bitrix\Socialnetwork\Livefeed\Provider
Definition
provider.php:22
Bitrix\Socialnetwork\LogCommentTable
Definition
logcomment.php:30
Bitrix\Socialnetwork\Integration\Main
Definition
file.php:3
modules
socialnetwork
lib
integration
main
ratingvote.php
Создано системой
1.10.0