本文整理匯總了PHP中CForumNew::CanUserDeleteForum方法的典型用法代碼示例。如果您正苦於以下問題:PHP CForumNew::CanUserDeleteForum方法的具體用法?PHP CForumNew::CanUserDeleteForum怎麽用?PHP CForumNew::CanUserDeleteForum使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類CForumNew
的用法示例。
在下文中一共展示了CForumNew::CanUserDeleteForum方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: BXClearCache
BXClearCache(true, $path);
}
}
}
}
}
$dbResultList = CForumNew::GetListEx(array($by => $order), $arFilter);
$dbResultList = new CAdminResult($dbResultList, $sTableID);
$dbResultList->NavStart();
$lAdmin->NavText($dbResultList->GetNavPrint(GetMessage("NAV")));
$lAdmin->AddHeaders(array(array("id" => "ID", "content" => "ID", "sort" => "ID", "default" => false), array("id" => "FORUM_GROUP_ID", "content" => GetMessage("FORUM_GROUP_ID"), "sort" => "FORUM_GROUP_LEFT_MARGIN", "default" => true), array("id" => "NAME", "content" => GetMessage("NAME"), "sort" => "NAME", "default" => true), array("id" => "ACTIVE", "content" => GetMessage("ACTIVE"), "sort" => "ACTIVE", "default" => true), array("id" => "LAND", "content" => GetMessage('LAND'), "default" => true), array("id" => "SORT", "content" => GetMessage("SORT"), "sort" => "SORT", "align" => "right"), array("id" => "MODERATION", "content" => GetMessage("MODERATION"), "sort" => "MODERATION"), array("id" => "INDEXATION", "content" => GetMessage("INDEXATION"), "sort" => "INDEXATION"), array("id" => "ORDER_BY", "content" => GetMessage("ORDER_BY"), "sort" => "ORDER_BY"), array("id" => "ORDER_DIRECTION", "content" => GetMessage("ORDER_DIRECTION"), "sort" => "ORDER_DIRECTION")));
$arVisibleColumns = $lAdmin->GetVisibleHeaderColumns();
while ($arForum = $dbResultList->NavNext(true, "f_")) {
$row =& $lAdmin->AddRow($f_ID, $arForum);
$bCanUpdateForum = CForumNew::CanUserUpdateForum($f_ID, $USER->GetUserGroupArray(), $USER->GetID());
$bCanDeleteForum = CForumNew::CanUserDeleteForum($f_ID, $USER->GetUserGroupArray(), $USER->GetID());
$row->bReadOnly = $bCanUpdateForum ? false : true;
$row->AddField("ID", $f_ID);
$row->AddViewField("NAME", '<a title="' . GetMessage("FORUM_EDIT") . '" href="forum_edit.php?ID=' . $f_ID . '&lang=' . LANG . GetFilterParams("filter_") . '">' . $f_NAME . '</a>');
$row->AddInputField("NAME", $bCanUpdateForum ? array("size" => "30") : false);
$row->AddCheckField("ACTIVE", $bCanUpdateForum ? array() : false);
$res = array();
$res2 = array();
if (in_array("LAND", $arVisibleColumns)) {
$arForumSite = CForumNew::GetSites($f_ID);
foreach ($arSites as $lid => $site) {
if (array_key_exists($lid, $arForumSite)) {
$res[] = $site["NAME"] . " [" . $lid . "]";
}
$class = empty($arForumSite[$lid]) ? "empty-path" : "";
$res2[] = <<<HTML