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


PHP CBlogGroup::GetList方法代码示例

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


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

示例1: CheckFields

 function CheckFields($ACTION, &$arFields, $ID = 0)
 {
     if ((is_set($arFields, "NAME") || $ACTION == "ADD") && strlen($arFields["NAME"]) <= 0) {
         $GLOBALS["APPLICATION"]->ThrowException(GetMessage("BLG_GG_EMPTY_NAME"), "EMPTY_NAME");
         return false;
     } elseif (is_set($arFields, "NAME")) {
         $dbResult = CBlogGroup::GetList(array(), array("NAME" => $arFields["NAME"], "!ID" => $ID, "SITE_ID" => $arFields["SITE_ID"]), false, false, array("ID"));
         if ($dbResult->Fetch()) {
             $GLOBALS["APPLICATION"]->ThrowException(GetMessage("BLG_GG_DUBLICATE_NAME"), "DUBLICATE_NAME");
             return false;
         }
     }
     if ((is_set($arFields, "SITE_ID") || $ACTION == "ADD") && strlen($arFields["SITE_ID"]) <= 0) {
         $GLOBALS["APPLICATION"]->ThrowException(GetMessage("BLG_GG_EMPTY_SITE_ID"), "EMPTY_SITE_ID");
         return false;
     } elseif (is_set($arFields, "SITE_ID")) {
         $dbResult = CSite::GetByID($arFields["SITE_ID"]);
         if (!$dbResult->Fetch()) {
             $GLOBALS["APPLICATION"]->ThrowException(str_replace("#ID#", $arFields["SITE_ID"], GetMessage("BLG_GG_ERROR_NO_SITE")), "ERROR_NO_SITE");
             return false;
         }
     }
     return True;
 }
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:24,代码来源:blog_group.php

示例2: GetMessage

?>
" size="40"></td>
	</tr>
	<tr>
		<td valign="top"><?php 
echo GetMessage("BLB_FILTER_GROUP_ID");
?>
:</td>
		<td>
			<select name="filter_group_id[]" multiple size="5">
				<option value=""><?php 
echo GetMessage("BLB_F_ALL");
?>
</option>
				<?php 
