1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
ratingvotelist.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
14
class
RatingVoteList
15
{
16
public
static
function
onViewed
(
Event
$event
)
17
{
18
$result
=
new
EventResult
(
19
EventResult::UNDEFINED,
20
array
(),
21
'socialnetwork'
22
);
23
24
$entityTypeId =
$event
->getParameter(
'entityTypeId'
);
25
$entityId
=
$event
->getParameter(
'entityId'
);
26
$userId
=
$event
->getParameter(
'userId'
);
27
28
if
(
29
empty($entityTypeId)
30
|| intval(
$entityId
) <= 0
31
|| intval(
$userId
) <= 0
32
)
33
{
34
return
$result
;
35
}
36
37
if
($liveFeedEntity = Provider::init(
array
(
38
'ENTITY_TYPE'
=> Provider::DATA_ENTITY_TYPE_RATING_LIST,
39
'ENTITY_ID'
=> $entityTypeId.
'|'
.
$entityId
40
)))
41
{
42
$liveFeedEntity->setContentView(
array
(
43
"user_id"
=>
$userId
44
));
45
}
46
47
$result
=
new
EventResult
(
48
EventResult::SUCCESS,
49
array
(),
50
'socialnetwork'
51
);
52
53
return
$result
;
54
}
55
}
56
?>
$userId
if(!is_object($USER)||! $USER->IsAuthorized()) $userId
Определения
check_mail.php:18
Bitrix\Main\Event
Определения
event.php:5
Bitrix\Main\EventResult
Определения
eventresult.php:5
Bitrix\Socialnetwork\Integration\Main\RatingVoteList
Определения
ratingvotelist.php:15
Bitrix\Socialnetwork\Integration\Main\RatingVoteList\onViewed
static onViewed(Event $event)
Определения
ratingvotelist.php:16
array
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения
file_new.php:804
$result
$result
Определения
get_property_values.php:14
$entityId
$entityId
Определения
payment.php:4
$event
$event
Определения
prolog_after.php:141
bitrix
modules
socialnetwork
lib
integration
main
ratingvotelist.php
Создано системой
1.14.0