本文整理汇总了PHP中CUserCounter::GetAllValues方法的典型用法代码示例。如果您正苦于以下问题:PHP CUserCounter::GetAllValues方法的具体用法?PHP CUserCounter::GetAllValues怎么用?PHP CUserCounter::GetAllValues使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CUserCounter
的用法示例。
在下文中一共展示了CUserCounter::GetAllValues方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: session_write_close
$userId = PULL_USER_ID;
}
if (check_bitrix_sessid()) {
if ($_POST['PULL_GET_CHANNEL'] == 'Y') {
session_write_close();
$arConfig = CPullChannel::GetConfig($userId, $_POST['CACHE'] == 'Y', $_POST['CACHE'] == 'Y' ? false : true, $_POST['MOBILE'] == 'Y');
if (is_array($arConfig)) {
echo CUtil::PhpToJsObject($arConfig);
} else {
echo CUtil::PhpToJsObject(array('ERROR' => 'ERROR_OPEN_CHANNEL'));
}
} elseif ($_POST['PULL_UPDATE_WATCH'] == 'Y') {
foreach ($_POST['WATCH'] as $tag) {
CPullWatch::Extend($userId, $tag);
}
echo CUtil::PhpToJsObject(array('ERROR' => ''));
} elseif ($_POST['PULL_UPDATE_STATE'] == 'Y') {
$arMessage = CPullStack::Get($_POST['CHANNEL_ID'], intval($_POST['CHANNEL_LAST_ID']));
$arResult["COUNTERS"] = CUserCounter::GetAllValues($userId);
if (!empty($arResult["COUNTERS"])) {
$arMessage[] = array('module_id' => 'main', 'command' => 'user_counter', 'params' => $arResult["COUNTERS"]);
}
echo CUtil::PhpToJsObject(array('MESSAGE' => $arMessage, 'ERROR' => ''));
} else {
echo CUtil::PhpToJsObject(array('ERROR' => 'UNKNOWN_ERROR'));
}
} else {
echo CUtil::PhpToJsObject(array('BITRIX_SESSID' => bitrix_sessid(), 'ERROR' => 'SESSION_ERROR'));
}
CMain::FinalActions();
die;
示例2: intval
}
else
echo CUtil::PhpToJsObject(Array('ERROR' => 'ERROR_OPEN_CHANNEL'));
}
elseif ($_POST['PULL_UPDATE_WATCH'] == 'Y')
{
foreach ($_POST['WATCH'] as $tag)
CPullWatch::Extend($USER->GetID(), $tag);
echo CUtil::PhpToJsObject(Array('ERROR' => ''));
}
elseif ($_POST['PULL_UPDATE_STATE'] == 'Y')
{
$arMessage = CPullStack::Get($_POST['CHANNEL_ID'], intval($_POST['CHANNEL_LAST_ID']));
$arResult["COUNTERS"] = CUserCounter::GetAllValues($USER->GetID());
if (!empty($arResult["COUNTERS"]))
{
$arMessage[] = Array(
'module_id' => 'main',
'command' => 'user_counter',
'params' => $arResult["COUNTERS"]
);
}
echo CUtil::PhpToJsObject(Array('MESSAGE' => $arMessage, 'ERROR' => ''));
}
else
{
echo CUtil::PhpToJsObject(Array('ERROR' => 'UNKNOWN_ERROR'));
}
}
示例3: GetAllValues
public static function GetAllValues()
{
return CUserCounter::GetAllValues(CUserCounter::SYSTEM_USER_ID);
}