$dbGroup = CBlogGroup::GetList(array("NAME" => "ASC"), array());
while ($arGroup = $dbGroup->GetNext()) {
    ?>
<option value="<?php 
    echo $arGroup["ID"];
    ?>
"<?php 
    if (in_array($arGroup["ID"], $filter_group_id)) {
        echo " selected";
    }
    ?>
>[<?php 
    echo $arGroup["ID"];
    ?>
] <?php 
    echo $arGroup["NAME"];
开发者ID:k-kalashnikov,项目名称:geekcon_new,代码行数:31,代码来源:blog.php

示例3: array

}
// ------------------ FORUM -------------------------------
$forumID = 0;
if (CModule::IncludeModule("forum")) {
    $dbResult = CForumNew::GetListEx(array(), array("SITE_ID" => $arSite["SITE_ID"], "XML_ID" => "car_forum_demo"));
    if ($arResult = $dbResult->Fetch()) {
        $forumID = $arResult["ID"];
    } else {
        $arFields = array("NAME" => GetSocNetMessageLocal("SONET_I_FORUM_NAME", $arSite["LANGUAGE_ID"]), "ACTIVE" => "Y", "XML_ID" => "car_forum_demo", "MODERATION" => "N", "SITES" => array($arSite["SITE_ID"] => StrLen($arSite["DIR"]) > 0 ? $arSite["DIR"] : "/"));
        $forumID = CForumNew::Add($arFields);
    }
}
// ------------------ BLOG -------------------------------
$blogGroupID = 0;
if (CModule::IncludeModule("blog")) {
    $dbResult = CBlogGroup::GetList(array("ID" => "ASC"), array("SITE_ID" => $arSite["SITE_ID"]));
    if ($arResult = $dbResult->Fetch()) {
        $blogGroupID = $arResult["ID"];
    } else {
        $blogGroupID = CBlogGroup::Add(array("SITE_ID" => $arSite["SITE_ID"], "NAME" => GetSocNetMessageLocal("SONET_I_BLOG_NAME", $arSite["LANGUAGE_ID"])));
    }
}
// ------------------ PHOTO -------------------------------
$photoIBlockTypeID = "car_gallery_demo";
$photoUserIBlockID = 0;
$photoGroupIBlockID = 0;
if (CModule::IncludeModule("iblock")) {
    $dbIBlockType = CIBlockType::GetList(array(), array("=ID" => $photoIBlockTypeID));
    if ($arIBlockType = $dbIBlockType->Fetch()) {
        $photoIBlockTypeID = $arIBlockType["ID"];
    } else {
开发者ID:k-kalashnikov,项目名称:geekcon.local,代码行数:31,代码来源:install_demo.php

示例4: GetMessage

<?php

if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) {
    die;
}
if (!CModule::IncludeModule("blog") || !CModule::IncludeModule("idea")) {
    return;
}
$SocNetGroupID = false;
$IdeaBlogGroupName = "[" . WIZARD_SITE_ID . "] " . GetMessage("IDEA_DEMO_BLOG_GROUP_NAME");
$IdeaBlogUrl = "idea_" . WIZARD_SITE_ID;
$db_blog_group = CBlogGroup::GetList(array("ID" => "ASC"), array("SITE_ID" => WIZARD_SITE_ID, "NAME" => $IdeaBlogGroupName));
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()); 
    		}
    		BXClearCache(True, "/".WIZARD_SITE_ID."/blog/");
    		BXClearCache(True, "/".WIZARD_SITE_ID."/idea/");
    	 } */
}
if (!$SocNetGroupID) {
    $SocNetGroupID = CBlogGroup::Add(array("SITE_ID" => WIZARD_SITE_ID, "NAME" => $IdeaBlogGroupName));
}
开发者ID:mrdeadmouse,项目名称:u136006,代码行数:31,代码来源:idea_blog.php

示例5: CheckBlogGroup

 private function CheckBlogGroup()
 {
     $arFilter = array("SITE_ID" => $this->SITE_ID, "NAME" => $this->ModuleBlogGroup);
     if ($arBlogGroup = CBlogGroup::GetList(array(), $arFilter)->Fetch()) {
         $this->arResult["INSTALLATION"]["BLOG_GROUP_INSTALL"] = false;
         $this->arResult["INSTALLATION"]["BLOG_GROUP_ID"] = $arBlogGroup["ID"];
         $this->arResult["INSTALLATION"]["BLOG_GROUP_NAME"] = $this->ModuleBlogGroup;
     }
 }
开发者ID:webgksupport,项目名称:alpina,代码行数:9,代码来源:step1.php

