当前位置: 首页>>代码示例>>PHP>>正文


PHP CBlog::GetList方法代码示例

本文整理汇总了PHP中CBlog::GetList方法的典型用法代码示例。如果您正苦于以下问题:PHP CBlog::GetList方法的具体用法?PHP CBlog::GetList怎么用?PHP CBlog::GetList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CBlog的用法示例。


在下文中一共展示了CBlog::GetList方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: Delete

 function Delete($ID)
 {
     global $DB;
     $ID = IntVal($ID);
     $dbResult = CBlog::GetList(array(), array("GROUP_ID" => $ID), false, false, array("ID"));
     if ($dbResult->Fetch()) {
         $GLOBALS["APPLICATION"]->ThrowException(str_replace("#ID#", $ID, GetMessage("BLG_GG_ERROR_NOT_EMPTY")), "ERROR_NOT_EMPTY");
         return False;
     }
     unset($GLOBALS["BLOG_GROUP"]["BLOG_GROUP_CACHE_" . $ID]);
     return $DB->Query("DELETE FROM b_blog_group WHERE ID = " . $ID . "", true);
 }
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:12,代码来源:blog_group.php

示例2: CheckFields

 function CheckFields($ACTION, &$arFields, $ID = 0)
 {
     global $DB;
     if ((is_set($arFields, "NAME") || $ACTION == "ADD") && strlen($arFields["NAME"]) <= 0) {
         $GLOBALS["APPLICATION"]->ThrowException(GetMessage("BLG_GB_EMPTY_NAME"), "EMPTY_NAME");
         return false;
     }
     /*
     elseif (is_set($arFields, "NAME"))
     {
     	$dbResult = CBlog::GetList(array(), array("NAME" => $arFields["NAME"], "!ID" => $ID), false, false, array("ID"));
     	if ($dbResult->Fetch())
     	{
     		$GLOBALS["APPLICATION"]->ThrowException(GetMessage("BLG_GB_DUBLICATE_NAME"), "DUBLICATE_NAME");
     		return false;
     	}
     }
     */
     if ((is_set($arFields, "URL") || $ACTION == "ADD") && strlen($arFields["URL"]) <= 0) {
         $GLOBALS["APPLICATION"]->ThrowException(GetMessage("BLG_GB_EMPTY_URL"), "EMPTY_URL");
         return false;
     } elseif (is_set($arFields, "URL")) {
         $urlCheck = preg_replace("/[^a-zA-Z0-9_-]/is", "", $arFields["URL"]);
         if ($urlCheck != $arFields["URL"]) {
             $GLOBALS["APPLICATION"]->ThrowException(GetMessage("BLG_GB_BAD_URL"), "BAD_URL");
             return false;
         }
         $dbResult = CBlog::GetList(array(), array("URL" => $arFields["URL"], "!ID" => $ID), false, false, array("ID"));
         if ($dbResult->Fetch()) {
             $GLOBALS["APPLICATION"]->ThrowException(GetMessage("BLG_GB_DUBLICATE_URL"), "DUBLICATE_URL");
             return false;
         }
         if (in_array(strtolower($arFields["URL"]), $GLOBALS["AR_BLOG_RESERVED_NAMES"])) {
             $GLOBALS["APPLICATION"]->ThrowException(str_replace("#NAME#", $arFields["URL"], GetMessage("BLG_GB_RESERVED_NAME")), "RESERVED_NAME");
             return false;
         }
     }
     if (is_set($arFields, "DATE_CREATE") && !$DB->IsDate($arFields["DATE_CREATE"], false, LANG, "FULL")) {
         $GLOBALS["APPLICATION"]->ThrowException(GetMessage("BLG_GB_EMPTY_DATE_CREATE"), "EMPTY_DATE_CREATE");
         return false;
     }
     if (is_set($arFields, "DATE_UPDATE") && !$DB->IsDate($arFields["DATE_UPDATE"], false, LANG, "FULL")) {
         $GLOBALS["APPLICATION"]->ThrowException(GetMessage("BLG_GB_EMPTY_DATE_UPDATE"), "EMPTY_DATE_UPDATE");
         return false;
     }
     if (is_set($arFields, "LAST_POST_DATE") && (!$DB->IsDate($arFields["LAST_POST_DATE"], false, LANG, "FULL") && strlen($arFields["LAST_POST_DATE"]) > 0)) {
         $GLOBALS["APPLICATION"]->ThrowException(GetMessage("BLG_GB_EMPTY_LAST_POST_DATE"), "EMPTY_LAST_POST_DATE");
         return false;
     }
     if ($ACTION == "ADD" && (IntVal($arFields["OWNER_ID"]) <= 0 && IntVal($arFields["SOCNET_GROUP_ID"]) <= 0)) {
         $GLOBALS["APPLICATION"]->ThrowException(GetMessage("BLG_GB_EMPTY_OWNER_ID"), "EMPTY_OWNER_ID");
         return false;
     }
     if (IntVal($arFields["OWNER_ID"]) > 0) {
         $dbResult = CUser::GetByID($arFields["OWNER_ID"]);
         if (!$dbResult->Fetch()) {
             $GLOBALS["APPLICATION"]->ThrowException(GetMessage("BLG_GB_ERROR_NO_OWNER_ID"), "ERROR_NO_OWNER_ID");
             return false;
         }
     }
     if (is_set($arFields, "OWNER_ID") && is_set($arFields, "SOCNET_GROUP_ID") && IntVal($arFields["OWNER_ID"]) <= 0 && IntVal($arFields["SOCNET_GROUP_ID"]) <= 0) {
         $GLOBALS["APPLICATION"]->ThrowException(GetMessage("BLG_GB_EMPTY_OWNER_ID"), "EMPTY_OWNER_ID");
         return false;
     }
     if ((is_set($arFields, "GROUP_ID") || $ACTION == "ADD") && IntVal($arFields["GROUP_ID"]) <= 0) {
         $GLOBALS["APPLICATION"]->ThrowException(GetMessage("BLG_GB_EMPTY_GROUP_ID"), "EMPTY_GROUP_ID");
         return false;
     } elseif (is_set($arFields, "GROUP_ID")) {
         $dbResult = CBlogGroup::GetByID($arFields["GROUP_ID"]);
         if (!$dbResult) {
             $GLOBALS["APPLICATION"]->ThrowException(GetMessage("BLG_GB_ERROR_NO_GROUP_ID"), "ERROR_NO_GROUP_ID");
             return false;
         }
     }
     if ((is_set($arFields, "ACTIVE") || $ACTION == "ADD") && $arFields["ACTIVE"] != "Y" && $arFields["ACTIVE"] != "N") {
         $arFields["ACTIVE"] = "Y";
     }
     if ((is_set($arFields, "ENABLE_COMMENTS") || $ACTION == "ADD") && $arFields["ENABLE_COMMENTS"] != "Y" && $arFields["ENABLE_COMMENTS"] != "N") {
         $arFields["ENABLE_COMMENTS"] = "Y";
     }
     if ((is_set($arFields, "ENABLE_IMG_VERIF") || $ACTION == "ADD") && $arFields["ENABLE_IMG_VERIF"] != "Y" && $arFields["ENABLE_IMG_VERIF"] != "N") {
         $arFields["ENABLE_IMG_VERIF"] = "N";
     }
     if ((is_set($arFields, "ENABLE_RSS") || $ACTION == "ADD") && $arFields["ENABLE_RSS"] != "Y" && $arFields["ENABLE_RSS"] != "N") {
         $arFields["ENABLE_RSS"] = "N";
     }
     if ((is_set($arFields, "ALLOW_HTML") || $ACTION == "ADD") && $arFields["ALLOW_HTML"] != "Y" && $arFields["ALLOW_HTML"] != "N") {
         $arFields["ALLOW_HTML"] = "N";
     }
     if ((is_set($arFields, "USE_SOCNET") || $ACTION == "ADD") && $arFields["USE_SOCNET"] != "Y" && $arFields["USE_SOCNET"] != "N") {
         $arFields["USE_SOCNET"] = "N";
     }
     return True;
 }
