本文整理匯總了PHP中CForumNew::GetForumRenew方法的典型用法代碼示例。如果您正苦於以下問題:PHP CForumNew::GetForumRenew方法的具體用法?PHP CForumNew::GetForumRenew怎麽用?PHP CForumNew::GetForumRenew使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類CForumNew
的用法示例。
在下文中一共展示了CForumNew::GetForumRenew方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: __array_merge
$arGroups = __array_merge($arGroups, $res);
}
}
foreach ($arGroupForum as $key => $val) {
$key = intVal($key);
if (array_key_exists($key, $arResult["GROUPS"])) {
$arGroupForum[$key] = array_merge($arResult["GROUPS"][$key], $val);
}
}
$arResult["FORUM"] = $arGroupForum;
// out of date
$arResult["FORUMS"] = $arGroups;
$this->EndResultCache();
}
$arNew = array();
$dbNew = CForumNew::GetForumRenew(array('FORUM_ID' => $arResult["FORUMS_LIST"]));
if ($dbNew) {
while ($arN = $dbNew->Fetch()) {
$arNew[$arN['FORUM_ID']] = $arN['TCRENEW'];
}
}
$bCanModerate = $arResult["USER"]["CAN_MODERATE"] == "Y";
$bCanModerate = $bCanModerate || __forumIndexGetPermissions($arResult['FORUMS'], $arNew);
if (is_array($arResult["FORUMS"]['GROUPS'])) {
foreach ($arResult["FORUMS"]['GROUPS'] as $groupID => $arGroup) {
$bCanModerate = $bCanModerate || __forumIndexGetPermissions($arResult["FORUMS"]['GROUPS'][$groupID]);
}
}
if (is_array($arResult["FORUM"])) {
foreach ($arResult["FORUM"] as $groupID => $arGroup) {
$bCanModerate = $bCanModerate || __forumIndexGetPermissions($arResult["FORUM"][$groupID]);