示例6: intVal

                    if ($db_res && ($res = $db_res->GetNext())) {
                        do {
                            $arForum[intVal($res["ID"])] = $res["NAME"];
                            $fid = intVal($res["ID"]);
                        } while ($res = $db_res->GetNext());
                    }
                }
                $arComponentParameters["PARAMETERS"]["FILES_FORUM_ID"] = array("PARENT" => "WEBDAV_SETTINGS", "NAME" => GetMessage("SONET_FORUM_ID"), "TYPE" => "LIST", "VALUES" => $arForum, "DEFAULT" => $fid);
                $arComponentParameters["PARAMETERS"]["FILES_USE_CAPTCHA"] = array("PARENT" => "WEBDAV_SETTINGS", "NAME" => GetMessage("SONET_USE_CAPTCHA"), "TYPE" => "CHECKBOX", "MULTIPLE" => "N", "DEFAULT" => "Y");
            }
        }
    }
}
if (CModule::IncludeModule("blog")) {
    $arBlogGroup = array();
    $dbBlogGr = CBlogGroup::GetList();
    while ($arBlogGr = $dbBlogGr->Fetch()) {
        $arBlogGroup[$arBlogGr["ID"]] = "(" . $arBlogGr["SITE_ID"] . ") " . $arBlogGr["NAME"];
    }
    $arComponentParameters["GROUPS"]["BLOG_SETTINGS"] = array("NAME" => GetMessage("SONET_BLOG_SETTINGS"));
    if (!empty($arBlogGroup)) {
        $arComponentParameters["PARAMETERS"]["BLOG_GROUP_ID"] = array("PARENT" => "BLOG_SETTINGS", "NAME" => GetMessage("SONET_BLOG_GROUP_ID"), "TYPE" => "LIST", "VALUES" => $arBlogGroup, "REFRESH" => "N", "MULTIPLE" => "N");
    }
    $arComponentParameters["PARAMETERS"]["ALLOW_POST_MOVE"] = array("NAME" => GetMessage("BPE_ALLOW_POST_MOVE"), "TYPE" => "CHECKBOX", "MULTIPLE" => "N", "VALUE" => "Y", "DEFAULT" => "N", "PARENT" => "BLOG_SETTINGS", "REFRESH" => "Y");
    $arComponentParameters["PARAMETERS"]["PATH_TO_USER_BLOG_POST"] = array("NAME" => GetMessage("BPE_PATH_TO_USER_POST"), "TYPE" => "STRING", "DEFAULT" => "", "PARENT" => "BLOG_SETTINGS");
    $arComponentParameters["PARAMETERS"]["PATH_TO_USER_BLOG_POST_EDIT"] = array("NAME" => GetMessage("BPE_PATH_TO_USER_POST_EDIT"), "TYPE" => "STRING", "DEFAULT" => "", "PARENT" => "BLOG_SETTINGS");
    if ($arCurrentValues["ALLOW_POST_MOVE"] == "Y") {
        $arComponentParameters["PARAMETERS"]["PATH_TO_BLOG_POST"] = array("NAME" => GetMessage("BPE_PATH_TO_BLOG_POST"), "TYPE" => "STRING", "DEFAULT" => "", "PARENT" => "BLOG_SETTINGS");
        $arComponentParameters["PARAMETERS"]["PATH_TO_BLOG_POST_EDIT"] = array("NAME" => GetMessage("BPE_PATH_TO_BLOG_POST_EDIT"), "TYPE" => "STRING", "DEFAULT" => "", "PARENT" => "BLOG_SETTINGS");
        $arComponentParameters["PARAMETERS"]["PATH_TO_BLOG_DRAFT"] = array("NAME" => GetMessage("BPE_PATH_TO_BLOG_DRAFT"), "TYPE" => "STRING", "DEFAULT" => "", "PARENT" => "BLOG_SETTINGS");
        $arComponentParameters["PARAMETERS"]["PATH_TO_BLOG_BLOG"] = array("NAME" => GetMessage("BPE_PATH_TO_BLOG_BLOG"), "TYPE" => "STRING", "DEFAULT" => "", "PARENT" => "BLOG_SETTINGS");
开发者ID:vim84,项目名称:b-markt,代码行数:31,代码来源:.parameters.php

示例7: BXClearCache

                $arBlogGroupTmp = CBlogGroup::GetByID($ID);
                if (!CBlogGroup::Delete($ID)) {
                    $DB->Rollback();
                    if ($ex = $APPLICATION->GetException()) {
                        $lAdmin->AddGroupError($ex->GetString(), $ID);
                    } else {
                        $lAdmin->AddGroupError(GetMessage("BLG_DELETE_ERROR"), $ID);
                    }
                }
                BXClearCache(True, "/" . $arBlogGroupTmp["SITE_ID"] . "/blog/");
                $DB->Commit();
                break;
        }
    }
}
$dbResultList = CBlogGroup::GetList(array($by => $order), $arFilter, false, false, array("ID", "SITE_ID", "NAME"));
$dbResultList = new CAdminResult($dbResultList, $sTableID);
$dbResultList->NavStart();
$lAdmin->NavText($dbResultList->GetNavPrint(GetMessage("BLG_GROUP_NAV")));
$lAdmin->AddHeaders(array(array("id" => "ID", "content" => "ID", "sort" => "ID", "default" => true), array("id" => "NAME", "content" => GetMessage("BLG_GROUP_NAME"), "sort" => "NAME", "default" => true), array("id" => "SITE_ID", "content" => GetMessage('BLG_GROUP_SITE_ID'), "sort" => "SITE_ID", "default" => true)));
$arVisibleColumns = $lAdmin->GetVisibleHeaderColumns();
$arSites = array();
$dbSitesList = CSite::GetList($b = "sort", $o = "asc");
while ($arSite = $dbSitesList->Fetch()) {
    $arSites[$arSite["LID"]] = "[" . $arSite["LID"] . "]&nbsp;" . $arSite["NAME"];
}
while ($arGroup = $dbResultList->NavNext(true, "f_")) {
    $row =& $lAdmin->AddRow($f_ID, $arGroup);
    $row->AddField("ID", '<a href="/bitrix/admin/blog_group_edit.php?ID=' . $f_ID . '&lang=' . LANGUAGE_ID . '" title="' . GetMessage("BLG_UPDATE_ALT") . '">' . $f_ID . '</a>');
    $row->AddInputField("NAME", array("size" => "35"));
    $row->AddSelectField("SITE_ID", $arSites, array());
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:31,代码来源:group.php

示例8: array

<?php

if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) {
    die;
}
if (!CModule::IncludeModule("blog")) {
    return false;
}
$arGroupList = array();
$dbGroup = CBlogGroup::GetList(array("SITE_ID" => "ASC", "NAME" => "ASC"));
while ($arGroup = $dbGroup->Fetch()) {
    $arGroupList[$arGroup["ID"]] = "(" . $arGroup["SITE_ID"] . ") [" . $arGroup["ID"] . "] " . $arGroup["NAME"];
}
$arComponentParameters = array("GROUPS" => array("VARIABLE_ALIASES" => array("NAME" => GetMessage("B_VARIABLE_ALIASES"))), "PARAMETERS" => array("MESSAGE_COUNT" => array("NAME" => GetMessage("BMNP_MESSAGE_COUNT"), "TYPE" => "STRING", "DEFAULT" => 6, "PARENT" => "VISUAL"), "PERIOD_DAYS" => array("NAME" => GetMessage("BMNP_PERIOD_DAYS"), "TYPE" => "STRING", "DEFAULT" => 30, "PARENT" => "VISUAL"), "MESSAGE_LENGTH" => array("NAME" => GetMessage("BMNP_MESSAGE_LENGTH"), "TYPE" => "STRING", "DEFAULT" => 100, "PARENT" => "VISUAL"), "PREVIEW_WIDTH" => array("NAME" => GetMessage("BMNP_PREVIEW_WIDTH"), "TYPE" => "STRING", "DEFAULT" => 100, "PARENT" => "VISUAL"), "PREVIEW_HEIGHT" => array("NAME" => GetMessage("BMNP_PREVIEW_HEIGHT"), "TYPE" => "STRING", "DEFAULT" => 100, "PARENT" => "VISUAL"), "DATE_TIME_FORMAT" => CComponentUtil::GetDateTimeFormatField(GetMessage("BC_DATE_TIME_FORMAT"), "VISUAL"), "PATH_TO_BLOG" => array("NAME" => GetMessage("BMNP_PATH_TO_BLOG"), "TYPE" => "STRING", "MULTIPLE" => "N", "DEFAULT" => "", "COLS" => 25, "PARENT" => "URL_TEMPLATES"), "PATH_TO_POST" => array("NAME" => GetMessage("BMNP_PATH_TO_POST"), "TYPE" => "STRING", "MULTIPLE" => "N", "DEFAULT" => "", "COLS" => 25, "PARENT" => "URL_TEMPLATES"), "PATH_TO_USER" => array("NAME" => GetMessage("BMNP_PATH_TO_USER"), "TYPE" => "STRING", "MULTIPLE" => "N", "DEFAULT" => "", "COLS" => 25, "PARENT" => "URL_TEMPLATES"), "PATH_TO_GROUP_BLOG_POST" => array("NAME" => GetMessage("BMNP_PATH_TO_GROUP_BLOG_POST"), "TYPE" => "STRING", "MULTIPLE" => "N", "DEFAULT" => "", "COLS" => 25, "PARENT" => "URL_TEMPLATES"), "PATH_TO_SMILE" => array("NAME" => GetMessage("BMNP_PATH_TO_SMILE"), "TYPE" => "STRING", "MULTIPLE" => "N", "DEFAULT" => "", "COLS" => 25, "PARENT" => "ADDITIONAL_SETTINGS"), "BLOG_VAR" => array("NAME" => GetMessage("BMNP_BLOG_VAR"), "TYPE" => "STRING", "MULTIPLE" => "N", "DEFAULT" => "", "COLS" => 25, "PARENT" => "VARIABLE_ALIASES"), "POST_VAR" => array("NAME" => GetMessage("BMNP_POST_VAR"), "TYPE" => "STRING", "MULTIPLE" => "N", "DEFAULT" => "", "COLS" => 25, "PARENT" => "VARIABLE_ALIASES"), "USER_VAR" => array("NAME" => GetMessage("BMNP_USER_VAR"), "TYPE" => "STRING", "MULTIPLE" => "N", "DEFAULT" => "", "COLS" => 25, "PARENT" => "VARIABLE_ALIASES"), "PAGE_VAR" => array("NAME" => GetMessage("BMNP_PAGE_VAR"), "TYPE" => "STRING", "MULTIPLE" => "N", "DEFAULT" => "", "COLS" => 25, "PARENT" => "VARIABLE_ALIASES"), "CACHE_TIME" => array("DEFAULT" => "86400"), "GROUP_ID" => array("NAME" => GetMessage("BLG_GROUP_ID"), "TYPE" => "LIST", "VALUES" => $arGroupList, "MULTIPLE" => "N", "DEFAULT" => "", "ADDITIONAL_VALUES" => "Y", "PARENT" => "DATA_SOURCE"), "BLOG_URL" => array("NAME" => GetMessage("BLG_BLOG_URL"), "TYPE" => "STRING", "MULTIPLE" => "N", "DEFAULT" => "", "COLS" => 25, "PARENT" => "DATA_SOURCE")));
开发者ID:rasuldev,项目名称:torino,代码行数:14,代码来源:.parameters.php