开发者ID:k-kalashnikov,项目名称:geekcon_new,代码行数:94,代码来源:blog.php

示例3: array

 $SORT = array($arParams["SORT_BY1"] => $arParams["SORT_ORDER1"], $arParams["SORT_BY2"] => $arParams["SORT_ORDER2"]);
 $arFilter = array("SITE_ID" => SITE_ID);
 if (!empty($arParams["GROUP_ID"])) {
     $arFilter["ID"] = $arParams["GROUP_ID"];
 }
 $arSelectFields = false;
 //	if($arParams["GROUPS_COUNT"]>0)
 //		$COUNT = Array("nTopCount" => $arParams["GROUPS_COUNT"]*2);
 //	else
 $COUNT = false;
 $arResult["GROUPS"] = array();
 $arResult["GROUPS_TABLE"] = array();
 $dbGroups = CBlogGroup::GetList($SORT, $arFilter, false, $COUNT, $arSelectFields);
 $itemCnt = 0;
 while ($arGroups = $dbGroups->Fetch()) {
     $dbBlog = CBlog::GetList(array(), array("GROUP_ID" => $arGroups["ID"]), false, false, array("ID", "GROUP_ID"));
     if ($arBlog = $dbBlog->Fetch()) {
         $url = CComponentEngine::MakePathFromTemplate($arParams["PATH_TO_GROUP"], array("group_id" => $arGroups["ID"]));
         $arResult["GROUPS"][] = array("ID" => $arGroups["ID"], "NAME" => htmlspecialcharsex($arGroups["NAME"]), "URL" => $url);
         $itemCnt++;
         if ($itemCnt >= $arParams["GROUPS_COUNT"] && $arParams["GROUPS_COUNT"] > 0) {
             break;
         }
     }
 }
 $cnt = count($arResult["GROUPS"]);
 $row1 = ceil($cnt / $arParams["COLS_COUNT"]);
 $all = $cnt - $row1;
 for ($i = 1; $i < $arParams["COLS_COUNT"]; $i++) {
     if ($arParams["COLS_COUNT"] - $i > 1) {
         ${"row" . ($i + 1)} = ceil($all / ($arParams["COLS_COUNT"] - $i));
开发者ID:Satariall,项目名称:izurit,代码行数:31,代码来源:component.php

示例4: IntVal

}
$user_id = IntVal($USER->GetID());
$arResult["USER_ID"] = $user_id;
$arResult["TZ_OFFSET"] = CTimeZone::GetOffset();
if (!$arResult["bFromList"]) {
    $arParams["USE_CUT"] = "N";
    $arFilterblg = array("ACTIVE" => "Y", "USE_SOCNET" => "Y", "GROUP_ID" => $arParams["GROUP_ID"], "GROUP_SITE_ID" => SITE_ID, "OWNER_ID" => $arParams["USER_ID"]);
    $cacheTtl = 3153600;
    $cacheId = 'blog_post_blog_' . md5(serialize($arFilterblg));
    $cacheDir = '/blog/form/blog/';
    $obCache = new CPHPCache();
    if ($obCache->InitCache($cacheTtl, $cacheId, $cacheDir)) {
        $arBlog = $obCache->GetVars();
    } else {
        $obCache->StartDataCache();
        $dbBl = CBlog::GetList(array(), $arFilterblg);
        $arBlog = $dbBl->Fetch();
        if (!$arBlog && IsModuleInstalled("intranet")) {
            $arIdeaBlogGroupID = array();
            if (IsModuleInstalled("idea")) {
                $rsSite = CSite::GetList($by = "sort", $order = "desc", array("ACTIVE" => "Y"));
                while ($arSite = $rsSite->Fetch()) {
                    $arIdeaBlogGroupID[] = COption::GetOptionInt("idea", "blog_group_id", false, $arSite["LID"]);
                }
            }
            if (empty($arIdeaBlogGroupID)) {
                $arBlog = CBlog::GetByOwnerID($arParams["USER_ID"]);
            } else {
                $arBlogGroupID = array();
                $rsBlogGroup = CBlogGroup::GetList(array(), array(), false, false, array("ID"));
                while ($arBlogGroup = $rsBlogGroup->Fetch()) {
开发者ID:Satariall,项目名称:izurit,代码行数:31,代码来源:component.php

示例5: array

                }
                break;
        }
    }
}
$arHeaders = array(array("id" => "ID", "content" => "ID", "sort" => "ID", "default" => true), array("id" => "NAME", "content" => GetMessage("BLB_NAME"), "sort" => "NAME", "default" => true), array("id" => "DATE_CREATE", "content" => GetMessage('BLB_DATE_CREATE'), "sort" => "DATE_CREATE", "default" => true), array("id" => "DATE_UPDATE", "content" => GetMessage('BLB_DATE_UPDATE'), "sort" => "DATE_UPDATE", "default" => true), array("id" => "ACTIVE", "content" => GetMessage('BLB_ACTIVE'), "sort" => "ACTIVE", "default" => true), array("id" => "OWNER_INFO", "content" => GetMessage('BLB_OWNER_ID'), "sort" => "", "default" => true), array("id" => "SOCNET_GROUP_ID", "content" => GetMessage('BLB_SOCNET_GROUP_ID'), "sort" => "SOCNET_GROUP_ID"), array("id" => "URL", "content" => GetMessage('BLB_URL'), "sort" => "URL", "default" => true), array("id" => "GROUP_ID", "content" => GetMessage('BLB_GROUP_ID'), "sort" => "GROUP_ID", "default" => true), array("id" => "USE_SOCNET", "content" => GetMessage('BLB_USE_SOCNET'), "sort" => "USE_SOCNET", "default" => false));
$USER_FIELD_MANAGER->AdminListAddHeaders("BLOG_BLOG", $arHeaders);
$lAdmin->AddHeaders($arHeaders);
$arVisibleColumns = $lAdmin->GetVisibleHeaderColumns();
$arSelectedFields = array("ID", "NAME", "DATE_CREATE", "DATE_UPDATE", "ACTIVE", "OWNER_ID", "URL", "REAL_URL", "GROUP_ID", "OWNER_LOGIN", "OWNER_NAME", "OWNER_LAST_NAME", "OWNER_EMAIL", "GROUP_NAME", "GROUP_SITE_ID", "SOCNET_GROUP_ID", "USE_SOCNET");
foreach ($arVisibleColumns as $val) {
    if (!in_array($val, $arSelectedFields)) {
        $arSelectedFields[] = $val;
    }
}
$dbResultList = CBlog::GetList(array($by => $order), $arFilter, false, array("nPageSize" => CAdminResult::GetNavSize($sTableID)), $arSelectedFields);
$dbResultList = new CAdminResult($dbResultList, $sTableID);
$dbResultList->NavStart();
$lAdmin->NavText($dbResultList->GetNavPrint(GetMessage("BLB_GROUP_NAV")));
while ($arBlog = $dbResultList->NavNext(true, "f_")) {
    $row =& $lAdmin->AddRow($f_ID, $arBlog, "/bitrix/admin/blog_blog_edit.php?ID=" . $f_ID . "&lang=" . LANGUAGE_ID, GetMessage("BLB_UPDATE_ALT"));
    $row->AddField("ID", '<a href="/bitrix/admin/blog_blog_edit.php?ID=' . $f_ID . '&lang=' . LANGUAGE_ID . '" title="' . GetMessage("BLB_UPDATE_ALT") . '">' . $f_ID . '</a>');
    $row->AddField("NAME", "<a href=\"" . CBlog::PreparePath($f_URL, $f_GROUP_SITE_ID, false, $f_OWNER_ID, $f_SOCNET_GROUP_ID) . "\">" . $f_NAME . "</a>");
    $row->AddField("DATE_CREATE", $f_DATE_CREATE);
    $row->AddField("DATE_UPDATE", $f_DATE_UPDATE);
    $row->AddField("ACTIVE", $f_ACTIVE == "Y" ? GetMessage("BLB_YES") : GetMessage("BLB_NO"));
    if (IntVal($f_OWNER_ID) > 0) {
        $row->AddField("OWNER_INFO", "<a href=\"/bitrix/admin/user_edit.php?ID=" . $f_OWNER_ID . "&lang=" . LANG . "\">[" . $f_OWNER_ID . "] " . $f_OWNER_NAME . " " . $f_OWNER_LAST_NAME . " (" . $f_OWNER_LOGIN . ")</a>");
    }
    if (IntVal($f_SOCNET_GROUP_ID) > 0) {
        $row->AddField("SOCNET_GROUP_ID", $f_SOCNET_GROUP_ID);
开发者ID:k-kalashnikov,项目名称:geekcon_new,代码行数:31,代码来源:blog.php

示例6: SetSoNetFeaturePermIndexSearch

 function SetSoNetFeaturePermIndexSearch($ID, $arFields)
 {
     $featurePerm = CSocNetFeaturesPerms::GetByID($ID);
     if ($featurePerm["OPERATION_ID"] == "view_post") {
         if (CModule::IncludeModule("socialnetwork")) {
             $feature = CSocNetFeatures::GetByID($featurePerm["FEATURE_ID"]);
             if ($feature["FEATURE"] == "blog" && IntVal($feature["ENTITY_ID"]) > 0) {
                 if ($feature["ACTIVE"] == "Y" && ($feature["ENTITY_TYPE"] == "U" && $arFields["ROLE"] == "A" || $feature["ENTITY_TYPE"] == "G" && $arFields["ROLE"] == "N")) {
                     $arFilter = array("USE_SOCNET" => "Y");
                     if ($feature["ENTITY_TYPE"] == "U") {
                         $arFilter["OWNER_ID"] = $feature["ENTITY_ID"];
                     } else {
                         $arFilter["SOCNET_GROUP_ID"] = $feature["ENTITY_ID"];
                     }
                     $dbBlog = CBlog::GetList(array(), $arFilter, false, array("nTopCount" => 1), array("ID", "SOCNET_GROUP_ID"));
                     if ($arBlog = $dbBlog->Fetch()) {
                         CBlog::AddSocnetRead($arBlog["ID"]);
                     }
                 } else {
                     $arFilter = array("USE_SOCNET" => "Y");
                     if ($feature["ENTITY_TYPE"] == "U") {
                         $arFilter["OWNER_ID"] = $feature["ENTITY_ID"];
                     } else {
                         $arFilter["SOCNET_GROUP_ID"] = $feature["ENTITY_ID"];
                     }
                     $dbBlog = CBlog::GetList(array(), $arFilter, false, array("nTopCount" => 1), array("ID", "SOCNET_GROUP_ID"));
                     if ($arBlog = $dbBlog->Fetch()) {
                         CBlog::DeleteSocnetRead($arBlog["ID"]);
                     }
                 }
                 if ($arBlog && intval($arBlog["SOCNET_GROUP_ID"]) > 0 && CModule::IncludeModule("socialnetwork") && method_exists("CSocNetGroup", "GetSite")) {
                     $arSites = array();
                     $rsGroupSite = CSocNetGroup::GetSite($arBlog["SOCNET_GROUP_ID"]);
                     while ($arGroupSite = $rsGroupSite->Fetch()) {
                         $arSites[] = $arGroupSite["LID"];
                     }
                 } else {
                     $arSites = array(SITE_ID);
                 }
                 foreach ($arSites as $site_id_tmp) {
                     BXClearCache(True, "/" . $site_id_tmp . "/blog/sonet/");
                 }
             }
         }
     }
 }
开发者ID:k-kalashnikov,项目名称:geekcon_new,代码行数:46,代码来源:blog_search.php

示例7: array

 $cache_pathSoNet = "/" . SITE_ID . "/blog/sonet/";
 if ($arParams["CACHE_TIME"] > 0 && $cacheSoNet->InitCache($arParams["CACHE_TIME"], $cache_idSoNet, $cache_pathSoNet)) {
     $Vars = $cacheSoNet->GetVars();
     $arAvBlog = $Vars["arAvBlog"];
     CBitrixComponentTemplate::ApplyCachedData($Vars["templateCachedData"]);
     $cacheSoNet->Output();
 } else {
     if ($arParams["CACHE_TIME"] > 0) {
         $cacheSoNet->StartDataCache($arParams["CACHE_TIME"], $cache_idSoNet, $cache_pathSoNet);
     }
     $arAvBlog = array();
     $arFilterTmp = array("ACTIVE" => "Y", "GROUP_SITE_ID" => SITE_ID);
     if (IntVal($arParams["GROUP_ID"]) > 0) {
         $arFilterTmp["GROUP_ID"] = $arParams["GROUP_ID"];
     }
     $dbBlog = CBlog::GetList(array(), $arFilterTmp);
     while ($arBlog = $dbBlog->Fetch()) {
         if (IntVal($arBlog["SOCNET_GROUP_ID"]) > 0) {
             $featureOperationPerms = CSocNetFeaturesPerms::GetOperationPerm(SONET_ENTITY_GROUP, $arBlog["SOCNET_GROUP_ID"], "blog", "view_post");
             if ($featureOperationPerms == SONET_ROLES_ALL) {
                 $arAvBlog[] = $arBlog["ID"];
             }
         } else {
             $featureOperationPerms = CSocNetFeaturesPerms::GetOperationPerm(SONET_ENTITY_USER, $arBlog["OWNER_ID"], "blog", "view_post");
             if ($featureOperationPerms == SONET_RELATIONS_TYPE_ALL) {
                 $arAvBlog[] = $arBlog["ID"];
             }
         }
     }
     if ($arParams["CACHE_TIME"] > 0) {
         $cacheSoNet->EndDataCache(array("templateCachedData" => $this->GetTemplateCachedData(), "arAvBlog" => $arAvBlog));
开发者ID:webgksupport,项目名称:alpina,代码行数:31,代码来源:component.php

示例8: array

         if ($USER->IsAdmin() || $blogModulePermissions >= "W") {
             $arFlt = array("ACTIVE" => "Y", "GROUP_SITE_ID" => SITE_ID, "!ID" => $arBlog["ID"]);
             $dbBlog = CBlog::GetList(array("NAME" => "ASC"), $arFlt, false, false, array("ID", "NAME", "OWNER_ID", "URL", "GROUP_ID", "GROUP_NAME"));
             while ($arBlogS = $dbBlog->GetNext()) {
                 $arBlogS["PERMS"] = BLOG_PERMS_FULL;
                 $arResult["avBlog"][$arBlogS["ID"]] = $arBlogS;
             }
         } else {
             $arFlt = array("USE_SOCNET" => "N", ">=PERMS" => BLOG_PERMS_PREMODERATE, "PERMS_TYPE" => BLOG_PERMS_POST, "PERMS_USER_ID" => $user_id, "PERMS_POST_ID" => false, "ACTIVE" => "Y", "GROUP_SITE_ID" => SITE_ID, "!ID" => $arBlog["ID"]);
             $dbBlog = CBlog::GetList(array("NAME" => "ASC"), $arFlt, false, false, array("ID", "NAME", "OWNER_ID", "URL", "PERMS", "GROUP_ID", "GROUP_NAME"));
             while ($arBlogS = $dbBlog->GetNext()) {
                 $arBlogS["USE_SOCNET"] = "N";
                 $arResult["avBlog"][$arBlogS["ID"]] = $arBlogS;
             }
             $arFlt = array("OWNER_ID" => $user_id, "ACTIVE" => "Y", "GROUP_SITE_ID" => SITE_ID, "!ID" => $arBlog["ID"]);
             $dbBlog = CBlog::GetList(array("NAME" => "ASC"), $arFlt, false, false, array("ID", "NAME", "OWNER_ID", "URL", "GROUP_ID", "GROUP_NAME"));
             while ($arBlogS = $dbBlog->GetNext()) {
                 $arBlogS["PERMS"] = BLOG_PERMS_FULL;
                 $arResult["avBlog"][$arBlogS["ID"]] = $arBlogS;
             }
         }
         foreach ($arResult["avBlog"] as $id => $blog) {
             $arResult["avBlogCategory"]["users_" . $blog["GROUP_ID"]][$id] = $blog;
         }
     }
 } else {
     $arResult["PostToShow"]["TITLE"] = htmlspecialcharsEx($_POST["POST_TITLE"]);
     $arResult["PostToShow"]["CATEGORY_ID"] = $_POST["CATEGORY_ID"];
     $arResult["PostToShow"]["CategoryText"] = htmlspecialcharsEx($_POST["TAGS"]);
     $arResult["PostToShow"]["DETAIL_TEXT_TYPE"] = htmlspecialcharsEx($_POST["POST_MESSAGE_TYPE"]);
     $arResult["PostToShow"]["DETAIL_TEXT"] = $_POST["POST_MESSAGE_TYPE"] == "html" ? $_POST["POST_MESSAGE_HTML"] : htmlspecialcharsEx($_POST["POST_MESSAGE"]);
开发者ID:rasuldev,项目名称:torino,代码行数:31,代码来源:component.php

示例9: array

if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) {
    die;
}
/** @var array $arCurrentValues */
if (!CModule::IncludeModule("iblock")) {
    return;
}
if (!CModule::IncludeModule("blog")) {
    return;
}
//Get a list of all groups
$rsGroups = CGroup::GetList($by = "id", $order = "asc", array("ACTIVE" => "Y"));
if (intval($rsGroups->SelectedRowsCount()) > 0) {
    while ($arGroups = $rsGroups->Fetch()) {
        $arUsersGroups[$arGroups["ID"]] = $arGroups["NAME"] . " [" . $arGroups["ID"] . "]";
    }
}
//Get a list of IBlocks
$arIBlock = array();
$rsIBlock = CIBlock::GetList(array("sort" => "asc"), array("ACTIVE" => "Y"));
while ($arEl = $rsIBlock->Fetch()) {
    $arIBlock[$arEl["ID"]] = $arEl["NAME"] . " [" . $arEl["ID"] . "]";
}
//Get a list of groups blogs
$arFilter = array();
$arSelectedFields = array("ID", "NAME");
$dbBlogs = CBlog::GetList(array(), $arFilter, false, false, $arSelectedFields);
while ($arBlog = $dbBlogs->Fetch()) {
    $arBlogs[$arBlog["ID"]] = $arBlog["NAME"] . " [" . $arBlog["ID"] . "]";
}
$arComponentParameters = array("GROUPS" => array(), "PARAMETERS" => array("EXPERTS_GROUP" => array("PARENT" => "BASE", "NAME" => GetMessage("SPIRA_STAT_EXPERTS_GROUP"), "TYPE" => "LIST", "VALUES" => $arUsersGroups), "QUESTIONS_IBLOCK_ID" => array("PARENT" => "BASE", "NAME" => GetMessage("SPIRA_STAT_QUESTIONS_IBLOCK_ID"), "TYPE" => "LIST", "VALUES" => $arIBlock), "CATEGORIES_IBLOCK_ID" => array("PARENT" => "BASE", "NAME" => GetMessage("SPIRA_STAT_CATEGORIES_IBLOCK_ID"), "TYPE" => "LIST", "VALUES" => $arIBlock), "WORK_IBLOCK_ID" => array("PARENT" => "BASE", "NAME" => GetMessage("SPIRA_STAT_WORK_IBLOCK_ID"), "TYPE" => "LIST", "VALUES" => $arIBlock), "BLOG_ID" => array("PARENT" => "BASE", "NAME" => GetMessage("SPIRA_STAT_BLOG_ID"), "TYPE" => "LIST", "VALUES" => $arBlogs), "CACHE_TIME" => array("DEFAULT" => 3600), "CACHE_FILTER" => array("PARENT" => "CACHE_SETTINGS", "NAME" => GetMessage("IBLOCK_CACHE_FILTER"), "TYPE" => "CHECKBOX", "DEFAULT" => "N"), "CACHE_GROUPS" => array("PARENT" => "CACHE_SETTINGS", "NAME" => GetMessage("CP_BNL_CACHE_GROUPS"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y")));
开发者ID:Tvaruga,项目名称:ae,代码行数:31,代码来源:.parameters.php

示例10: AddFilterParams

 function AddFilterParams(&$arComponentParameters, $arCurrentValues, $name, $parent, $MULTIPLE = "Y")
 {
     $arComponentParameters["PARAMETERS"][$name] = array("PARENT" => $parent, "NAME" => GetMessage("SEARCH_CP_WHERE_FILTER"), "TYPE" => "LIST", "MULTIPLE" => $MULTIPLE, "VALUES" => CSearchParameters::GetFilterDropDown(true), "DEFAULT" => "all", "REFRESH" => "Y");
     if (!is_array($arCurrentValues[$name]) && strlen($arCurrentValues[$name]) > 0) {
         $arCurrentValues[$name] = array($arCurrentValues[$name]);
     }
     if (is_array($arCurrentValues[$name])) {
         foreach ($arCurrentValues[$name] as $strFILTER) {
             if ($strFILTER == "main") {
                 $arComponentParameters["PARAMETERS"][$name . "_" . $strFILTER] = array("PARENT" => $parent, "NAME" => GetMessage("SEARCH_CP_URL"), "TYPE" => "STRING", "MULTIPLE" => $MULTIPLE, "ADDITIONAL_VALUES" => "Y", "DEFAULT" => "");
             } elseif ($strFILTER == "forum") {
                 $arrFILTER = array();
                 if (CModule::IncludeModule("forum")) {
                     $arrFILTER["all"] = GetMessage("SEARCH_CP_ALL");
                     $rsForum = CForumNew::GetList();
                     while ($arForum = $rsForum->Fetch()) {
                         $arrFILTER[$arForum["ID"]] = $arForum["NAME"];
                     }
                 }
                 $arComponentParameters["PARAMETERS"][$name . "_" . $strFILTER] = array("PARENT" => $parent, "NAME" => GetMessage("SEARCH_CP_FORUM"), "TYPE" => "LIST", "MULTIPLE" => $MULTIPLE, "VALUES" => $arrFILTER, "ADDITIONAL_VALUES" => "N", "DEFAULT" => "all");
             } elseif (strpos($strFILTER, "iblock_") === 0) {
                 $arrFILTER = array();
                 if (CModule::IncludeModule("iblock")) {
                     $arrFILTER["all"] = GetMessage("SEARCH_CP_ALL");
                     $rsIBlock = CIBlock::GetList(array("SORT" => "ASC"), array("TYPE" => substr($strFILTER, 7)));
                     while ($arIBlock = $rsIBlock->Fetch()) {
                         $arrFILTER[$arIBlock["ID"]] = $arIBlock["NAME"];
                     }
                 }
                 $arComponentParameters["PARAMETERS"][$name . "_" . $strFILTER] = array("PARENT" => $parent, "NAME" => GetMessage("SEARCH_CP_IBLOCK_TYPE", array("#TYPE_ID#" => $strFILTER)), "TYPE" => "LIST", "MULTIPLE" => $MULTIPLE, "VALUES" => $arrFILTER, "ADDITIONAL_VALUES" => "N", "DEFAULT" => "all");
             } elseif ($strFILTER == "blog") {
                 $arrFILTER = array();
                 if (CModule::IncludeModule("blog")) {
                     $arrFILTER["all"] = GetMessage("SEARCH_CP_ALL");
                     $rsBlog = CBlog::GetList();
                     while ($arBlog = $rsBlog->Fetch()) {
                         $arrFILTER[$arBlog["ID"]] = $arBlog["NAME"];
                     }
                 }
                 $arComponentParameters["PARAMETERS"][$name . "_" . $strFILTER] = array("PARENT" => $parent, "NAME" => GetMessage("SEARCH_CP_BLOG"), "TYPE" => "LIST", "MULTIPLE" => $MULTIPLE, "VALUES" => $arrFILTER, "ADDITIONAL_VALUES" => "N", "DEFAULT" => "all");
             } elseif ($strFILTER == "socialnetwork") {
                 $arrFILTER = array();
                 if (CModule::IncludeModule("socialnetwork")) {
                     $arrFILTER["all"] = GetMessage("SEARCH_CP_ALL");
                     $rsGroup = CSocNetGroup::GetList(array("ID" => "DESC"), array(), false, false, array("ID", "NAME"));
                     while ($arGroup = $rsGroup->Fetch()) {
                         $arrFILTER[$arGroup["ID"]] = $arGroup["NAME"];
                     }
                 }
                 $arComponentParameters["PARAMETERS"][$name . "_" . $strFILTER] = array("PARENT" => $parent, "NAME" => GetMessage("SEARCH_CP_SOCIALNETWORK_GROUPS"), "TYPE" => "LIST", "MULTIPLE" => $MULTIPLE, "VALUES" => $arrFILTER, "ADDITIONAL_VALUES" => "N", "DEFAULT" => "all");
             } elseif ($strFILTER == "socialnetwork_user") {
                 $arComponentParameters["PARAMETERS"][$name . "_" . $strFILTER] = array("PARENT" => "DATA_SOURCE", "NAME" => GetMessage("SEARCH_CP_SOCIALNETWORK_USER"), "TYPE" => "STRING", "DEFAULT" => "");
             }
         }
     }
 }
开发者ID:akniyev,项目名称:itprom_dobrohost,代码行数:56,代码来源:comp_parameters.php

示例11: elseif

<?php

if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) {
    die;
} elseif (!CModule::IncludeModule("blog")) {
    return;
}
$SocNetGroupID = false;
$db_blog_group = CBlogGroup::GetList(array("ID" => "ASC"), array("SITE_ID" => WIZARD_SITE_ID, "NAME" => "[" . WIZARD_SITE_ID . "] " . GetMessage("BLOG_DEMO_GROUP_SOCNET")));
if ($res_blog_group = $db_blog_group->Fetch()) {
    $SocNetGroupID = $res_blog_group["ID"];
    if (WIZARD_INSTALL_DEMO_DATA) {
        $db_blog = CBlog::GetList(array(), array("GROUP_ID" => $res_blog_group["ID"]), false, false, array("ID"));
        if ($res_blog = $db_blog->Fetch()) {
            do {
                CBlog::Delete($res_blog["ID"]);
            } while ($res_blog = $db_blog->Fetch());
        }
        if (CModule::IncludeModule("socialnetwork")) {
            $db_log = CSocNetLog::GetList(array("ID" => "DESC"), array("SITE_ID" => WIZARD_SITE_ID, "EVENT_ID" => array("blog", "blog_post", "blog_comment")), false, false, array("ID"));
            while ($arLog = $db_log->Fetch()) {
                CSocNetLog::Delete($arLog["ID"]);
            }
        }
        BXClearCache(True, "/" . WIZARD_SITE_ID . "/blog/");
    } else {
        CWizardUtil::ReplaceMacros(WIZARD_SITE_PATH . "/_index.php", array("BLOG_GROUP_ID" => $SocNetGroupID));
        CWizardUtil::ReplaceMacros(WIZARD_SITE_PATH . "/index.php", array("BLOG_GROUP_ID" => $SocNetGroupID));
        CWizardUtil::ReplaceMacros(WIZARD_SITE_PATH . "/people/user.php", array("BLOG_GROUP_ID" => $SocNetGroupID));
        CWizardUtil::ReplaceMacros(WIZARD_SITE_PATH . "/groups/group.php", array("BLOG_GROUP_ID" => $SocNetGroupID));
        CWizardUtil::ReplaceMacros(WIZARD_SITE_PATH . "/blogs/index.php", array("BLOG_GROUP_ID" => $SocNetGroupID));
开发者ID:webgksupport,项目名称:alpina,代码行数:31,代码来源:index.php

示例12: is_array

$arCurrentValues = is_array($arCurrentValues) ? $arCurrentValues : array();
//IB Idea category
$arIb = array();
$oRes = CIblock::GetList(array("IBLOCK_ID" => "ASC", "NAME" => "DESC"), array('ACTIVE' => 'Y'));
while ($arRes = $oRes->Fetch()) {
    $arIb[$arRes["ID"]] = '(' . $arRes["IBLOCK_TYPE_ID"] . ') ' . $arRes["NAME"];
}
//Default Idea Status
$arUFStatus = array();
$arStatusList = CIdeaManagment::getInstance()->Idea()->GetStatusList();
foreach ($arStatusList as $Status) {
    $arUFStatus[$Status["ID"]] = $Status["VALUE"];
}
//Blog URL
$arBlog = array();
$dbBlog = CBlog::GetList(array("NAME" => "ASC"), array("ACTIVE" => "Y"), false, false, array("ID", "NAME", "URL"));
while ($Blog = $dbBlog->Fetch()) {
    $arBlog[$Blog["URL"]] = $Blog["NAME"];
}
$arComponentParameters = array("PARAMETERS" => array("BLOG_URL" => array("NAME" => GetMessage("ONE_BLOG_BLOG_URL"), "TYPE" => "LIST", "DEFAULT" => "", "PARENT" => "BASE", "REFRESH" => "Y", "VALUES" => $arBlog, "ADDITIONAL_VALUES" => "Y"), "IBLOCK_CATEGORIES" => array("TYPE" => "LIST", "NAME" => GetMessage("BC_POST_IBLOCK_CATEGORIES"), "VALUES" => $arIb, "MULTIPLE" => "N", "DEFAULT" => "", "PARENT" => "BASE"), "PATH_IDEA_INDEX" => array("NAME" => GetMessage("IDEA_PARAM_PATH_IDEA_INDEX"), "TYPE" => "STRING", "DEFAULT" => '/services/idea/', "PARENT" => "BASE"), "PATH_IDEA_POST" => array("NAME" => GetMessage("IDEA_PARAM_PATH_IDEA_POST"), "TYPE" => "STRING", "DEFAULT" => '/services/idea/#post_id#/', "PARENT" => "BASE"), "BUTTON_COLOR" => array("NAME" => GetMessage("IDEA_PARAM_BUTTON_COLOR"), "TYPE" => "STRING", "DEFAULT" => '#3EA822', "PARENT" => "BASE"), "POST_BIND_STATUS_DEFAULT" => array("TYPE" => "LIST", "NAME" => GetMessage("IDEA_PARAM_POST_BIND_STATUS_DEFAULT"), "VALUES" => $arUFStatus, "MULTIPLE" => "N", "DEFAULT" => "", "PARENT" => "BASE"), "CATEGORIES_CNT" => array("NAME" => GetMessage("CATEGORIES_CNT"), "TYPE" => "STRING", "DEFAULT" => 4, "PARENT" => "VISUAL"), "LIST_MESSAGE_COUNT" => array("NAME" => GetMessage("BC_MESSAGE_COUNT"), "TYPE" => "STRING", "DEFAULT" => 8, "PARENT" => "VISUAL"), "AUTH_TEMPLATE" => array("PARENT" => "BASE", "NAME" => GetMessage("IDEA_PARAM_AUTH_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => ""), "FORGOT_PASSWORD_URL" => array("NAME" => GetMessage("IDEA_PARAM_FORGOT_PASSWORD_URL"), "TYPE" => "STRING", "DEFAULT" => '', "PARENT" => "BASE"), "REGISTER_URL" => array("NAME" => GetMessage("IDEA_PARAM_REGISTER_URL"), "TYPE" => "STRING", "DEFAULT" => '', "PARENT" => "BASE"), "CACHE_TIME" => array("DEFAULT" => 3600)));
//Rating
$arComponentParameters["PARAMETERS"]["SHOW_RATING"] = array("NAME" => GetMessage("B_SHOW_RATING"), "TYPE" => "CHECKBOX", "DEFAULT" => "N", "REFRESH" => "Y", "PARENT" => "ADDITIONAL_SETTINGS");
if ($arCurrentValues["SHOW_RATING"] == "Y") {
    $arComponentParameters["PARAMETERS"]["RATING_TEMPLATE"] = array("NAME" => GetMessage("IDEA_PARAM_RATING_TEMPLATE_TITLE"), "TYPE" => "LIST", "DEFAULT" => "standart", "REFRESH" => "N", "PARENT" => "ADDITIONAL_SETTINGS", "MULTIPLE" => "N", "VALUES" => array("standart" => GetMessage("IDEA_PARAM_RATING_TEMPLATE_STANDART"), "like" => GetMessage("IDEA_PARAM_RATING_TEMPLATE_LIKE")));
}
if (!array_key_exists("IBLOCK_CATEGORIES", $arCurrentValues) && array_key_exists("IBLOCK_CATOGORIES", $arCurrentValues)) {
    $arCurrentValues["IBLOCK_CATEGORIES"] = $arCurrentValues["IBLOCK_CATOGORIES"];
}
if (!array_key_exists("CATEGORIES_CNT", $arCurrentValues) && array_key_exists("CATOGORIES_CNT", $arCurrentValues)) {
    $arCurrentValues["CATEGORIES_CNT"] = $arCurrentValues["CATOGORIES_CNT"];
}
开发者ID:Satariall,项目名称:izurit,代码行数:31,代码来源:.parameters.php

示例13: CheckBlog

 private function CheckBlog()
 {
     $arFilter = array("URL" => $this->ModuleBlogUrl, "GROUP_ID" => $this->arResult["INSTALLATION"]["BLOG_GROUP_ID"]);
     if ($arBlog = CBlog::GetList(array(), $arFilter)->Fetch()) {
         $this->arResult["INSTALLATION"]["BLOG_INSTALL"] = false;
         $this->arResult["INSTALLATION"]["BLOG_ID"] = $arBlog["ID"];
     }
 }
开发者ID:webgksupport,项目名称:alpina,代码行数:8,代码来源:step1.php

示例14:

					$blogExist = true;
					$blogGroupExist = true;
				}
				else
				{
					$newBlog = true;
					$arResult['BLOG_DATA']['BLOG_URL'] .= '_'.SITE_ID;
				}
			}
			unset($blogIterator);
			if (!$blogExist)
			{
				$blogIterator = CBlog::GetList(
					array(),
					array('URL' => $arResult['BLOG_DATA']['BLOG_URL']),
					false,
					false,
					array('ID', 'GROUP_ID', 'EMAIL_NOTIFY', 'GROUP_SITE_ID')
				);
				if ($blog = $blogIterator->Fetch())
				{
					if ($blog['GROUP_SITE_ID'] == SITE_ID)
					{
						$blogExist = true;
						$blogGroupExist = true;
					}
					else
					{
						$newBlog = true;
						$arResult['BLOG_DATA']['BLOG_URL'] .= '_'.$this->randString();
					}
开发者ID:ASDAFF,项目名称:entask.ru,代码行数:31,代码来源:component.php

示例15: PostIntoBuzzAsBlog

 public static function PostIntoBuzzAsBlog($userTwit, $arSiteId = array(), $userLogin = '')
 {
     global $DB;
     if (!CModule::IncludeModule("blog")) {
         return;
     }
     $arParams = array();
     if (IsModuleInstalled('bitrix24') && defined('BX24_HOST_NAME') && $userLogin != '') {
         if ($arUserTwit = unserialize(base64_decode($userTwit))) {
             $userTwit = $arUserTwit;
         }
         if ($arSiteIdCheck = unserialize(base64_decode($arSiteId))) {
             $arSiteId = $arSiteIdCheck;
         }
         $dbUser = CUser::GetByLogin($userLogin);
         if ($arUser = $dbUser->Fetch()) {
             $arParams["USER_ID"] = $arUser["ID"];
         }
     } else {
         $arParams["USER_ID"] = $userTwit['kp_user_id'];
     }
     if (isset($arSiteId[$userTwit['kp_user_id']])) {
         $siteId = $arSiteId[$userTwit['kp_user_id']];
     }
     if (strlen($siteId) <= 0) {
         $siteId = SITE_ID;
     }
     if (isset($userTwit['text'])) {
         $arParams["GROUP_ID"] = COption::GetOptionString("socialnetwork", "userbloggroup_id", false, $siteId);
         $arParams["PATH_TO_BLOG"] = COption::GetOptionString("socialnetwork", "userblogpost_page", false, $siteId);
         $arParams["PATH_TO_SMILE"] = COption::GetOptionString("socialnetwork", "smile_page", false, $siteId);
         $arParams["NAME_TEMPLATE"] = COption::GetOptionString("main", "TOOLTIP_NAME_TEMPLATE", false, $siteId);
         $arParams["SHOW_LOGIN"] = 'Y';
         $arParams["PATH_TO_POST"] = $arParams["PATH_TO_BLOG"];
         $arFilterblg = array("ACTIVE" => "Y", "USE_SOCNET" => "Y", "GROUP_ID" => $arParams["GROUP_ID"], "GROUP_SITE_ID" => $siteId, "OWNER_ID" => $arParams["USER_ID"]);
         $groupId = is_array($arParams["GROUP_ID"]) ? IntVal($arParams["GROUP_ID"][0]) : IntVal($arParams["GROUP_ID"]);
         if (isset($GLOBALS["BLOG_POST"]["BLOG_P_" . $groupId . "_" . $arParams["USER_ID"]]) && !empty($GLOBALS["BLOG_POST"]["BLOG_P_" . $groupId . "_" . $arParams["USER_ID"]])) {
             $arBlog = $GLOBALS["BLOG_POST"]["BLOG_P_" . $groupId . "_" . $arParams["USER_ID"]];
         } else {
             $dbBl = CBlog::GetList(array(), $arFilterblg);
             $arBlog = $dbBl->Fetch();
             if (!$arBlog && IsModuleInstalled("intranet")) {
                 $arBlog = CBlog::GetByOwnerID($arParams["USER_ID"]);
             }
             $GLOBALS["BLOG_POST"]["BLOG_P_" . $groupId . "_" . $arParams["USER_ID"]] = $arBlog;
         }
         $arResult["Blog"] = $arBlog;
         if (empty($arBlog)) {
             if (!empty($arParams["GROUP_ID"])) {
                 $arFields = array("=DATE_UPDATE" => $DB->CurrentTimeFunction(), "GROUP_ID" => is_array($arParams["GROUP_ID"]) ? IntVal($arParams["GROUP_ID"][0]) : IntVal($arParams["GROUP_ID"]), "ACTIVE" => "Y", "ENABLE_COMMENTS" => "Y", "ENABLE_IMG_VERIF" => "Y", "EMAIL_NOTIFY" => "Y", "ENABLE_RSS" => "Y", "ALLOW_HTML" => "N", "ENABLE_TRACKBACK" => "N", "SEARCH_INDEX" => "Y", "USE_SOCNET" => "Y", "=DATE_CREATE" => $DB->CurrentTimeFunction(), "PERMS_POST" => array(1 => "I", 2 => "I"), "PERMS_COMMENT" => array(1 => "P", 2 => "P"));
                 $bRights = false;
                 $rsUser = CUser::GetByID($arParams["USER_ID"]);
                 $arUser = $rsUser->Fetch();
                 if (strlen($arUser["NAME"] . "" . $arUser["LAST_NAME"]) <= 0) {
                     $arFields["NAME"] = GetMessage("BLG_NAME") . " " . $arUser["LOGIN"];
                 } else {
                     $arFields["NAME"] = GetMessage("BLG_NAME") . " " . $arUser["NAME"] . " " . $arUser["LAST_NAME"];
                 }
                 $arFields["URL"] = str_replace(" ", "_", $arUser["LOGIN"]) . "-blog-" . SITE_ID;
                 $arFields["OWNER_ID"] = $arParams["USER_ID"];
                 $urlCheck = preg_replace("/[^a-zA-Z0-9_-]/is", "", $arFields["URL"]);
                 if ($urlCheck != $arFields["URL"]) {
                     $arFields["URL"] = "u" . $arParams["USER_ID"] . "-blog-" . SITE_ID;
                 }
                 if (CBlog::GetByUrl($arFields["URL"])) {
                     $uind = 0;
                     do {
                         $uind++;
                         $arFields["URL"] = $arFields["URL"] . $uind;
                     } while (CBlog::GetByUrl($arFields["URL"]));
                 }
                 $featureOperationPerms = CSocNetFeaturesPerms::GetOperationPerm(SONET_ENTITY_USER, $arFields["OWNER_ID"], "blog", "view_post");
                 if ($featureOperationPerms == SONET_RELATIONS_TYPE_ALL) {
                     $bRights = true;
                 }
                 $arFields["PATH"] = CComponentEngine::MakePathFromTemplate($arParams["PATH_TO_BLOG"], array("blog" => $arFields["URL"], "user_id" => $arFields["OWNER_ID"], "group_id" => $arFields["SOCNET_GROUP_ID"]));
                 $blogID = CBlog::Add($arFields);
                 if ($bRights) {
                     CBlog::AddSocnetRead($blogID);
                 }
                 $arBlog = CBlog::GetByID($blogID, $arParams["GROUP_ID"]);
             }
         }
         //	$DATE_PUBLISH = "";
         //	if(strlen($_POST["DATE_PUBLISH_DEF"]) > 0)
         //		$DATE_PUBLISH = $_POST["DATE_PUBLISH_DEF"];
         //	elseif (strlen($_POST["DATE_PUBLISH"])<=0)
         $DATE_PUBLISH = ConvertTimeStamp(time() + CTimeZone::GetOffset(), "FULL");
         //	else
         //		$DATE_PUBLISH = $_POST["DATE_PUBLISH"];
         $arFields = array("DETAIL_TEXT" => $userTwit['text'], "DETAIL_TEXT_TYPE" => "text", "DATE_PUBLISH" => $DATE_PUBLISH, "PUBLISH_STATUS" => BLOG_PUBLISH_STATUS_PUBLISH, "PATH" => CComponentEngine::MakePathFromTemplate(htmlspecialcharsBack($arParams["PATH_TO_POST"]), array("post_id" => "#post_id#", "user_id" => $arBlog["OWNER_ID"])), "URL" => $arBlog["URL"], "SOURCE_TYPE" => "twitter");
         $arFields["PERMS_POST"] = array();
         $arFields["PERMS_COMMENT"] = array();
         $arFields["MICRO"] = "N";
         if (strlen($arFields["TITLE"]) <= 0) {
             $arFields["MICRO"] = "Y";
             $arFields["TITLE"] = trim(blogTextParser::killAllTags($arFields["DETAIL_TEXT"]));
             if (strlen($arFields["TITLE"]) <= 0) {
                 $arFields["TITLE"] = GetMessage("BLOG_EMPTY_TITLE_PLACEHOLDER");
             }
//.........这里部分代码省略.........
开发者ID:k-kalashnikov,项目名称:geekcon_new,代码行数:101,代码来源:authmanager.php


注:本文中的CBlog::GetList方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。