本文整理汇总了PHP中CIBlockSection::GetMixedList方法的典型用法代码示例。如果您正苦于以下问题:PHP CIBlockSection::GetMixedList方法的具体用法?PHP CIBlockSection::GetMixedList怎么用?PHP CIBlockSection::GetMixedList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CIBlockSection
的用法示例。
在下文中一共展示了CIBlockSection::GetMixedList方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
}
$arVisibleColumnsMap = array();
foreach($arSelectedFields as $value)
$arVisibleColumnsMap[$value] = true;
// Getting list data
if(array_key_exists("ELEMENT_CNT", $arVisibleColumnsMap))
{
$arFilter["CNT_ALL"] = "Y";
$arFilter["ELEMENT_SUBSECTIONS"] = "N";
$rsData = CIBlockSection::GetMixedList(Array($by=>$order), $arFilter, true, $arSelectedFields);
}
else
{
$rsData = CIBlockSection::GetMixedList(Array($by=>$order), $arFilter, false, $arSelectedFields);
}
$rsData = new CAdminResult($rsData, $sTableID);
$rsData->NavStart();
// Navigation setup
$lAdmin->NavText($rsData->GetNavPrint(htmlspecialcharsbx($arIBlock["SECTIONS_NAME"])));
$bSearch = CModule::IncludeModule('search');
function GetElementName($ID)
{
$ID = IntVal($ID);
static $cache = array();
if(!array_key_exists($ID, $cache))
示例2: array
}
$arVisibleColumnsMap = array();
foreach($arSelectedFields as $value)
$arVisibleColumnsMap[$value] = true;
// Getting list data
if(array_key_exists("ELEMENT_CNT", $arVisibleColumnsMap))
{
$arFilter["CNT_ALL"] = "Y";
$arFilter["ELEMENT_SUBSECTIONS"] = "N";
$rsData = CIBlockSection::GetMixedList($arOrder, $arFilter, true, $arSelectedFields);
}
else
{
$rsData = CIBlockSection::GetMixedList($arOrder, $arFilter, false, $arSelectedFields);
}
$rsData = new CAdminResult($rsData, $sTableID);
$rsData->NavStart();
// Navigation setup
$lAdmin->NavText($rsData->GetNavPrint(htmlspecialcharsbx($arIBlock["SECTIONS_NAME"])));
$bSearch = Loader::includeModule('search');
function GetElementName($ID)
{
$ID = (int)$ID;
if ($ID <= 0)
return '';
示例3: array
}
$arParams["TEMPLATES"] = $arTemplates;
}
$arResult["URL"] = array("~CLONE" => CComponentEngine::MakePathFromTemplate($arParams["~ELEMENT_EDIT_URL"], array("PATH" => $arResult["ELEMENT"]["PATH"], "ELEMENT_ID" => $arResult["ELEMENT"]["ID"], "ACTION" => "CLONE")), "CLONE" => CComponentEngine::MakePathFromTemplate($arParams["ELEMENT_EDIT_URL"], array("PATH" => $arResult["ELEMENT"]["PATH"], "ELEMENT_ID" => $arResult["ELEMENT"]["ID"], "ACTION" => "CLONE")));
/********************************************************************
/Default params
********************************************************************/
/********************************************************************
Data
********************************************************************/
/************** Versions *******************************************/
$arResult["NAV_RESULT"] = $db_res = $ob->_get_mixed_list($arResult["ELEMENT"]["IBLOCK_SECTION_ID"], array("SHOW_VERSIONS" => "Y"), $arResult["ELEMENT"]["ID"]);
if ($arResult["NAV_RESULT"]) {
$arFilter = array("IBLOCK_ID" => $ob->IBLOCK_ID, "NAME" => $ob->meta_names['TRASH']['name']);
$arSelectedFields = array("ID");
$db_res = CIBlockSection::GetMixedList(array(), $arFilter, false, $arSelectedFields);
if ($db_res && ($arTrash = $db_res->GetNext())) {
$trashID = $arTrash["ID"];
}
if ($arParams["PAGE_ELEMENTS"] > 0) {
$arResult["NAV_RESULT"]->NavStart($arParams["PAGE_ELEMENTS"], false);
$arResult["NAV_STRING"] = $arResult["NAV_RESULT"]->GetPageNavStringEx($navComponentObject, GetMessage("WD_DOCUMENTS"), $arParams["PAGE_NAVIGATION_TEMPLATE"], true);
}
while ($res = $arResult["NAV_RESULT"]->Fetch()) {
if (isset($trashID) && $res["IBLOCK_SECTION_ID"] == $trashID) {
continue;
}
$ob->_get_file_info_arr($res);
__prepare_item_info($res, $arParams);
$rs = __build_item_info($res, $arParams);
$rs["columns"]["COMMENTS"] = $arParams["WORKFLOW"] == "bizproc" ? $rs["columns"]["BIZPROC"] : ($arParams["WORKFLOW"] == "workflow" ? $rs["columns"]["WF_COMMENTS"] : "");