示例9: array

<?php

if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) {
    die;
}
if (!CModule::IncludeModule("blog")) {
    return;
}
$dbGroup = CBlogGroup::GetList(array("ID" => "ASC"), array("SITE_ID" => WIZARD_SITE_ID));
if ($arGroup = $dbGroup->Fetch()) {
    if (WIZARD_B24_TO_CP) {
        $groupID = $arGroup["ID"];
        CWizardUtil::ReplaceMacros(WIZARD_SITE_PATH . "/index.php", array("BLOG_GROUP_ID" => $groupID));
        CWizardUtil::ReplaceMacros(WIZARD_SITE_PATH . "/index_b24.php", array("BLOG_GROUP_ID" => $groupID));
        CWizardUtil::ReplaceMacros(WIZARD_SITE_PATH . "/contacts/personal.php", array("BLOG_GROUP_ID" => $groupID));
        CWizardUtil::ReplaceMacros(WIZARD_SITE_PATH . "/workgroups/index.php", array("BLOG_GROUP_ID" => $groupID));
    }
    return;
}
CBlogSitePath::Add(array("SITE_ID" => WIZARD_SITE_ID, "PATH" => WIZARD_SITE_DIR . "contacts/personal/user/#user_id#/blog/", "TYPE" => "B"));
CBlogSitePath::Add(array("SITE_ID" => WIZARD_SITE_ID, "PATH" => WIZARD_SITE_DIR . "contacts/personal/user/#user_id#/blog/#post_id#/", "TYPE" => "P"));
CBlogSitePath::Add(array("SITE_ID" => WIZARD_SITE_ID, "PATH" => WIZARD_SITE_DIR . "contacts/personal/user/#user_id#/", "TYPE" => "U"));
CBlogSitePath::Add(array("SITE_ID" => WIZARD_SITE_ID, "PATH" => WIZARD_SITE_DIR . "workgroups/group/#group_id#/blog/", "TYPE" => "G"));
CBlogSitePath::Add(array("SITE_ID" => WIZARD_SITE_ID, "PATH" => WIZARD_SITE_DIR . "workgroups/group/#group_id#/blog/#post_id#/", "TYPE" => "H"));
$groupID = CBlogGroup::Add(array("SITE_ID" => WIZARD_SITE_ID, "NAME" => GetMessage("BLOG_SOCNET_GROUP_EXTRANET_NAME")));
CWizardUtil::ReplaceMacros(WIZARD_SITE_PATH . "/index.php", array("BLOG_GROUP_ID" => $groupID));
CWizardUtil::ReplaceMacros(WIZARD_SITE_PATH . "/index_b24.php", array("BLOG_GROUP_ID" => $groupID));
CWizardUtil::ReplaceMacros(WIZARD_SITE_PATH . "/contacts/personal.php", array("BLOG_GROUP_ID" => $groupID));
CWizardUtil::ReplaceMacros(WIZARD_SITE_PATH . "/workgroups/index.php", array("BLOG_GROUP_ID" => $groupID));
开发者ID:mrdeadmouse,项目名称:u136006,代码行数:29,代码来源:index.php

