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


PHP CIBlockParameters::GetSectionFieldCode方法代码示例

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


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

示例1: array

<?php

if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) {
    die;
}
if (!CModule::IncludeModule("iblock")) {
    return;
}
$arIBlockType = CIBlockParameters::GetIBlockTypes();
$rsIBlock = CIBlock::GetList(array("sort" => "asc"), array("TYPE" => $arCurrentValues["IBLOCK_TYPE"], "ACTIVE" => "Y"));
while ($arr = $rsIBlock->Fetch()) {
    $arIBlock[$arr["ID"]] = "[" . $arr["ID"] . "] " . $arr["NAME"];
}
$arProperty_UF = array();
$arUserFields = $GLOBALS["USER_FIELD_MANAGER"]->GetUserFields("IBLOCK_" . $arCurrentValues["IBLOCK_ID"] . "_SECTION");
foreach ($arUserFields as $FIELD_NAME => $arUserField) {
    $arProperty_UF[$FIELD_NAME] = $arUserField["LIST_COLUMN_LABEL"] ? $arUserField["LIST_COLUMN_LABEL"] : $FIELD_NAME;
}
$arComponentParameters = array("GROUPS" => array(), "PARAMETERS" => array("IBLOCK_TYPE" => array("PARENT" => "BASE", "NAME" => GetMessage("CP_BCSL_IBLOCK_TYPE"), "TYPE" => "LIST", "VALUES" => $arIBlockType, "REFRESH" => "Y"), "IBLOCK_ID" => array("PARENT" => "BASE", "NAME" => GetMessage("CP_BCSL_IBLOCK_ID"), "TYPE" => "LIST", "ADDITIONAL_VALUES" => "Y", "VALUES" => $arIBlock, "REFRESH" => "Y"), "SECTION_ID" => array("PARENT" => "BASE", "NAME" => GetMessage("CP_BCSL_SECTION_ID"), "TYPE" => "STRING", "DEFAULT" => '={$_REQUEST["SECTION_ID"]}'), "SECTION_CODE" => array("PARENT" => "BASE", "NAME" => GetMessage("CP_BCSL_SECTION_CODE"), "TYPE" => "STRING", "DEFAULT" => ''), "SECTION_URL" => CIBlockParameters::GetPathTemplateParam("SECTION", "SECTION_URL", GetMessage("CP_BCSL_SECTION_URL"), "", "URL_TEMPLATES"), "FILTER_NAME" => array("PARENT" => "DATA_SOURCE", "NAME" => GetMessage("CP_BCSL_FILTER_NAME"), "TYPE" => "STRING", "DEFAULT" => 'arrFilter'), "COUNT_ELEMENTS" => array("PARENT" => "DATA_SOURCE", "NAME" => GetMessage("CP_BCSL_COUNT_ELEMENTS"), "TYPE" => "CHECKBOX", "DEFAULT" => 'Y'), "TOP_DEPTH" => array("PARENT" => "DATA_SOURCE", "NAME" => GetMessage("CP_BCSL_TOP_DEPTH"), "TYPE" => "STRING", "DEFAULT" => '2'), "SECTION_FIELDS" => CIBlockParameters::GetSectionFieldCode(GetMessage("CP_BCSL_SECTION_FIELDS"), "DATA_SOURCE", array()), "SECTION_USER_FIELDS" => array("PARENT" => "DATA_SOURCE", "NAME" => GetMessage("CP_BCSL_SECTION_USER_FIELDS"), "TYPE" => "LIST", "MULTIPLE" => "Y", "ADDITIONAL_VALUES" => "Y", "VALUES" => $arProperty_UF), "ADD_SECTIONS_CHAIN" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("CP_BCSL_ADD_SECTIONS_CHAIN"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y"), "CACHE_TIME" => array("DEFAULT" => 36000000), "CACHE_GROUPS" => array("PARENT" => "CACHE_SETTINGS", "NAME" => GetMessage("CP_BCSL_CACHE_GROUPS"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y")));
开发者ID:sharapudinov,项目名称:lovestore.top,代码行数:19,代码来源:.parameters.php

示例2: while

<?php

