本文整理汇总了PHP中CIMNotify::GetFlashNotify方法的典型用法代码示例。如果您正苦于以下问题:PHP CIMNotify::GetFlashNotify方法的具体用法?PHP CIMNotify::GetFlashNotify怎么用?PHP CIMNotify::GetFlashNotify使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CIMNotify
的用法示例。
在下文中一共展示了CIMNotify::GetFlashNotify方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
if (is_array($arChannel)) {
$arResult['PULL_CONFIG'] = array('CHANNEL_ID' => $arChannel['CHANNEL_ID'], 'LAST_ID' => $arChannel['LAST_ID'], 'PATH' => $arChannel['PATH'], 'PATH_WS' => $arChannel['PATH_WS'], 'METHOD' => $arChannel['METHOD'], 'ERROR' => '');
}
}
// Counters
$arResult["COUNTERS"] = CUserCounter::GetValues($USER->GetID(), $_POST['SITE_ID']);
$arResult["ERROR"] = $errorMessage;
echo CUtil::PhpToJsObject($arResult);
} else {
if ($_POST['IM_NOTIFY_LOAD'] == 'Y') {
$CIMNotify = new CIMNotify();
$arNotify = $CIMNotify->GetUnreadNotify(array('SPEED_CHECK' => 'N', 'USE_TIME_ZONE' => 'N'));
if ($arNotify['result']) {
$arSend['NOTIFY'] = $arNotify['notify'];
$arSend['UNREAD_NOTIFY'] = $arNotify['unreadNotify'];
$arSend['FLASH_NOTIFY'] = CIMNotify::GetFlashNotify($arNotify['unreadNotify']);
$arSend['ERROR'] = '';
if ($arNotify['maxNotify'] > 0) {
$CIMNotify->MarkNotifyRead($arNotify['maxNotify'], true);
}
}
echo CUtil::PhpToJsObject($arSend);
} else {
if ($_POST['IM_NOTIFY_HISTORY_LOAD_MORE'] == 'Y') {
$errorMessage = "";
$CIMNotify = new CIMNotify();
$arNotify = $CIMNotify->GetNotifyList(array('PAGE' => $_POST['PAGE'], 'USE_TIME_ZONE' => 'N'));
echo CUtil::PhpToJsObject(array('NOTIFY' => $arNotify, 'ERROR' => $errorMessage));
} else {
if ($_POST['IM_SEND_MESSAGE'] == 'Y') {
CUtil::decodeURIComponent($_POST);
示例2: Array
{
$arResult['RECENT'] = false;
$arResult['CONTACT_LIST'] = Array(
'users' => Array(),
'groups' => Array(),
'userInGroup' => Array(),
'woGroups' => Array(),
'woUserInGroup' => Array()
);
$arResult['SMILE'] = false;
$arResult['SMILE_SET'] = false;
}
$CIMNotify = new CIMNotify();
$arResult['NOTIFY'] = $CIMNotify->GetUnreadNotify(Array('GET_ONLY_FLASH' => 'Y', 'USE_TIME_ZONE' => 'N'));
$arResult['NOTIFY']['flashNotify'] = CIMNotify::GetFlashNotify($arResult['NOTIFY']['unreadNotify']);
$arResult["NOTIFY_COUNTER"] = $arResult['NOTIFY']['countNotify']; // legacy
$CIMMessage = new CIMMessage();
$arResult['MESSAGE'] = $CIMMessage->GetUnreadMessage(Array('USE_TIME_ZONE' => 'N', 'ORDER' => 'ASC'));
$arResult["MESSAGE_COUNTER"] = $arResult['MESSAGE']['countMessage']; // legacy
$CIMChat = new CIMChat();
$arChatMessage = $CIMChat->GetUnreadMessage(Array('USE_TIME_ZONE' => 'N', 'ORDER' => 'ASC'));
if ($arChatMessage['result'])
{
foreach ($arChatMessage['message'] as $id => $ar)
{
$ar['recipientId'] = 'chat'.$ar['recipientId'];
$arResult['MESSAGE']['message'][$id] = $ar;
}