本文整理汇总了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