if (!defined('B_PROLOG_INCLUDED') || B_PROLOG_INCLUDED !== true) {
    die;
}
/**
 * @var array               $arCurrentValues
 * @global CUserTypeManager $USER_FIELD_MANAGER
 */
use Bitrix\Main\Localization\Loc;
use Bitrix\Main\Loader;
Loc::loadLanguageFile(__FILE__);
global $USER_FIELD_MANAGER;
if (!Loader::includeModule('iblock')) {
    return;
}
$iBlockTypeList = CIBlockParameters::GetIBlockTypes();
$iBlockCollection = CIBlock::GetList(['sort' => 'asc'], ['TYPE' => $arCurrentValues['IBLOCK_TYPE'], 'ACTIVE' => 'Y']);
while ($arr = $iBlockCollection->Fetch()) {
    $iBlockList[$arr['ID']] = '[' . $arr['ID'] . '] ' . $arr['NAME'];
}
$userFieldPropertyList = [];
$userFieldList = $USER_FIELD_MANAGER->GetUserFields('IBLOCK_' . $arCurrentValues['IBLOCK_ID'] . '_SECTION');
foreach ($userFieldList as $FIELD_NAME => $userField) {
    $userFieldPropertyList[$FIELD_NAME] = $userField['LIST_COLUMN_LABEL'] ? $userField['LIST_COLUMN_LABEL'] : $FIELD_NAME;
}
$arComponentParameters = ['GROUPS' => [], 'PARAMETERS' => ['IBLOCK_TYPE' => ['PARENT' => 'BASE', 'NAME' => Loc::getMessage('CC_IBSL_IBLOCK_TYPE'), 'TYPE' => 'LIST', 'VALUES' => $iBlockTypeList, 'REFRESH' => 'Y'], 'IBLOCK_ID' => ['PARENT' => 'BASE', 'NAME' => Loc::getMessage('CC_IBSL_IBLOCK_ID'), 'TYPE' => 'LIST', 'ADDITIONAL_VALUES' => 'Y', 'VALUES' => $iBlockList, 'REFRESH' => 'Y'], 'SECTION_ID' => ['PARENT' => 'BASE', 'NAME' => Loc::getMessage('CC_IBSL_SECTION_ID'), 'TYPE' => 'STRING', 'DEFAULT' => '={$_REQUEST["SECTION_ID"]}'], 'SECTION_CODE' => ['PARENT' => 'BASE', 'NAME' => Loc::getMessage('CC_IBSL_SECTION_CODE'), 'TYPE' => 'STRING', 'DEFAULT' => ''], 'FILTER_NAME' => ['PARENT' => 'DATA_SOURCE', 'NAME' => Loc::getMessage('CC_IBSL_FILTER_NAME'), 'TYPE' => 'STRING', 'DEFAULT' => ''], 'SECTION_URL' => CIBlockParameters::GetPathTemplateParam('SECTION', 'SECTION_URL', Loc::getMessage('CC_IBSL_SECTION_URL'), '', 'URL_TEMPLATES'), 'COUNT_ELEMENTS' => ['PARENT' => 'DATA_SOURCE', 'NAME' => Loc::getMessage('CC_IBSL_COUNT_ELEMENTS'), 'TYPE' => 'CHECKBOX', 'DEFAULT' => 'Y'], 'TOP_DEPTH' => ['PARENT' => 'DATA_SOURCE', 'NAME' => Loc::getMessage('CC_IBSL_TOP_DEPTH'), 'TYPE' => 'STRING', 'DEFAULT' => '2'], 'SECTION_FIELDS' => CIBlockParameters::GetSectionFieldCode(Loc::getMessage('CC_IBSL_SECTION_FIELDS'), 'DATA_SOURCE', []), 'SECTION_USER_FIELDS' => ['PARENT' => 'DATA_SOURCE', 'NAME' => Loc::getMessage('CC_IBSL_SECTION_USER_FIELDS'), 'TYPE' => 'LIST', 'MULTIPLE' => 'Y', 'ADDITIONAL_VALUES' => 'Y', 'VALUES' => $userFieldPropertyList], 'ADD_SECTIONS_CHAIN' => ['PARENT' => 'ADDITIONAL_SETTINGS', 'NAME' => Loc::getMessage('CC_IBSL_ADD_SECTIONS_CHAIN'), 'TYPE' => 'CHECKBOX', 'DEFAULT' => 'Y'], 'CACHE_TIME' => ['DEFAULT' => 36000000], 'CACHE_GROUPS' => ['PARENT' => 'CACHE_SETTINGS', 'NAME' => Loc::getMessage('CC_IBSL_CACHE_GROUPS'), 'TYPE' => 'CHECKBOX', 'DEFAULT' => 'Y']]];
开发者ID:Varfann,项目名称:bx-features,代码行数:27,代码来源:.parameters.php