示例10: array

				unset($blogIterator);
			}
			if ($blogGroupExist)
			{
				$blogGroupID = (int)$blog['GROUP_ID'];
				$blogID = (int)$blog['ID'];
			}
			else
			{
				if ($arParams['BLOG_FROM_AJAX'] === 'N')
				{
					$fields = array(
						'SITE_ID' => SITE_ID,
						'NAME' => GetMessage('IBLOCK_CSC_BLOG_GROUP_NAME')
					);
					$blogGroupIterator = CBlogGroup::GetList(array(), $fields, false, false, array('ID'));
					if ($blogGroup = $blogGroupIterator->Fetch())
					{
						$blogGroupID = (int)$blogGroup['ID'];
					}
					else
					{
						$blogGroupID = (int)CBlogGroup::Add($fields);
						if ($blogGroupID == 0)
						{
							if ($ex = $APPLICATION->GetException())
								$arResult["ERRORS"][] = $ex->GetString();
							else
								$arResult["ERRORS"][] = GetMessage("IBLOCK_CSC_BLOG_GROUP_CREATE_ERROR");
						}
					}
开发者ID:ASDAFF,项目名称:entask.ru,代码行数:31,代码来源:component.php

示例11: GetMessage

             }
         }
     }
 }
 if ($arParams["SET_TITLE"] == "Y") {
     if (!empty($arBlog)) {
         $APPLICATION->SetTitle(str_replace("#BLOG#", $arBlog["NAME"], GetMessage('BLOG_TOP_TITLE')));
     } else {
         $APPLICATION->SetTitle(GetMessage('BLOG_NEW_BLOG'));
     }
 }
 $arFilterGroup = array("SITE_ID" => SITE_ID);
 if (!empty($arParams["GROUP_ID"])) {
     $arFilterGroup["ID"] = $arParams["GROUP_ID"];
 }
 $dbBlogGroup = CBlogGroup::GetList(array("NAME" => "ASC"), $arFilterGroup);
 $arBlogGroupTmp = array();
 while ($arBlogGroup = $dbBlogGroup->GetNext()) {
     if ($arBlogGroup["ID"] == $arResult["BLOG"]["GROUP_ID"]) {
         $arBlogGroup["SELECTED"] = "Y";
     }
     $arBlogGroupTmp[] = $arBlogGroup;
 }
 $arResult["GROUP"] = $arBlogGroupTmp;
 $arResult["AUTO_GROUPS"] = array();
 if (!empty($arBlog)) {
     $arResult["AUTO_GROUPS"] = unserialize($arBlog["AUTO_GROUPS"]);
 }
 if (!empty($arBlog)) {
     $res = CBlogUserGroup::GetList(array("NAME" => "ASC"), array("BLOG_ID" => $arBlog["ID"]), array("ID", "NAME", "BLOG_ID", "COUNT" => "USER2GROUP_ID"));
     while ($arGroup = $res->Fetch()) {
开发者ID:rasuldev,项目名称:torino,代码行数:31,代码来源:component.php

示例12: 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

示例13: while

            } while ($res_blog = $db_blog->Fetch());
        }
        $SocNetGroupID = $res_blog_group["ID"];
    } else {
        if ($arBlog = CBlog::GetByUrl("admin-blog-" . WIZARD_SITE_ID)) {
            CWizardUtil::ReplaceMacros($_SERVER["DOCUMENT_ROOT"] . BX_PERSONAL_ROOT . "/templates/" . WIZARD_TEMPLATE_ID . "_" . WIZARD_THEME_ID . "/footer.php", array("BLOG_URL" => $arBlog["URL"]));
            CWizardUtil::ReplaceMacros(WIZARD_SITE_PATH . "/_index.php", array("BLOG_URL" => $arBlog["URL"], "SEF_FOLDER" => WIZARD_SITE_DIR));
        }
        if ($arUtilBlog = CBlog::GetByUrl("util-photo-blog-" . WIZARD_SITE_ID)) {
            CWizardUtil::ReplaceMacros(WIZARD_SITE_PATH . "/photo.php", array("PHOTO_BLOG_URL" => $arUtilBlog["URL"]));
        }
        return;
    }
}
$utilGroupID = false;
$db_blog_group = CBlogGroup::GetList(array("ID" => "ASC"), array("SITE_ID" => WIZARD_SITE_ID, "NAME" => GetMessage("BLOG_DEMO_GROUP_UTIL") . " (" . WIZARD_SITE_ID . ")"));
if ($res_blog_group = $db_blog_group->Fetch()) {
    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());
        }
        $utilGroupID = $res_blog_group["ID"];
    } else {
        return;
    }
}
COption::SetOptionString('blog', 'avatar_max_size', '30000');
COption::SetOptionString('blog', 'avatar_max_width', '100');
开发者ID:Satariall,项目名称:izurit,代码行数:31,代码来源:index.php

