27 if (!\CPullOptions::GetQueueServerStatus() || \CPullOptions::GetQueueServerVersion() < 4)
32 $returnJson = $params[
'JSON']?
true:
false;
37 foreach ($users as $userId)
39 $userId = intval($userId);
42 $userList[$userId] = $userId;
48 if ($users == self::USER_SELF)
51 $userId = $USER->GetID();
55 $userId = intval($users);
61 $userList[] = $userId;
65 foreach ($userList as $userId)
67 $privateChannel = \CPullChannel::Get($userId,
true,
false, $type);
69 $config[$userId] = Array(
70 'USER_ID' => (
int)$userId,
71 'PUBLIC_ID' => $privateChannel[
"CHANNEL_PUBLIC_ID"],
72 'SIGNATURE' => \CPullChannel::GetPublicSignature($privateChannel[
"CHANNEL_PUBLIC_ID"]),
73 'START' => $privateChannel[
'CHANNEL_DT'],
74 'END' => $privateChannel[
'CHANNEL_DT'] + \CPullChannel::CHANNEL_TTL,
80 foreach ($config as $userId => $userConfig)
82 $userConfig = array_change_key_case($userConfig, CASE_LOWER);
83 $userConfig[
'start'] = date(
'c', $userConfig[
'start']);
84 $userConfig[
'end'] = date(
'c', $userConfig[
'end']);
85 $config[$userId] = $userConfig;