1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
pull_options.php
См. документацию.
1<?php
2use Bitrix\Main\Page\Asset;
4
6{
7 static $optionDefaultConfig = null;
8 static $optionDefaultModule = null;
9
10 const PROTOBUF_ENABLED = 'enable_protobuf';
11 const MAX_CHANNELS_PER_REQUEST = 'limit_max_channels_per_request';
12 const MAX_MESSAGES_PER_REQUEST = 'limit_max_messages_per_request';
13 const MAX_PAYLOAD = 'limit_max_payload';
14
15 const SERVER_MODE_SHARED = 'shared';
16 const SERVER_MODE_PERSONAL = 'personal';
17
18 public static function CheckNeedRun($bGetSectionStatus = true)
19 {
21 if (isset($arExcludeSites[SITE_ID]))
22 return false;
23
24 global $CACHE_MANAGER;
25
26 $bAdminSection = false;
27 if(defined("ADMIN_SECTION") && ADMIN_SECTION == true)
28 $bAdminSection = true;
29
30 $arResult = Array();
31 $res = $CACHE_MANAGER->Read(2592000, "pull_cnr");
32 if ($res)
33 $arResult = $CACHE_MANAGER->Get("pull_cnr");
34
35 if(!$res)
36 {
37 $arResult = Array(
38 'ADMIN_SECTION' => false,
39 'PUBLIC_SECTION' => false
40 );
41
42 $arModule = self::GetDependentModule();
43 foreach ($arModule as $moduleId => $options)
44 {
45 if (isset($options['ADMIN_SECTION']) && $options['ADMIN_SECTION'] == 'Y')
46 $arResult['ADMIN_SECTION'] = true;
47 if (isset($options['PUBLIC_SECTION']) && $options['PUBLIC_SECTION'] == 'Y')
48 $arResult['PUBLIC_SECTION'] = true;
49 }
50
51 $CACHE_MANAGER->Set("pull_cnr", $arResult);
52 }
53
54 return $bGetSectionStatus? $arResult[$bAdminSection? 'ADMIN_SECTION': 'PUBLIC_SECTION']: $arResult;
55 }
56
57 public static function ModuleEnable()
58 {
59 $arResult = self::CheckNeedRun(false);
60 return ($arResult['ADMIN_SECTION'] || $arResult['PUBLIC_SECTION'])? true: false;
61 }
62
63 public static function GetDependentModule()
64 {
65 $arModule = Array();
66 foreach(GetModuleEvents("pull", "OnGetDependentModule", true) as $arEvent)
67 {
68 $ar = ExecuteModuleEventEx($arEvent);
69 if (isset($ar['MODULE_ID']))
70 {
71 $arModule[$ar['MODULE_ID']] = Array(
72 'MODULE_ID' => $ar['MODULE_ID'],
73 'ADMIN_SECTION' => isset($ar['USE']) && in_array('ADMIN_SECTION', $ar['USE'])? true: false,
74 'PUBLIC_SECTION' => isset($ar['USE']) && in_array('PUBLIC_SECTION', $ar['USE'])? true: false,
75 );
76 }
77 }
78
79 return $arModule;
80 }
81
82 public static function GetExcludeSites()
83 {
84 $result = COption::GetOptionString("pull", "exclude_sites", "a:0:{}", self::GetDefaultOption("exclude_sites"));
85 return unserialize($result, ["allowed_classes" => false]);
86 }
87
88 public static function SetExcludeSites($sites)
89 {
90 if (!is_array($sites))
91 return false;
92
93 COption::SetOptionString("pull", "exclude_sites", serialize($sites));
94
95 return true;
96 }
97
98 /*
99 * @deprecated No longer used by internal code and not recommended. Use CPullOptions::GetQueueServerStatus()
100 */
101 public static function GetNginxStatus()
102 {
103 return self::GetQueueServerStatus();
104 }
105 public static function GetQueueServerStatus()
106 {
107 if(static::IsServerShared())
108 {
109 return \Bitrix\Pull\SharedServer\Config::isRegistered();
110 }
111 else
112 {
113 return COption::GetOptionString("pull", "nginx", self::GetDefaultOption("nginx")) == "Y";
114 }
115 }
116 public static function GetQueueServerHeaders()
117 {
118 $result = COption::GetOptionString("pull", "nginx_headers", self::GetDefaultOption("nginx_headers"));
119 return $result == 'Y' && self::GetQueueServerVersion() < 3? true: false;
120 }
121
122 /*
123 * @deprecated No longer used by internal code and not recommended. Use CPullOptions::SetQueueServerStatus()
124 */
125 public static function SetNginxStatus($flag = "N")
126 {
127 return self::SetQueueServerStatus($flag);
128 }
129 public static function SetQueueServerStatus($flag = "N")
130 {
131 $currentValue = COption::GetOptionString("pull", "nginx");
132 if($currentValue === $flag)
133 {
134 return true;
135 }
136
137 COption::SetOptionString("pull", "nginx", $flag=='Y'?'Y':'N');
138 if ($flag=='Y')
139 {
140 CAgent::AddAgent("CPullChannel::CheckOnlineChannel();", "pull", "N", 240, "", "Y", ConvertTimeStamp(time()+CTimeZone::GetOffset()+240, "FULL"));
141 }
142 else
143 {
144 CAgent::RemoveAgent("CPullChannel::CheckOnlineChannel();", "pull");
145 }
146
147 return true;
148 }
149
150 public static function SetQueueServerHeaders($flag = "Y")
151 {
152 COption::SetOptionString("pull", "nginx_headers", $flag=='Y'?'Y':'N');
153 return true;
154 }
155
160 public static function GetQueueServerMode()
161 {
162 return Option::get("pull", "server_mode");
163 }
164
168 public static function SetQueueServerMode($mode)
169 {
170 Option::set("pull", "server_mode", $mode);
171 }
172
173 public static function IsServerShared()
174 {
175 return static::GetQueueServerMode() == static::SERVER_MODE_SHARED;
176 }
177
178 public static function GetPushStatus()
179 {
180 $result = COption::GetOptionString("pull", "push", self::GetDefaultOption("push"));
181 return $result == 'N'? false: true;
182 }
183
184 public static function SetPushStatus($flag = "N")
185 {
186 COption::SetOptionString("pull", "push", $flag=='Y'?'Y':'N');
187 if ($flag == 'Y')
188 CAgent::AddAgent("CPushManager::SendAgent();", "pull", "N", 30);
189 else
190 CAgent::RemoveAgent("CPushManager::SendAgent();", "pull");
191
192 return true;
193 }
194
195 public static function SetSharedWorkerAllowed(bool $val): void
196 {
197 Option::set('pull', 'shared_worker_allowed', $val ? 'Y' : 'N') ;
198 }
199
200 public static function IsSharedWorkerAllowed(): bool
201 {
202 return Option::get('pull', 'shared_worker_allowed', 'Y') === 'Y';
203 }
204
205 public static function GetPushMessagePerHit()
206 {
207 return intval(COption::GetOptionInt("pull", "push_message_per_hit", self::GetDefaultOption("push_message_per_hit")));
208 }
209
210 public static function SetPushMessagePerHit($count)
211 {
212 COption::SetOptionInt("pull", "push_message_per_hit", intval($count));
213
214 return true;
215 }
216
217 public static function GetGuestStatus()
218 {
219 return COption::GetOptionString("pull", "guest", self::GetDefaultOption("guest")) == 'Y' && IsModuleInstalled('statistic');
220 }
221
222 public static function SetGuestStatus($flag = "N")
223 {
224 COption::SetOptionString("pull", "guest", IsModuleInstalled('statistic') && $flag=='Y'?'Y':'N');
225
226 return true;
227 }
228
229 public static function GetPublishUrl($channelId = "")
230 {
231 $url = COption::GetOptionString("pull", "path_to_publish", self::GetDefaultOption("path_to_publish"));
232 return $url;
233 }
234
235 public static function GetJsonRpcUrl()
236 {
237 $url = COption::GetOptionString("pull", "path_to_json_rpc", self::GetDefaultOption("path_to_json_rpc"));
238 return $url;
239 }
240
241 public static function SetSignatureKey($signature)
242 {
243 COption::SetOptionString("pull", "signature_key", $signature);
244
245 return true;
246 }
247
248 public static function GetSignatureKey()
249 {
250 $url = COption::GetOptionString("pull", "signature_key", self::GetDefaultOption("signature_key"));
251 return $url;
252 }
253
254 public static function GetSignatureAlgorithm()
255 {
256 $url = COption::GetOptionString("pull", "signature_algo", self::GetDefaultOption("signature_algo"));
257 return $url;
258 }
259
260 public static function SetPublishUrl($path = "")
261 {
262 if ($path == '')
263 {
264 $path = self::GetDefaultOption('path_to_publish');
265 }
266 COption::SetOptionString("pull", "path_to_publish", $path);
267 return true;
268 }
269
270 public static function SetJsonRpcUrl($path = "")
271 {
272 if ($path == '')
273 {
274 $path = self::GetDefaultOption('path_to_json_rpc');
275 }
276 COption::SetOptionString("pull", "path_to_json_rpc", $path);
277 return true;
278 }
279
280 public static function GetListenUrl($channelId = "")
281 {
282 if (!is_array($channelId) && $channelId <> '')
283 $channelId = Array($channelId);
284 else if (!is_array($channelId))
285 $channelId = Array();
286
287 $optionName = "path_to_modern_listener";
288 $url = COption::GetOptionString("pull", $optionName, self::GetDefaultOption($optionName)).(count($channelId)>0?'?CHANNEL_ID='.implode('/', $channelId):'');
289 $url = str_replace('#PORT#', self::GetQueueServerVersion()>1? '': ':8893', $url);
290
291 return $url;
292 }
293
294 public static function SetListenUrl($path = "")
295 {
296 if ($path == '')
297 {
298 $path = self::GetDefaultOption('path_to_modern_listener');
299 }
300 COption::SetOptionString("pull", 'path_to_modern_listener', $path);
301 return true;
302 }
303
304 public static function GetPublishWebEnabled()
305 {
306 return \CPullOptions::GetQueueServerVersion() > 3;
307 }
308
309 public static function GetPublishWebUrl($channelId = "")
310 {
311 if (!is_array($channelId) && $channelId <> '')
312 $channelId = Array($channelId);
313 else if (!is_array($channelId))
314 $channelId = Array();
315
316 $optionName = "path_to_publish_web";
317 $url = COption::GetOptionString("pull", $optionName, self::GetDefaultOption($optionName)).(count($channelId)>0?'?CHANNEL_ID='.implode('/', $channelId):'');
318
319 return $url;
320 }
321
322 public static function SetPublishWebUrl($path = "")
323 {
324 if ($path == '')
325 {
326 $path = self::GetDefaultOption('path_to_publish_web');
327 }
328 COption::SetOptionString("pull", 'path_to_publish_web', $path);
329
330 return true;
331 }
332
333 public static function GetPublishWebSecureUrl($channelId = "")
334 {
335 if (!is_array($channelId) && $channelId <> '')
336 $channelId = Array($channelId);
337 else if (!is_array($channelId))
338 $channelId = Array();
339
340 $optionName = "path_to_publish_web_secure";
341 $url = COption::GetOptionString("pull", $optionName, self::GetDefaultOption($optionName)).(count($channelId)>0?'?CHANNEL_ID='.implode('/', $channelId):'');
342
343 return $url;
344 }
345
346 public static function SetPublishWebSecureUrl($path = "")
347 {
348 if ($path == '')
349 {
350 $path = self::GetDefaultOption('path_to_publish_web_secure');
351 }
352 COption::SetOptionString("pull", 'path_to_publish_web_secure', $path);
353
354 return true;
355 }
356
357 public static function GetListenSecureUrl($channelId = "")
358 {
359 if (!is_array($channelId) && $channelId <> '')
360 $channelId = Array($channelId);
361 else if (!is_array($channelId))
362 $channelId = Array();
363
364 $optionName = "path_to_modern_listener_secure";
365 $url = COption::GetOptionString("pull", $optionName, self::GetDefaultOption($optionName)).(count($channelId)>0?'?CHANNEL_ID='.implode('/', $channelId):'');
366 $url = str_replace('#PORT#', self::GetQueueServerVersion()>1? '': ':8894', $url);
367
368 return $url;
369 }
370
371 public static function SetListenSecureUrl($path = "")
372 {
373 if ($path == '')
374 {
375 $path = self::GetDefaultOption('path_to_modern_listener_secure');
376 }
377 COption::SetOptionString("pull", 'path_to_modern_listener_secure', $path);
378 return true;
379 }
380
381 /*
382 * Get version of QueueServer
383 * 1 version - nginx-push-stream-module 0.3.4
384 * 2 version - nginx-push-stream-module 0.4.0
385 * 3 version - Bitrix Push & Pull server 1.0
386 * 4 version - Bitrix Push & Pull server 2.0
387 */
388 public static function GetQueueServerVersion()
389 {
390 return static::IsServerShared() ? \Bitrix\Pull\SharedServer\Config::getServerVersion() : intval(COption::GetOptionInt("pull", "nginx_version", self::GetDefaultOption("nginx_version")));
391 }
392
393 public static function SetQueueServerVersion($version)
394 {
395 COption::SetOptionInt("pull", "nginx_version", intval($version));
396
397 return true;
398 }
399
400 public static function GetCommandPerHit()
401 {
402 return intval(COption::GetOptionInt("pull", "nginx_command_per_hit", self::GetDefaultOption("nginx_command_per_hit")));
403 }
404
405 public static function SetCommandPerHit($count)
406 {
407 COption::SetOptionInt("pull", "nginx_command_per_hit", intval($count));
408
409 return true;
410 }
411
412 public static function GetWebSocketStatus()
413 {
414 return self::GetWebSocket() && self::GetQueueServerVersion()>1? true: false;
415 }
416
417 public static function GetWebSocket()
418 {
419 $result = false;
420
421 if (
423 || COption::GetOptionString("pull", "websocket", self::GetDefaultOption("websocket")) == 'Y'
424 )
425 {
426 $result = true;
427 }
428
429 return $result;
430 }
431
432 public static function SetWebSocket($flag = "N")
433 {
434 COption::SetOptionString("pull", "websocket", $flag=='Y'?'Y':'N');
435 return true;
436 }
437
438 public static function GetWebSocketUrl($channelId = "")
439 {
440 if (!is_array($channelId) && $channelId <> '')
441 $channelId = Array($channelId);
442 else if (!is_array($channelId))
443 $channelId = Array();
444
445 $url = COption::GetOptionString("pull", "path_to_websocket", self::GetDefaultOption("path_to_websocket")).(count($channelId)>0?'?CHANNEL_ID='.implode('/', $channelId):'');
446 return $url;
447 }
448
449 public static function SetWebSocketUrl($path = "")
450 {
451 if ($path == '')
452 {
453 $path = self::GetDefaultOption('path_to_websocket');
454 }
455
456 COption::SetOptionString("pull", "path_to_websocket", $path);
457 return true;
458 }
459
460 public static function GetWebSocketSecureUrl($channelId = "")
461 {
462 if (!is_array($channelId) && $channelId <> '')
463 $channelId = Array($channelId);
464 else if (!is_array($channelId))
465 $channelId = Array();
466
467 $url = COption::GetOptionString("pull", "path_to_websocket_secure", self::GetDefaultOption("path_to_websocket_secure")).(count($channelId)>0?'?CHANNEL_ID='.implode('/', $channelId):'');
468 return $url;
469 }
470
471 public static function SetWebSocketSecureUrl($path = "")
472 {
473 if ($path == '')
474 {
475 $path = self::GetDefaultOption('path_to_websocket_secure');
476 }
477
478 COption::SetOptionString("pull", "path_to_websocket_secure", $path);
479 return true;
480 }
481
482 public static function SetConfigTimestamp($timestamp = 0)
483 {
484 if(!$timestamp)
485 {
486 $timestamp = time();
487 }
488 COption::SetOptionInt("pull", "config_timestamp", $timestamp);
489 }
490
491 public static function GetConfigTimestamp()
492 {
493 return COption::GetOptionInt("pull", "config_timestamp", self::GetDefaultOption("config_timestamp"));
494 }
495
496 public static function GetConfigTtl(): int
497 {
498 // TODO: remove after B24 has switched to push-go
499 if (IsModuleInstalled('bitrix24'))
500 {
501 return 86400;
502 }
503
504 return (int)COption::GetOptionInt("pull", "config_ttl", self::GetDefaultOption("config_ttl"));
505 }
506
507 public static function GetMaxPayload()
508 {
509 $maxPayload = (int)Option::get('pull', static::MAX_PAYLOAD);
510 if(!$maxPayload === 0)
511 {
512 $maxPayload = static::GetDefaultOption(static::MAX_PAYLOAD);
513 }
514 return $maxPayload;
515 }
516
517 public static function GetMaxChannelsPerRequest()
518 {
519 $maxChannelsPerRequest = (int)Option::get('pull', static::MAX_CHANNELS_PER_REQUEST);
520 if(!$maxChannelsPerRequest === 0)
521 {
522 $maxChannelsPerRequest = static::GetDefaultOption(static::MAX_CHANNELS_PER_REQUEST);
523 }
524 return $maxChannelsPerRequest;
525 }
526
527 public static function GetMaxMessagesPerRequest()
528 {
529 $maxMessagesPerRequest = (int)Option::get('pull', static::MAX_MESSAGES_PER_REQUEST);
530 if(!$maxMessagesPerRequest === 0)
531 {
532 $maxMessagesPerRequest = static::GetDefaultOption(static::MAX_MESSAGES_PER_REQUEST);
533 }
534 return $maxMessagesPerRequest;
535 }
536
537 public static function IsProtobufSupported()
538 {
539 // google's protobuf library requires php x64 or bc_math extension.
540 return (PHP_INT_SIZE >= 8 || function_exists('bcadd'));
541 }
542
543 public static function IsProtobufEnabled()
544 {
545 return (Option::get('pull', static::PROTOBUF_ENABLED) === 'Y');
546 }
547
548 /* UTILITY */
549
550 public static function SendConfigDie()
551 {
552 $arMessage = Array(
553 'module_id' => 'pull',
554 'command' => 'config_expire',
555 'params' => Array()
556 );
557 CPullStack::AddShared($arMessage);
558 try
559 {
561 }
562 catch(Throwable $e)
563 {
564 // ignore exception
565 }
566 }
567
568 public static function GetDefaultOption($optionName)
569 {
570 if (is_null(self::$optionDefaultConfig))
571 {
573 self::$optionDefaultConfig = is_null($config) ? Array() : $config;
574 }
575
576 if (is_null(self::$optionDefaultModule))
577 {
578 include($_SERVER['DOCUMENT_ROOT'].BX_ROOT.'/modules/pull/default_option.php');
579 self::$optionDefaultModule = $pull_default_option;
580 }
581
582 if (array_key_exists($optionName, self::$optionDefaultConfig))
583 {
584 return self::$optionDefaultConfig[$optionName];
585 }
586
587 return array_key_exists($optionName, self::$optionDefaultModule)? self::$optionDefaultModule[$optionName]: null;
588 }
589
590 public static function ClearCheckCache()
591 {
592 // init module cache
593 $CModule = new CModule();
594 $CModule->IsInstalled();
595
596 CAgent::RemoveAgent("CPullOptions::ClearAgent();", "pull");
597 CAgent::AddAgent("CPullOptions::ClearAgent();", "pull", "N", 30, "", "Y", ConvertTimeStamp(time()+CTimeZone::GetOffset()+30, "FULL"));
598 }
599
600 public static function ClearAgent()
601 {
602 global $CACHE_MANAGER;
603 $CACHE_MANAGER->Clean("pull_cnr");
604
605 if (self::ModuleEnable())
606 {
607 CAgent::AddAgent("CPullChannel::CheckOnlineChannel();", "pull", "N", 240, "", "Y", ConvertTimeStamp(time()+CTimeZone::GetOffset()+100, "FULL"));
608 CAgent::AddAgent("CPullChannel::CheckExpireAgent();", "pull", "N", 43200, "", "Y", ConvertTimeStamp(time()+CTimeZone::GetOffset() + 43200, "FULL"));
609 CAgent::AddAgent("CPullWatch::CheckExpireAgent();", "pull", "N", 600, "", "Y", ConvertTimeStamp(time()+CTimeZone::GetOffset() + 600, "FULL"));
610 }
611 else
612 {
613 CAgent::RemoveAgent("CPullChannel::CheckOnlineChannel();", "pull");
614 CAgent::RemoveAgent("CPullChannel::CheckExpireAgent();", "pull");
615 CAgent::RemoveAgent("CPullWatch::CheckExpireAgent();", "pull");
616 CAgent::RemoveAgent("CPushManager::SendAgent();", "pull");
617 }
618 }
619
620 public static function OnProlog()
621 {
623 }
624
625 public static function OnEpilog()
626 {
627 $userId = 0;
628 if (defined('PULL_USER_ID'))
629 {
630 $userId = PULL_USER_ID;
631 }
632 else if (is_object($GLOBALS['USER']) && intval($GLOBALS['USER']->GetID()) > 0)
633 {
634 $userId = intval($GLOBALS['USER']->GetID());
635 }
636 else if (IsModuleInstalled('statistic') && intval($_SESSION["SESS_SEARCHER_ID"] ?? 0) <= 0 && intval($_SESSION["SESS_GUEST_ID"] ?? 0) > 0 && COption::GetOptionString("pull", "guest", self::GetDefaultOption("guest")) == 'Y')
637 {
638 $userId = intval($_SESSION["SESS_GUEST_ID"])*-1;
639 }
640
641 if (!defined('BX_PULL_SKIP_INIT') && !(isset($_REQUEST['AJAX_CALL']) && $_REQUEST['AJAX_CALL'] == 'Y') && $userId != 0 && CModule::IncludeModule('pull'))
642 {
643 define("BX_PULL_SKIP_INIT", true);
644
646 {
647 Asset::getInstance()->addString('<script>BX.bind(window, "load", function(){BX.PULL.start();});</script>');
648 }
649 }
650 }
651}
$path
Определения access_edit.php:21
$count
Определения admin_tab.php:4
const BX_ROOT
Определения bx_root.php:3
if(empty( $fields)) foreach($fields as $field) $channelId
Определения push.php:23
$arResult
Определения generate_coupon.php:16
if(!is_object($USER)||! $USER->IsAuthorized()) $userId
Определения check_mail.php:18
static getValue($name)
Определения configuration.php:24
static load($extNames)
Определения extension.php:16
static send()
Определения event.php:387
static getServerVersion()
Определения config.php:23
Определения module.php:15
Определения pull_options.php:6
static GetWebSocketUrl($channelId="")
Определения pull_options.php:438
static GetMaxPayload()
Определения pull_options.php:507
static OnProlog()
Определения pull_options.php:620
static SetSignatureKey($signature)
Определения pull_options.php:241
static SetPushStatus($flag="N")
Определения pull_options.php:184
static SetSharedWorkerAllowed(bool $val)
Определения pull_options.php:195
static ClearCheckCache()
Определения pull_options.php:590
static GetCommandPerHit()
Определения pull_options.php:400
static SetQueueServerHeaders($flag="Y")
Определения pull_options.php:150
static SetExcludeSites($sites)
Определения pull_options.php:88
static SetCommandPerHit($count)
Определения pull_options.php:405
const MAX_CHANNELS_PER_REQUEST
Определения pull_options.php:11
const SERVER_MODE_SHARED
Определения pull_options.php:15
static SetConfigTimestamp($timestamp=0)
Определения pull_options.php:482
static GetWebSocketSecureUrl($channelId="")
Определения pull_options.php:460
static GetNginxStatus()
Определения pull_options.php:101
static SetPublishWebSecureUrl($path="")
Определения pull_options.php:346
static OnEpilog()
Определения pull_options.php:625
static GetDependentModule()
Определения pull_options.php:63
static GetPublishUrl($channelId="")
Определения pull_options.php:229
static GetMaxMessagesPerRequest()
Определения pull_options.php:527
static SetQueueServerStatus($flag="N")
Определения pull_options.php:129
static IsServerShared()
Определения pull_options.php:173
static GetPublishWebUrl($channelId="")
Определения pull_options.php:309
static IsProtobufSupported()
Определения pull_options.php:537
static GetWebSocket()
Определения pull_options.php:417
static SetGuestStatus($flag="N")
Определения pull_options.php:222
static IsSharedWorkerAllowed()
Определения pull_options.php:200
static GetQueueServerVersion()
Определения pull_options.php:388
static SetWebSocket($flag="N")
Определения pull_options.php:432
static GetQueueServerStatus()
Определения pull_options.php:105
static $optionDefaultConfig
Определения pull_options.php:7
static GetSignatureAlgorithm()
Определения pull_options.php:254
static GetQueueServerMode()
Определения pull_options.php:160
static GetPushStatus()
Определения pull_options.php:178
static $optionDefaultModule
Определения pull_options.php:8
static SetQueueServerMode($mode)
Определения pull_options.php:168
static SetListenSecureUrl($path="")
Определения pull_options.php:371
static SetPublishWebUrl($path="")
Определения pull_options.php:322
static IsProtobufEnabled()
Определения pull_options.php:543
static SendConfigDie()
Определения pull_options.php:550
static GetListenUrl($channelId="")
Определения pull_options.php:280
static GetJsonRpcUrl()
Определения pull_options.php:235
static GetPublishWebSecureUrl($channelId="")
Определения pull_options.php:333
static SetJsonRpcUrl($path="")
Определения pull_options.php:270
static GetPublishWebEnabled()
Определения pull_options.php:304
static SetWebSocketSecureUrl($path="")
Определения pull_options.php:471
static GetGuestStatus()
Определения pull_options.php:217
static ModuleEnable()
Определения pull_options.php:57
static GetWebSocketStatus()
Определения pull_options.php:412
static GetDefaultOption($optionName)
Определения pull_options.php:568
static GetExcludeSites()
Определения pull_options.php:82
static SetPublishUrl($path="")
Определения pull_options.php:260
static GetSignatureKey()
Определения pull_options.php:248
static SetWebSocketUrl($path="")
Определения pull_options.php:449
static CheckNeedRun($bGetSectionStatus=true)
Определения pull_options.php:18
static GetPushMessagePerHit()
Определения pull_options.php:205
static GetMaxChannelsPerRequest()
Определения pull_options.php:517
static GetListenSecureUrl($channelId="")
Определения pull_options.php:357
const SERVER_MODE_PERSONAL
Определения pull_options.php:16
const MAX_PAYLOAD
Определения pull_options.php:13
static ClearAgent()
Определения pull_options.php:600
static SetPushMessagePerHit($count)
Определения pull_options.php:210
static GetConfigTtl()
Определения pull_options.php:496
const MAX_MESSAGES_PER_REQUEST
Определения pull_options.php:12
static SetNginxStatus($flag="N")
Определения pull_options.php:125
static SetListenUrl($path="")
Определения pull_options.php:294
const PROTOBUF_ENABLED
Определения pull_options.php:10
static SetQueueServerVersion($version)
Определения pull_options.php:393
static GetConfigTimestamp()
Определения pull_options.php:491
static GetQueueServerHeaders()
Определения pull_options.php:116
$sites
Определения clear_component_cache.php:15
global $CACHE_MANAGER
Определения clear_component_cache.php:7
$options
Определения commerceml2.php:49
$res
Определения filter_act.php:7
$_REQUEST["admin_mnu_menu_id"]
Определения get_menu.php:8
$result
Определения get_property_values.php:14
$moduleId
$_SERVER["DOCUMENT_ROOT"]
Определения cron_frame.php:9
ExecuteModuleEventEx($arEvent, $arParams=[])
Определения tools.php:5214
IsModuleInstalled($module_id)
Определения tools.php:5301
GetModuleEvents($MODULE_ID, $MESSAGE_ID, $bReturnArray=false)
Определения tools.php:5177
if(file_exists($_SERVER["DOCUMENT_ROOT"]."/bitrix/php_interface/pull.php")) $pull_default_option
Определения default_option.php:54
$ar
Определения options.php:199
while($site=$dbSites->Fetch()) $arExcludeSites
Определения options.php:213
$config
Определения quickway.php:69
const ADMIN_SECTION
Определения rss.php:2
$val
Определения options.php:1793
$optionName
Определения options.php:1735
const SITE_ID
Определения sonet_set_content_view.php:12
$GLOBALS['_____370096793']
Определения update_client.php:1
$url
Определения iframe.php:7