1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
logsubscribe.php
См. документацию.
1<?php
8namespace Bitrix\Socialnetwork\Item;
9
10use Bitrix\Socialnetwork\LogSubscribeTable;
11use Bitrix\Socialnetwork\LogCommentTable;
12use Bitrix\Main\Loader;
13
15{
16 public static function sendPush($params = array())
17 {
18 if (!Loader::includeModule('pull'))
19 {
20 return false;
21 }
22
23 $logId = (isset($params['logId']) ? intval($params['logId']) : 0);
24 $commentId = (isset($params['commentId']) ? intval($params['commentId']) : 0);
25 if (
26 $logId <= 0
27 && $commentId > 0
28 )
29 {
31 'filter' => array(
32 '=ID' => $commentId
33 ),
34 'select' => array('LOG_ID')
35 ));
36 if ($logCommentFields = $res->fetch())
37 {
38 $logId = $logCommentFields['LOG_ID'];
39 }
40 }
41
42 if ($logId <= 0)
43 {
44 return false;
45 }
46
47 $res = LogSubscribeTable::getList(array(
48 'filter' => array(
49 '=LOG_ID' => $logId,
51 ),
52 'select' => array('USER_ID')
53 ));
54 while($subscribeFields = $res->fetch())
55 {
56 \Bitrix\Pull\MobileCounter::send($subscribeFields['USER_ID']);
57 }
58 }
59}
static getList(array $parameters=array())
Определения datamanager.php:431
static send($userId=null, $appId=self::MOBILE_APP)
Определения mobilecounter.php:187
static sendPush($params=array())
Определения logsubscribe.php:16
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
$res
Определения filter_act.php:7
if($inWords) echo htmlspecialcharsbx(Number2Word_Rus(roundEx($totalVatSum $params['CURRENCY']
Определения template.php:799