本文整理汇总了PHP中CBlog::SendPing方法的典型用法代码示例。如果您正苦于以下问题:PHP CBlog::SendPing方法的具体用法?PHP CBlog::SendPing怎么用?PHP CBlog::SendPing使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CBlog
的用法示例。
在下文中一共展示了CBlog::SendPing方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: htmlspecialcharsEx
$dbSite = CSite::GetByID(SITE_ID);
$arSite = $dbSite->Fetch();
$serverName = htmlspecialcharsEx($arSite["SERVER_NAME"]);
if (strlen($serverName) <= 0) {
if (defined("SITE_SERVER_NAME") && strlen(SITE_SERVER_NAME) > 0) {
$serverName = SITE_SERVER_NAME;
} else {
$serverName = COption::GetOptionString("main", "server_name", "");
}
if (strlen($serverName) <= 0) {
$serverName = $_SERVER["SERVER_NAME"];
}
}
}
$blogUrl = "http://" . $serverName . CComponentEngine::MakePathFromTemplate(htmlspecialcharsBack($arParams["PATH_TO_BLOG"]), array("blog" => $arBlog["URL"], "user_id" => $arBlog["OWNER_ID"], "group_id" => $arBlog["SOCNET_GROUP_ID"]));
CBlog::SendPing($arBlog["NAME"], $blogUrl);
}
}
}
if ($newID > 0 && strlen($arResult["ERROR_MESSAGE"]) <= 0) {
if ($arFields["PUBLISH_STATUS"] == BLOG_PUBLISH_STATUS_PUBLISH) {
BXClearCache(true, "/" . SITE_ID . "/blog/last_messages_list/");
$arFieldsIM = array("TYPE" => "POST", "TITLE" => $arFields["TITLE"], "URL" => CComponentEngine::MakePathFromTemplate(htmlspecialcharsBack($arParams["PATH_TO_POST"]), array("post_id" => $newID, "user_id" => $arBlog["OWNER_ID"])), "ID" => $newID, "FROM_USER_ID" => $arParams["USER_ID"], "TO_USER_ID" => array(), "TO_SOCNET_RIGHTS" => $arFields["SOCNET_RIGHTS"], "TO_SOCNET_RIGHTS_OLD" => $socnetRightsOld["U"]);
if (!empty($arMentionOld)) {
$arFieldsIM["MENTION_ID_OLD"] = $arMentionOld[1];
}
if (!empty($arMention)) {
$arFieldsIM["MENTION_ID"] = $arMention[1];
}
CBlogPost::NotifyIm($arFieldsIM);
}