示例14: array

     $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()) {
                 if (!in_array($arBlogGroup["ID"], $arIdeaBlogGroupID)) {
                     $arBlogGroupID[] = $arBlogGroup["ID"];
                 }
             }
             $arBlog = CBlog::GetByOwnerID($arParams["USER_ID"], $arBlogGroupID);
         }
     }
     $obCache->EndDataCache($arBlog);
 }
 $arResult["Blog"] = $arBlog;
 if ($GLOBALS["USER"]->IsAuthorized()) {
     CSocNetTools::InitGlobalExtranetArrays();
     if (isset($GLOBALS["arExtranetGroupID"])) {
         $arResult["arExtranetGroupID"] = $GLOBALS["arExtranetGroupID"];
开发者ID:Satariall,项目名称:izurit,代码行数:31,代码来源:component.php

示例15: GetMessage

								</td>
							</tr>
							<tr valign=top>
								<td nowrap valign="top" align="right" class="blogtablehead">
									<font class="blogheadtext">
									<font color="#FF0000">*</font> <b><?php 
                    echo GetMessage('BLOG_GRP');
                    ?>
</b>
									</font>
								</td>
								<td class="blogtablebody">
									<select name="GROUP_ID" class="inputselect">
										<?php 
                    $val = IntVal($bVarsFromForm ? $_POST['GROUP_ID'] : ($arBlog ? $arBlog["GROUP_ID"] : 0));
                    $dbBlogGroup = CBlogGroup::GetList(array("NAME" => "ASC"), array("SITE_ID" => SITE_ID));
                    while ($arBlogGroup = $dbBlogGroup->Fetch()) {
                        ?>
<option value="<?php 
                        echo $arBlogGroup["ID"];
                        ?>
"<?php 
                        if ($val == IntVal($arBlogGroup["ID"])) {
                            echo " selected";
                        }
                        ?>
><?php 
                        echo htmlspecialchars($arBlogGroup["NAME"]);
                        ?>
</option><?php 
                    }
开发者ID:,项目名称:,代码行数:31,代码来源:


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