本文整理汇总了PHP中CBlog::GetBlogUserCommentPerms方法的典型用法代码示例。如果您正苦于以下问题:PHP CBlog::GetBlogUserCommentPerms方法的具体用法?PHP CBlog::GetBlogUserCommentPerms怎么用?PHP CBlog::GetBlogUserCommentPerms使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CBlog
的用法示例。
在下文中一共展示了CBlog::GetBlogUserCommentPerms方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: GetMessage
}
$arGroup = CBlogGroup::GetByID($arBlog["GROUP_ID"]);
$arResult["Blog"] = $arBlog;
if ($bIDbyCode) {
$arParams["ID"] = CBlogPost::GetID($arParams["ID"], $arBlog["ID"]);
}
$arPost = CBlogPost::GetByID($arParams["ID"]);
if (empty($arPost) && !$bIDbyCode) {
$arParams["ID"] = CBlogPost::GetID($arParams["ID"], $arBlog["ID"]);
$arPost = CBlogPost::GetByID($arParams["ID"]);
}
if (!$bSoNet) {
if (IntVal($arParams["ID"]) > 0) {
$arResult["Perm"] = CBlogPost::GetBlogUserCommentPerms($arParams["ID"], $user_id);
} else {
$arResult["Perm"] = CBlog::GetBlogUserCommentPerms($arBlog["ID"], $user_id);
}
}
if ((!empty($arPost) && ($arPost["PUBLISH_STATUS"] == BLOG_PUBLISH_STATUS_PUBLISH || $arResult["IDEA_MODERATOR"]) && $arPost["ENABLE_COMMENTS"] == "Y" || $simpleComment) && ($arBlog["ACTIVE"] == "Y" && $arGroup["SITE_ID"] == SITE_ID || $simpleComment)) {
$arPost = CBlogTools::htmlspecialcharsExArray($arPost);
$arResult["Post"] = $arPost;
if ($arPost["BLOG_ID"] == $arBlog["ID"] || $simpleComment) {
//Comment delete
if (IntVal($_GET["delete_comment_id"]) > 0 && $arResult["IDEA_MODERATOR"]) {
if ($_GET["success"] == "Y") {
$arResult["MESSAGE"] = GetMessage("B_B_PC_MES_DELED");
} else {
$arComment = CBlogComment::GetByID(IntVal($_GET["delete_comment_id"]));
if ($arResult["Perm"] >= BLOG_PERMS_MODERATE && !empty($arComment)) {
if (check_bitrix_sessid()) {
if (CBlogComment::Delete(IntVal($_GET["delete_comment_id"]))) {