1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
ratingvotelist.php
См. документацию.
1<?php
2
3namespace Bitrix\Socialnetwork\Livefeed;
4
5use Bitrix\Main\Loader;
6
7final class RatingVoteList extends Provider
8{
9 public const PROVIDER_ID = 'RATING_LIST';
10 public const CONTENT_TYPE_ID = 'RATING_LIST';
11
12 public static function getId(): string
13 {
14 return static::PROVIDER_ID;
15 }
16
17 public function getEventId(): array
18 {
19 return [];
20 }
21
22 public function getType(): string
23 {
25 }
26
27 public function setContentView($params = array())
28 {
29 global $USER;
30
31 if (!is_array($params))
32 {
33 $params = [];
34 }
35
36 $userId = (isset($params['user_id']) && (int)$params["user_id"] > 0 ? (int)$params['user_id'] : $USER->getId());
37 $contentEntityId = $this->getEntityId();
38
39 [ $ratingVoteTypeId, $ratingVoteEntityId ] = explode('|', $contentEntityId);
40 if (
41 empty($ratingVoteTypeId)
42 || empty($ratingVoteEntityId)
43 || !Loader::includeModule('im')
44 )
45 {
46 return false;
47 }
48
49 $CIMNotify = new \CIMNotify();
50 $CIMNotify->markNotifyReadBySubTag([
51 'RATING|' . $ratingVoteTypeId . '|' . $ratingVoteEntityId . '|' . $userId,
52 ]);
53
54 return [
55 'success' => true,
56 'savedInDB' => false
57 ];
58 }
59}
if(!is_object($USER)||! $USER->IsAuthorized()) $userId
Определения check_mail.php:18
setContentView($params=array())
Определения ratingvotelist.php:27
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
global $USER
Определения csv_new_run.php:40
return false
Определения prolog_main_admin.php:185
if($inWords) echo htmlspecialcharsbx(Number2Word_Rus(roundEx($totalVatSum $params['CURRENCY']
Определения template.php:799