1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
config.php
См. документацию.
1<?php
2
3namespace Bitrix\Pull\Controller;
4use \Bitrix\Main\Error;
5
7{
8 public function getAction($cache = true, $reopen = false)
9 {
11 'CACHE' => $cache,
12 'REOPEN' => $reopen,
13 'JSON' => true
14 ]);
15
16 if (!$config)
17 {
18 $this->errorCollection[] = new Error("Push & Pull server is not configured", "SERVER_ERROR");
19 return null;
20 }
21
22 return $config;
23 }
24
25 public function getWithChannelId(string $channelId, string $channelPublicId = '')
26 {
28 'CHANNEL_ID' => $channelId,
29 'CHANNEL_PUBLIC_ID' => $channelPublicId,
30 'JSON' => true
31 ]);
32
33 if (!$config)
34 {
35 $this->errorCollection[] = new Error("Push & Pull server is not configured", "SERVER_ERROR");
36 return null;
37 }
38
39 return $config;
40 }
41
42 public function extendWatchAction(array $tags)
43 {
44 $currentUserId = $this->getCurrentUser()->getId();
45
46 return \CPullWatch::Extend($currentUserId, $tags);
47 }
48}
if(empty( $fields)) foreach($fields as $field) $channelId
Определения push.php:23
Определения error.php:15
static get(array $params=[])
Определения config.php:14
getAction($cache=true, $reopen=false)
Определения config.php:8
extendWatchAction(array $tags)
Определения config.php:42
getWithChannelId(string $channelId, string $channelPublicId='')
Определения config.php:25
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
$config
Определения quickway.php:69