示例3: GetMessage

			"NAME" => GetMessage("IBLOCK_TYPE"),
			"TYPE" => "LIST",
			"VALUES" => $arIBlockType,
			"REFRESH" => "Y",
		),
		"IBLOCK_ID" => array(
			"PARENT" => "BASE",
			"NAME" => GetMessage("IBLOCK_IBLOCK"),
			"TYPE" => "LIST",
			"ADDITIONAL_VALUES" => "Y",
			"VALUES" => $arIBlock,
			"REFRESH" => "Y",
		),
		"SECTION_FIELDS" => CIBlockParameters::GetSectionFieldCode(
			GetMessage("CP_BCST_SECTION_FIELDS"),
			"DATA_SOURCE",
			array()
		),
		"SECTION_USER_FIELDS" =>array(
			"PARENT" => "DATA_SOURCE",
			"NAME" => GetMessage("CP_BCST_SECTION_USER_FIELDS"),
			"TYPE" => "LIST",
			"MULTIPLE" => "Y",
			"ADDITIONAL_VALUES" => "Y",
			"VALUES" => $arProperty_UF,
		),
		"SECTION_SORT_FIELD" => array(
			"PARENT" => "DATA_SOURCE",
			"NAME" => GetMessage("IBLOCK_SECTION_SORT_FIELD"),
			"TYPE" => "LIST",
			"VALUES" => CIBlockParameters::GetSectionSortFields(
开发者ID:ASDAFF,项目名称:bitrix-5,代码行数:31,代码来源:.parameters.php

示例4: array

$arPrice = array();
if ($boolCatalog) {
    $arSort = array_merge($arSort, CCatalogIBlockParameters::GetCatalogSortFields());
    $rsPrice = CCatalogGroup::GetList($v1 = "sort", $v2 = "asc");
    while ($arr = $rsPrice->Fetch()) {
        $arPrice[$arr["NAME"]] = "[" . $arr["NAME"] . "] " . $arr["NAME_LANG"];
    }
} else {
    $arPrice = $arProperty_N;
}
$arAscDesc = array("asc" => GetMessage("IBLOCK_SORT_ASC"), "desc" => GetMessage("IBLOCK_SORT_DESC"));
$arProperty_UF = array();
$arUserFields = $GLOBALS["USER_FIELD_MANAGER"]->GetUserFields("IBLOCK_" . $arCurrentValues["IBLOCK_ID"] . "_SECTION");
foreach ($arUserFields as $FIELD_NAME => $arUserField) {
    $arProperty_UF[$FIELD_NAME] = $arUserField["LIST_COLUMN_LABEL"] ? $arUserField["LIST_COLUMN_LABEL"] : $FIELD_NAME;
}
$arComponentParameters = array("GROUPS" => array("PRICES" => array("NAME" => GetMessage("IBLOCK_PRICES"))), "PARAMETERS" => array("IBLOCK_TYPE" => array("PARENT" => "BASE", "NAME" => GetMessage("IBLOCK_TYPE"), "TYPE" => "LIST", "VALUES" => $arIBlockType, "REFRESH" => "Y"), "IBLOCK_ID" => array("PARENT" => "BASE", "NAME" => GetMessage("IBLOCK_IBLOCK"), "TYPE" => "LIST", "ADDITIONAL_VALUES" => "Y", "VALUES" => $arIBlock, "REFRESH" => "Y"), "SECTION_FIELDS" => CIBlockParameters::GetSectionFieldCode(GetMessage("CP_BCST_SECTION_FIELDS"), "DATA_SOURCE", array()), "SECTION_USER_FIELDS" => array("PARENT" => "DATA_SOURCE", "NAME" => GetMessage("CP_BCST_SECTION_USER_FIELDS"), "TYPE" => "LIST", "MULTIPLE" => "Y", "ADDITIONAL_VALUES" => "Y", "VALUES" => $arProperty_UF), "SECTION_SORT_FIELD" => array("PARENT" => "DATA_SOURCE", "NAME" => GetMessage("IBLOCK_SECTION_SORT_FIELD"), "TYPE" => "LIST", "VALUES" => CIBlockParameters::GetSectionSortFields(array('SORT', 'TIMESTAMP_X', 'NAME', 'ID', 'DEPTH_LEVEL'), array('KEY_LOWERCASE' => 'Y')), "ADDITIONAL_VALUES" => "Y", "DEFAULT" => "sort"), "SECTION_SORT_ORDER" => array("PARENT" => "DATA_SOURCE", "NAME" => GetMessage("IBLOCK_SECTION_SORT_ORDER"), "TYPE" => "LIST", "VALUES" => $arAscDesc, "ADDITIONAL_VALUES" => "Y", "DEFAULT" => "asc"), "ELEMENT_SORT_FIELD" => array("PARENT" => "DATA_SOURCE", "NAME" => GetMessage("IBLOCK_ELEMENT_SORT_FIELD"), "TYPE" => "LIST", "VALUES" => $arSort, "ADDITIONAL_VALUES" => "Y", "DEFAULT" => "sort"), "ELEMENT_SORT_ORDER" => array("PARENT" => "DATA_SOURCE", "NAME" => GetMessage("IBLOCK_ELEMENT_SORT_ORDER"), "TYPE" => "LIST", "VALUES" => $arAscDesc, "DEFAULT" => "asc", "ADDITIONAL_VALUES" => "Y"), "ELEMENT_SORT_FIELD2" => array("PARENT" => "DATA_SOURCE", "NAME" => GetMessage("IBLOCK_ELEMENT_SORT_FIELD2"), "TYPE" => "LIST", "VALUES" => $arSort, "ADDITIONAL_VALUES" => "Y", "DEFAULT" => "id"), "ELEMENT_SORT_ORDER2" => array("PARENT" => "DATA_SOURCE", "NAME" => GetMessage("IBLOCK_ELEMENT_SORT_ORDER2"), "TYPE" => "LIST", "VALUES" => $arAscDesc, "DEFAULT" => "desc", "ADDITIONAL_VALUES" => "Y"), "FILTER_NAME" => array("PARENT" => "DATA_SOURCE", "NAME" => GetMessage("IBLOCK_FILTER_NAME_IN"), "TYPE" => "STRING", "DEFAULT" => "arrFilter"), "SECTION_URL" => CIBlockParameters::GetPathTemplateParam("SECTION", "SECTION_URL", GetMessage("IBLOCK_SECTION_URL"), "", "URL_TEMPLATES"), "DETAIL_URL" => CIBlockParameters::GetPathTemplateParam("DETAIL", "DETAIL_URL", GetMessage("IBLOCK_DETAIL_URL"), "", "URL_TEMPLATES"), "BASKET_URL" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("IBLOCK_BASKET_URL"), "TYPE" => "STRING", "DEFAULT" => "/personal/basket.php"), "ACTION_VARIABLE" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("IBLOCK_ACTION_VARIABLE"), "TYPE" => "STRING", "DEFAULT" => "action"), "PRODUCT_ID_VARIABLE" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("IBLOCK_PRODUCT_ID_VARIABLE"), "TYPE" => "STRING", "DEFAULT" => "id"), "PRODUCT_QUANTITY_VARIABLE" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("CP_BCST_PRODUCT_QUANTITY_VARIABLE"), "TYPE" => "STRING", "DEFAULT" => "quantity"), "PRODUCT_PROPS_VARIABLE" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("CP_BCST_PRODUCT_PROPS_VARIABLE"), "TYPE" => "STRING", "DEFAULT" => "prop"), "SECTION_ID_VARIABLE" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("IBLOCK_SECTION_ID_VARIABLE"), "TYPE" => "STRING", "DEFAULT" => "SECTION_ID"), "DISPLAY_COMPARE" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("T_IBLOCK_DESC_DISPLAY_COMPARE"), "TYPE" => "CHECKBOX", "DEFAULT" => "N"), "USE_MAIN_ELEMENT_SECTION" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("CP_BCST_USE_MAIN_ELEMENT_SECTION"), "TYPE" => "CHECKBOX", "DEFAULT" => "N"), "SECTION_COUNT" => array("PARENT" => "VISUAL", "NAME" => GetMessage("IBLOCK_SECTION_COUNT"), "TYPE" => "STRING", "DEFAULT" => "20"), "ELEMENT_COUNT" => array("PARENT" => "VISUAL", "NAME" => GetMessage("IBLOCK_ELEMENT_COUNT"), "TYPE" => "STRING", "DEFAULT" => "9"), "LINE_ELEMENT_COUNT" => array("PARENT" => "VISUAL", "NAME" => GetMessage("IBLOCK_LINE_ELEMENT_COUNT"), "TYPE" => "STRING", "DEFAULT" => "3"), "PROPERTY_CODE" => array("PARENT" => "VISUAL", "NAME" => GetMessage("IBLOCK_PROPERTY"), "TYPE" => "LIST", "MULTIPLE" => "Y", "VALUES" => $arProperty_LNS, "ADDITIONAL_VALUES" => "Y"), "PRICE_CODE" => array("PARENT" => "PRICES", "NAME" => GetMessage("IBLOCK_PRICE_CODE"), "TYPE" => "LIST", "MULTIPLE" => "Y", "VALUES" => $arPrice), "USE_PRICE_COUNT" => array("PARENT" => "PRICES", "NAME" => GetMessage("IBLOCK_USE_PRICE_COUNT"), "TYPE" => "CHECKBOX", "DEFAULT" => "N"), "SHOW_PRICE_COUNT" => array("PARENT" => "PRICES", "NAME" => GetMessage("IBLOCK_SHOW_PRICE_COUNT"), "TYPE" => "STRING", "DEFAULT" => "1"), "PRICE_VAT_INCLUDE" => array("PARENT" => "PRICES", "NAME" => GetMessage("IBLOCK_VAT_INCLUDE"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y"), "PRODUCT_PROPERTIES" => array("PARENT" => "PRICES", "NAME" => GetMessage("CP_BCST_PRODUCT_PROPERTIES"), "TYPE" => "LIST", "MULTIPLE" => "Y", "VALUES" => $arProperty_X), "USE_PRODUCT_QUANTITY" => array("PARENT" => "PRICES", "NAME" => GetMessage("CP_BCST_USE_PRODUCT_QUANTITY"), "TYPE" => "CHECKBOX", "DEFAULT" => "N", "REFRESH" => 'Y'), "CACHE_TIME" => array("DEFAULT" => 36000000), "CACHE_FILTER" => array("PARENT" => "CACHE_SETTINGS", "NAME" => GetMessage("IBLOCK_CACHE_FILTER"), "TYPE" => "CHECKBOX", "DEFAULT" => "N"), "CACHE_GROUPS" => array("PARENT" => "CACHE_SETTINGS", "NAME" => GetMessage("CP_BCST_CACHE_GROUPS"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y")));
if ($boolCatalog) {
    $arComponentParameters["PARAMETERS"]['HIDE_NOT_AVAILABLE'] = array('PARENT' => 'DATA_SOURCE', 'NAME' => GetMessage('CP_BCST_HIDE_NOT_AVAILABLE'), 'TYPE' => 'CHECKBOX', 'DEFAULT' => 'N');
    if (CModule::IncludeModule('currency')) {
        $arComponentParameters["PARAMETERS"]['CONVERT_CURRENCY'] = array('PARENT' => 'PRICES', 'NAME' => GetMessage('CP_BCST_CONVERT_CURRENCY'), 'TYPE' => 'CHECKBOX', 'DEFAULT' => 'N', 'REFRESH' => 'Y');
        if (isset($arCurrentValues['CONVERT_CURRENCY']) && 'Y' == $arCurrentValues['CONVERT_CURRENCY']) {
            $arCurrencyList = array();
            $rsCurrencies = CCurrency::GetList($by = 'SORT', $order = 'ASC');
            while ($arCurrency = $rsCurrencies->Fetch()) {
                $arCurrencyList[$arCurrency['CURRENCY']] = $arCurrency['CURRENCY'];
            }
            $arComponentParameters['PARAMETERS']['CURRENCY_ID'] = array('PARENT' => 'PRICES', 'NAME' => GetMessage('CP_BCST_CURRENCY_ID'), 'TYPE' => 'LIST', 'VALUES' => $arCurrencyList, 'DEFAULT' => CCurrency::GetBaseCurrency(), "ADDITIONAL_VALUES" => "Y");
        }
    }
}
开发者ID:Satariall,项目名称:izurit,代码行数:31,代码来源:.parameters.php

示例5: array

<?php

if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) {
    die;
}
if (!CModule::IncludeModule("iblock")) {
    return;
}
$arIBlockType = CIBlockParameters::GetIBlockTypes();
$arIBlock = array();
$rsIBlock = CIBlock::GetList(array("sort" => "asc"), array("TYPE" => $arCurrentValues["IBLOCK_TYPE"], "ACTIVE" => "Y"));
while ($arr = $rsIBlock->Fetch()) {
    $arIBlock[$arr["ID"]] = "[" . $arr["ID"] . "] " . $arr["NAME"];
}
$rsProp = CIBlockProperty::GetList(array("sort" => "asc", "name" => "asc"), array("ACTIVE" => "Y", "IBLOCK_ID" => $arCurrentValues["IBLOCK_ID"]));
while ($arr = $rsProp->Fetch()) {
    $arProperty[$arr["CODE"]] = "[" . $arr["CODE"] . "] " . $arr["NAME"];
    if (in_array($arr["PROPERTY_TYPE"], array("L", "N", "S"))) {
        $arProperty_LNS[$arr["CODE"]] = "[" . $arr["CODE"] . "] " . $arr["NAME"];
    }
}
$arAscDesc = array("asc" => GetMessage("IBLOCK_SORT_ASC"), "desc" => GetMessage("IBLOCK_SORT_DESC"));
$arProperty_UF = array();
$arUserFields = $GLOBALS["USER_FIELD_MANAGER"]->GetUserFields("IBLOCK_" . $arCurrentValues["IBLOCK_ID"] . "_SECTION");
foreach ($arUserFields as $FIELD_NAME => $arUserField) {
    $arProperty_UF[$FIELD_NAME] = $arUserField["LIST_COLUMN_LABEL"] ? $arUserField["LIST_COLUMN_LABEL"] : $FIELD_NAME;
}
$arComponentParameters = array("GROUPS" => array(), "PARAMETERS" => array("IBLOCK_TYPE" => array("PARENT" => "BASE", "NAME" => GetMessage("IBLOCK_TYPE"), "TYPE" => "LIST", "VALUES" => $arIBlockType, "REFRESH" => "Y"), "IBLOCK_ID" => array("PARENT" => "BASE", "NAME" => GetMessage("IBLOCK_IBLOCK"), "TYPE" => "LIST", "ADDITIONAL_VALUES" => "Y", "VALUES" => $arIBlock, "REFRESH" => "Y"), "SECTION_FIELDS" => CIBlockParameters::GetSectionFieldCode(GetMessage("CP_BPST_SECTION_FIELDS"), "DATA_SOURCE", array()), "SECTION_USER_FIELDS" => array("PARENT" => "DATA_SOURCE", "NAME" => GetMessage("CP_BPST_SECTION_USER_FIELDS"), "TYPE" => "LIST", "MULTIPLE" => "Y", "ADDITIONAL_VALUES" => "Y", "VALUES" => $arProperty_UF), "SECTION_SORT_FIELD" => array("PARENT" => "DATA_SOURCE", "NAME" => GetMessage("IBLOCK_SECTION_SORT_FIELD"), "TYPE" => "LIST", "VALUES" => array("sort" => GetMessage("IBLOCK_SORT_SORT"), "timestamp_x" => GetMessage("IBLOCK_SORT_TIMESTAMP"), "name" => GetMessage("IBLOCK_SORT_NAME"), "id" => GetMessage("IBLOCK_SORT_ID"), "depth_level" => GetMessage("IBLOCK_SORT_DEPTH_LEVEL")), "ADDITIONAL_VALUES" => "Y", "DEFAULT" => "sort"), "SECTION_SORT_ORDER" => array("PARENT" => "DATA_SOURCE", "NAME" => GetMessage("IBLOCK_SECTION_SORT_ORDER"), "TYPE" => "LIST", "VALUES" => $arAscDesc, "DEFAULT" => "asc", "ADDITIONAL_VALUES" => "Y"), "ELEMENT_SORT_FIELD" => array("PARENT" => "DATA_SOURCE", "NAME" => GetMessage("IBLOCK_ELEMENT_SORT_FIELD"), "TYPE" => "LIST", "VALUES" => array("shows" => GetMessage("IBLOCK_SORT_SHOWS"), "sort" => GetMessage("IBLOCK_SORT_SORT"), "timestamp_x" => GetMessage("IBLOCK_SORT_TIMESTAMP"), "name" => GetMessage("IBLOCK_SORT_NAME"), "id" => GetMessage("IBLOCK_SORT_ID"), "active_from" => GetMessage("IBLOCK_SORT_ACTIVE_FROM"), "active_to" => GetMessage("IBLOCK_SORT_ACTIVE_TO")), "ADDITIONAL_VALUES" => "Y", "DEFAULT" => "sort"), "ELEMENT_SORT_ORDER" => array("PARENT" => "DATA_SOURCE", "NAME" => GetMessage("IBLOCK_ELEMENT_SORT_ORDER"), "TYPE" => "LIST", "VALUES" => $arAscDesc, "DEFAULT" => "asc", "ADDITIONAL_VALUES" => "Y"), "FILTER_NAME" => array("PARENT" => "DATA_SOURCE", "NAME" => GetMessage("IBLOCK_FILTER_NAME"), "TYPE" => "STRING", "DEFAULT" => "arrFilter"), "FIELD_CODE" => CIBlockParameters::GetFieldCode(GetMessage("IBLOCK_FIELD"), "DATA_SOURCE"), "PROPERTY_CODE" => array("PARENT" => "DATA_SOURCE", "NAME" => GetMessage("IBLOCK_PROPERTY"), "TYPE" => "LIST", "MULTIPLE" => "Y", "ADDITIONAL_VALUES" => "Y", "VALUES" => $arProperty_LNS), "SECTION_URL" => CIBlockParameters::GetPathTemplateParam("SECTION", "SECTION_URL", GetMessage("IBLOCK_SECTION_URL"), "", "URL_TEMPLATES"), "DETAIL_URL" => CIBlockParameters::GetPathTemplateParam("DETAIL", "DETAIL_URL", GetMessage("IBLOCK_DETAIL_URL"), "", "URL_TEMPLATES"), "CACHE_TIME" => array("DEFAULT" => 36000000), "CACHE_FILTER" => array("PARENT" => "CACHE_SETTINGS", "NAME" => GetMessage("IBLOCK_CACHE_FILTER"), "TYPE" => "CHECKBOX", "DEFAULT" => "N"), "CACHE_GROUPS" => array("PARENT" => "CACHE_SETTINGS", "NAME" => GetMessage("CP_BPST_CACHE_GROUPS"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y"), "SECTION_COUNT" => array("PARENT" => "VISUAL", "NAME" => GetMessage("IBLOCK_SECTION_COUNT"), "TYPE" => "STRING", "DEFAULT" => "20"), "ELEMENT_COUNT" => array("PARENT" => "VISUAL", "NAME" => GetMessage("IBLOCK_ELEMENT_COUNT"), "TYPE" => "STRING", "DEFAULT" => "9"), "LINE_ELEMENT_COUNT" => array("PARENT" => "VISUAL", "NAME" => GetMessage("IBLOCK_LINE_ELEMENT_COUNT"), "TYPE" => "STRING", "DEFAULT" => "3")));
开发者ID:Satariall,项目名称:izurit,代码行数:28,代码来源:.parameters.php


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