本文整理汇总了PHP中CIBlockParameters::GetDateFormat方法的典型用法代码示例。如果您正苦于以下问题:PHP CIBlockParameters::GetDateFormat方法的具体用法?PHP CIBlockParameters::GetDateFormat怎么用?PHP CIBlockParameters::GetDateFormat使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CIBlockParameters
的用法示例。
在下文中一共展示了CIBlockParameters::GetDateFormat方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
<?php
if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) {
die;
}
if (!CModule::IncludeModule("iblock")) {
return;
}
$arIBlockType = array();
$rsIBlockType = CIBlockType::GetList(array("sort" => "asc"), array("ACTIVE" => "Y"));
while ($arr = $rsIBlockType->Fetch()) {
if ($ar = CIBlockType::GetByIDLang($arr["ID"], LANGUAGE_ID)) {
$arIBlockType[$arr["ID"]] = "[" . $arr["ID"] . "] " . $ar["~NAME"];
}
}
$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"];
}
$arUGroupsEx = array();
$dbUGroups = CGroup::GetList($by = "c_sort", $order = "asc");
while ($arUGroups = $dbUGroups->Fetch()) {
$arUGroupsEx[$arUGroups["ID"]] = $arUGroups["NAME"];
}
if (empty($arCurrentValues["INDEX_URL"]) && !empty($arCurrentValues["SECTIONS_TOP_URL"])) {
$arCurrentValues["INDEX_URL"] = $arCurrentValues["SECTIONS_TOP_URL"];
}
$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), "USER_ID" => array("PARENT" => "BASE", "NAME" => GetMessage("P_USER_ID"), "TYPE" => "STRING", "DEFAULT" => '={$_REQUEST["USER_ID"]}'), "SORT_BY" => array("PARENT" => "BASE", "NAME" => GetMessage("IBLOCK_SECTION_SORT_FIELD"), "TYPE" => "LIST", "VALUES" => array("ID" => "ID", "NAME" => GetMessage("IBLOCK_SORT_NAME"), "SORT" => GetMessage("IBLOCK_SORT_SORT"), "UF_DATE" => GetMessage("IBLOCK_SORT_DATE")), "DEFAULT" => "UF_DATE"), "SORT_ORD" => array("PARENT" => "BASE", "NAME" => GetMessage("IBLOCK_SECTION_SORT_ORDER"), "TYPE" => "LIST", "VALUES" => array("ASC" => GetMessage("IBLOCK_SORT_ASC"), "DESC" => GetMessage("IBLOCK_SORT_DESC")), "DEFAULT" => "ASC"), "INDEX_URL" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("P_INDEX_URL"), "TYPE" => "STRING", "DEFAULT" => "index.php"), "GALLERY_URL" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("P_GALLERY_URL"), "TYPE" => "STRING", "DEFAULT" => "gallery.php?USER_ALIAS=#USER_ALIAS#"), "GALLERY_EDIT_URL" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("P_GALLERY_EDIT_URL"), "TYPE" => "STRING", "DEFAULT" => "gallery_edit.php?USER_ALIAS=#USER_ALIAS#&ACTION=#ACTION#"), "UPLOAD_URL" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("P_UPLOAD_URL"), "TYPE" => "STRING", "DEFAULT" => "upload.php?USER_ALIAS=#USER_ALIAS#&SECTION_ID=#SECTION_ID#&ACTION=upload"), "ONLY_ONE_GALLERY" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("P_ONLY_ONE_GALLERY"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y"), "GALLERY_GROUPS" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("P_GALLERY_GROUPS"), "TYPE" => "LIST", "MULTIPLE" => "Y", "VALUES" => $arUGroupsEx), "GALLERY_SIZE" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("P_GALLERY_SIZE"), "TYPE" => "STRING", "DEFAULT" => "50"), "PAGE_ELEMENTS" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("IBLOCK_SECTION_PAGE_ELEMENT_COUNT"), "TYPE" => "STRING", "DEFAULT" => 0), "PAGE_NAVIGATION_TEMPLATE" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("IBLOCK_PAGE_NAVIGATION_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => ""), "DATE_TIME_FORMAT" => CIBlockParameters::GetDateFormat(GetMessage("T_DATE_TIME_FORMAT"), "ADDITIONAL_SETTINGS"), "GALLERY_AVATAR_SIZE" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("P_GALLERY_AVATAR_SIZE"), "TYPE" => "STRING", "DEFAULT" => ""), "SET_STATUS_404" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("P_SET_STATUS_404"), "TYPE" => "CHECKBOX", "DEFAULT" => "N"), "CACHE_TIME" => array("DEFAULT" => 3600)));
示例2: opendir
$handle = opendir($path);
$file_exist = false;
if ($handle) {
while ($file = readdir($handle)) {
if ($file == "." || $file == ".." || !is_file($path . $file)) {
continue;
}
$file_exist = true;
$arFiles[$file] = $file;
}
}
if (!$file_exist) {
$arFiles = array("" => GetMessage("P_FONTS_NONE"));
}
$hidden = $arCurrentValues["USE_LIGHT_VIEW"] == "N" ? "N" : "Y";
$arComponentParameters = array("GROUPS" => array("PAGE_SETTINGS" => array("NAME" => GetMessage("P_PAGE_SETTINGS"), "SORT" => "100"), "PHOTO_SETTINGS" => array("NAME" => GetMessage("P_PHOTO_SETTINGS"), "SORT" => "150"), "RATING_SETTINGS" => array("NAME" => GetMessage("T_IBLOCK_DESC_RATING_SETTINGS")), "TAGS_CLOUD" => array("NAME" => GetMessage("T_TAGS_CLOUD")), "UPLOADER" => array("NAME" => GetMessage("P_UPLOADER"))), "PARAMETERS" => array("USE_LIGHT_VIEW" => array("PARENT" => "BASE", "NAME" => GetMessage("P_USE_LIGHT_VIEW"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y", "REFRESH" => "Y"), "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), "GALLERY_GROUPS" => array("PARENT" => "BASE", "NAME" => GetMessage("P_GALLERY_GROUPS"), "TYPE" => "LIST", "VALUES" => $arUGroupsEx, "DEFAULT" => array(1), "MULTIPLE" => "Y"), "ONLY_ONE_GALLERY" => array("PARENT" => "BASE", "NAME" => GetMessage("P_ONLY_ONE_GALLERY"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y", "HIDDEN" => $hidden), "MODERATION" => array("PARENT" => "BASE", "NAME" => GetMessage("P_GLOBAL_MODERATE"), "TYPE" => "CHECKBOX", "DEFAULT" => "N"), "SECTION_SORT_BY" => array("PARENT" => "BASE", "NAME" => GetMessage("IBLOCK_SECTION_SORT_FIELD"), "TYPE" => "LIST", "VALUES" => array("ID" => "ID", "NAME" => GetMessage("IBLOCK_SORT_NAME"), "SORT" => GetMessage("IBLOCK_SORT_SORT"), "ELEMENT_CNT" => GetMessage("IBLOCK_SORT_ELEMENTS_CNT"), "UF_DATE" => GetMessage("IBLOCK_SORT_DATE")), "DEFAULT" => "UF_DATE", "HIDDEN" => $hidden), "SECTION_SORT_ORD" => array("PARENT" => "BASE", "NAME" => GetMessage("IBLOCK_SECTION_SORT_ORDER"), "TYPE" => "LIST", "VALUES" => array("ASC" => GetMessage("IBLOCK_SORT_ASC"), "DESC" => GetMessage("IBLOCK_SORT_DESC")), "DEFAULT" => "DESC", "HIDDEN" => $hidden), "ELEMENT_SORT_FIELD" => array("PARENT" => "BASE", "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" => $arCurrentValues["DRAG_SORT"] == "N" ? GetMessage("IBLOCK_SORT_ID") : GetMessage("IBLOCK_SORT_ID_SORTED"), "rating" => GetMessage("IBLOCK_SORT_RATING"), "comments" => GetMessage("IBLOCK_SORT_COMMENTS")), "ADDITIONAL_VALUES" => "Y", "DEFAULT" => "id", "HIDDEN" => $hidden), "ELEMENT_SORT_ORDER" => array("PARENT" => "BASE", "NAME" => GetMessage("IBLOCK_ELEMENT_SORT_ORDER"), "TYPE" => "LIST", "VALUES" => array("asc" => GetMessage("IBLOCK_SORT_ASC"), "desc" => GetMessage("IBLOCK_SORT_DESC")), "DEFAULT" => "desc", "HIDDEN" => $hidden), "PATH_TO_USER" => array("PARENT" => "BASE", "NAME" => GetMessage("P_PATH_TO_USER"), "TYPE" => "STRING", "DEFAULT" => ""), "VARIABLE_ALIASES" => array("USER_ID" => array("NAME" => GetMessage("USER_ID_DESC")), "USER_ALIAS" => array("NAME" => GetMessage("USER_ALIAS_DESC")), "SECTION_ID" => array("NAME" => GetMessage("SECTION_ID_DESC")), "ELEMENT_ID" => array("NAME" => GetMessage("ELEMENT_ID_DESC")), "PAGE_NAME" => array("NAME" => GetMessage("PAGE_NAME_DESC")), "ACTION" => array("NAME" => GetMessage("ACTION_DESC"))), "SEF_MODE" => array("index" => array("NAME" => GetMessage("INDEX_PAGE"), "DEFAULT" => "index.php", "VARIABLES" => array()), "galleries" => array("NAME" => GetMessage("GALLERIES_PAGE"), "DEFAULT" => "galleries/#USER_ID#/", "VARIABLES" => array()), "gallery" => array("NAME" => GetMessage("GALLERY_PAGE"), "DEFAULT" => "#USER_ALIAS#/", "VARIABLES" => array("USER_ALIAS")), "gallery_edit" => array("NAME" => GetMessage("GALLERY_EDIT_PAGE"), "DEFAULT" => "#USER_ALIAS#/action/#ACTION#/", "VARIABLES" => array("USER_ALIAS", "ACTION")), "section" => array("NAME" => GetMessage("SECTION_PAGE"), "DEFAULT" => "#USER_ALIAS#/#SECTION_ID#/", "VARIABLES" => array("USER_ALIAS", "SECTION_ID")), "section_edit" => array("NAME" => GetMessage("SECTION_EDIT_PAGE"), "DEFAULT" => "#USER_ALIAS#/#SECTION_ID#/action/#ACTION#/", "VARIABLES" => array("USER_ALIAS", "SECTION_ID", "ACTION")), "section_edit_icon" => array("NAME" => GetMessage("SECTION_EDIT_ICON_PAGE"), "DEFAULT" => "#USER_ALIAS#/#SECTION_ID#/icon/action/#ACTION#/", "VARIABLES" => array("USER_ALIAS", "SECTION_ID", "ACTION")), "upload" => array("NAME" => GetMessage("UPLOAD_PAGE"), "DEFAULT" => "#USER_ALIAS#/#SECTION_ID#/action/upload/", "VARIABLES" => array("USER_ALIAS", "SECTION_ID")), "detail" => array("NAME" => GetMessage("DETAIL_PAGE"), "DEFAULT" => "#USER_ALIAS#/#SECTION_ID#/#ELEMENT_ID#/", "VARIABLES" => array("USER_ALIAS", "SECTION_ID", "ELEMENT_ID")), "detail_edit" => array("NAME" => GetMessage("DETAIL_EDIT_PAGE"), "DEFAULT" => "#USER_ALIAS#/#SECTION_ID#/#ELEMENT_ID#/action/#ACTION#/", "VARIABLES" => array("USER_ALIAS", "SECTION_ID", "ELEMENT_ID")), "detail_slide_show" => array("NAME" => GetMessage("DETAIL_SLIDE_SHOW_PAGE"), "DEFAULT" => "#USER_ALIAS#/#SECTION_ID#/#ELEMENT_ID#/slide_show/", "VARIABLES" => array("USER_ALIAS", "SECTION_ID", "ELEMENT_ID")), "detail_list" => array("NAME" => GetMessage("DETAIL_LIST_PAGE"), "DEFAULT" => "list/", "VARIABLES" => array())), "SECTION_PAGE_ELEMENTS" => array("PARENT" => "PAGE_SETTINGS", "NAME" => GetMessage("IBLOCK_SECTION_PAGE_ELEMENT_COUNT"), "TYPE" => "STRING", "DEFAULT" => "15", "HIDDEN" => $hidden), "ELEMENTS_PAGE_ELEMENTS" => array("PARENT" => "PAGE_SETTINGS", "NAME" => GetMessage("IBLOCK_ELEMENTS_PAGE_ELEMENTS"), "TYPE" => "STRING", "DEFAULT" => '50', "HIDDEN" => $hidden), "PAGE_NAVIGATION_TEMPLATE" => array("PARENT" => "PAGE_SETTINGS", "NAME" => GetMessage("P_PAGE_NAVIGATION_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "", "HIDDEN" => $hidden), "DATE_TIME_FORMAT_SECTION" => CIBlockParameters::GetDateFormat(GetMessage("T_DATE_TIME_FORMAT_SECTION"), "ADDITIONAL_SETTINGS"), "DATE_TIME_FORMAT_DETAIL" => CIBlockParameters::GetDateFormat(GetMessage("T_DATE_TIME_FORMAT_DETAIL"), "ADDITIONAL_SETTINGS"), "GALLERY_AVATAR_SIZE" => array("PARENT" => "PHOTO_SETTINGS", "NAME" => GetMessage("P_GALLERY_AVATAR_SIZE"), "TYPE" => "STRING", "DEFAULT" => "50"), "ALBUM_PHOTO_THUMBS_SIZE" => array("PARENT" => "PHOTO_SETTINGS", "NAME" => GetMessage("P_ALBUM_PHOTO_THUMBS_SIZE"), "TYPE" => "STRING", "DEFAULT" => "120"), "THUMBNAIL_SIZE" => array("PARENT" => "PHOTO_SETTINGS", "NAME" => GetMessage("P_THUMBS_SIZE"), "TYPE" => "STRING", "DEFAULT" => "100"), "ORIGINAL_SIZE" => array("PARENT" => "PHOTO_SETTINGS", "NAME" => GetMessage("P_ORIGINAL_SIZE"), "TYPE" => "STRING", "DEFAULT" => "1280"), "JPEG_QUALITY1" => array("PARENT" => "PHOTO_SETTINGS", "NAME" => GetMessage("P_JPEG_QUALITY1"), "TYPE" => "STRING", "DEFAULT" => "100", "HIDDEN" => $hidden), "JPEG_QUALITY" => array("PARENT" => "PHOTO_SETTINGS", "NAME" => GetMessage("P_JPEG_QUALITY"), "TYPE" => "STRING", "DEFAULT" => "100", "HIDDEN" => $hidden), "ADDITIONAL_SIGHTS" => array("PARENT" => "PHOTO_SETTINGS", "NAME" => GetMessage("P_ADDITIONAL_SIGHTS"), "TYPE" => "LIST", "VALUES" => $arSights, "DEFAULT" => array(), "MULTIPLE" => "Y", "HIDDEN" => $hidden), "USE_RATING" => array("PARENT" => "RATING_SETTINGS", "NAME" => GetMessage("T_IBLOCK_DESC_USE_RATING"), "TYPE" => "CHECKBOX", "DEFAULT" => "N", "REFRESH" => "Y"), "SHOW_TAGS" => array("PARENT" => "TAGS_CLOUD", "NAME" => GetMessage("P_SHOW_TAGS"), "TYPE" => "CHECKBOX", "REFRESH" => IsModuleInstalled("search") ? "Y" : "N", "DEFAULT" => "N"), "SET_TITLE" => array(), "CACHE_TIME" => array("DEFAULT" => 3600)), "DRAG_SORT" => array("PARENT" => "BASE", "NAME" => GetMessage("P_DRAG_SORT"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y", "REFRESH" => "Y"));
if ($hidden == "Y") {
unset($arComponentParameters["GROUPS"]["PAGE_SETTINGS"]);
}
if ($arCurrentValues["USE_PERMISSIONS"] != "Y") {
unset($arComponentParameters["PARAMETERS"]["GROUP_PERMISSIONS"]);
}
$arComponentParameters["PARAMETERS"]["SHOW_NAVIGATION"] = array("PARENT" => "BASE", "NAME" => GetMessage("P_SHOW_NAVIGATION"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y");
/* UPLOADER PARAMS */
if ($arCurrentValues["UPLOADER_TYPE"]) {
$arComponentParameters["PARAMETERS"]["UPLOADER_TYPE"] = array("PARENT" => "UPLOADER", "NAME" => GetMessage("P_UPLOADER_TYPE"), "TYPE" => "LIST", "VALUES" => array("form" => GetMessage("P_UPLOADER_TYPE_FORM_SIMPLE"), "applet" => GetMessage("P_UPLOADER_TYPE_APPLET"), "flash" => GetMessage("P_UPLOADER_TYPE_FLASH")), "DEFAULT" => "form", "HIDDEN" => $arCurrentValues["UPLOADER_TYPE"] == "form" ? "Y" : "N", "REFRESH" => "Y");
}
if ($arCurrentValues["UPLOADER_TYPE"] == "applet") {
$arComponentParameters["PARAMETERS"]["APPLET_LAYOUT"] = array("PARENT" => "UPLOADER", "NAME" => GetMessage("P_APPLET_LAYOUT"), "TYPE" => "LIST", "VALUES" => array("extended" => GetMessage("P_APPLET_LAYOUT_EXTENDED"), "simple" => GetMessage("P_APPLET_LAYOUT_SIMPLE")), "DEFAULT" => "extended");
}
//This function transforms the php.ini notation for numbers (like 2G, 3M, 1T) to an value in Mb
示例3: array
<?php
if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) {
die;
}
if (!CModule::IncludeModule("iblock")) {
return;
}
$arIBlockType = array();
$rsIBlockType = CIBlockType::GetList(array("sort" => "asc"), array("ACTIVE" => "Y"));
while ($arr = $rsIBlockType->Fetch()) {
if ($ar = CIBlockType::GetByIDLang($arr["ID"], LANGUAGE_ID)) {
$arIBlockType[$arr["ID"]] = "[" . $arr["ID"] . "] " . $ar["~NAME"];
}
}
$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"];
}
if (empty($arCurrentValues["INDEX_URL"]) && !empty($arCurrentValues["SECTIONS_TOP_URL"])) {
$arCurrentValues["INDEX_URL"] = $arCurrentValues["SECTIONS_TOP_URL"];
}
$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), "SECTION_ID" => array("PARENT" => "BASE", "NAME" => GetMessage("IBLOCK_SECTION_ID"), "TYPE" => "STRING", "DEFAULT" => '={$_REQUEST["SECTION_ID"]}'), "SECTION_CODE" => array("PARENT" => "BASE", "NAME" => GetMessage("IBLOCK_SECTION_CODE"), "TYPE" => "STRING", "DEFAULT" => ''), "USER_ALIAS" => array("PARENT" => "BASE", "NAME" => GetMessage("P_USER_ALIAS"), "TYPE" => "STRING", "DEFAULT" => ''), "BEHAVIOUR" => array("PARENT" => "BASE", "NAME" => GetMessage("P_BEHAVIOUR"), "TYPE" => "STRING", "DEFAULT" => '', "REFRESH" => "Y"), "ACTION" => array("PARENT" => "BASE", "NAME" => GetMessage("P_ACTION"), "TYPE" => "STRING", "DEFAULT" => '={$_REQUEST["ACTION"]}'), "INDEX_URL" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("IBLOCK_INDEX_URL"), "TYPE" => "STRING", "DEFAULT" => "index.php"), "SECTION_URL" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("IBLOCK_SECTION_URL"), "TYPE" => "STRING", "DEFAULT" => "section.php?" . ($arCurrentValues["BEHAVIOUR"] == "USER" ? "USER_ALIAS=#USER_ALIAS#" : "") . "SECTION_ID=#SECTION_ID#"), "DATE_TIME_FORMAT" => CIBlockParameters::GetDateFormat(GetMessage("T_DATE_TIME_FORMAT"), "ADDITIONAL_SETTINGS"), "SET_STATUS_404" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("P_SET_STATUS_404"), "TYPE" => "CHECKBOX", "DEFAULT" => "N"), "CACHE_TIME" => array("DEFAULT" => 3600), "SET_TITLE" => array()));
if ($arCurrentValues["BEHAVIOUR"] == "USER") {
$arComponentParameters["PARAMETERS"]["GALLERY_URL"] = array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("IBLOCK_GALLERY_URL"), "TYPE" => "STRING", "DEFAULT" => "gallery.php?USER_ALIAS=#USER_ALIAS#");
}
示例4: while
$rs = CUserTypeEntity::GetList([], $filter);
while ($field = $rs->Fetch()) {
$sectionProperties[$field['FIELD_NAME']] = $field['FIELD_NAME'];
}
//select element properties
$filter = ['ACTIVE' => 'Y', 'IBLOCK_ID' => $currentIblockId];
$rsProp = CIBlockProperty::GetList([], $filter);
while ($item = $rsProp->Fetch()) {
$elementProperties[$item['CODE']] = '[' . $item['CODE'] . '] ' . $item['NAME'];
}
}
$arComponentParameters = array('GROUPS' => array('ELEMENTS_SORTING' => array('NAME' => 'Сортировка элементов', 'SORT' => 150), 'SECTION_SORTING' => array('NAME' => 'Сортировка разделов', 'SORT' => 160)), 'PARAMETERS' => array('IBLOCK_TYPE' => array('PARENT' => 'BASE', 'NAME' => 'Тип инфоблоков', 'TYPE' => 'LIST', 'VALUES' => $iblockTypes, 'REFRESH' => 'Y'), 'IBLOCK_CODE' => array('PARENT' => 'BASE', 'NAME' => 'Код инфоблока', 'TYPE' => 'LIST', 'VALUES' => $iblocks, 'REFRESH' => 'Y'), 'ELEMENTS_COUNT' => array('PARENT' => 'BASE', 'NAME' => 'Количество записей в списке', 'TYPE' => 'STRING', 'DEFAULT' => '20'), 'SELECT_SECTIONS' => array('PARENT' => 'BASE', 'NAME' => 'Запрашивать разделы инфоблока', 'TYPE' => 'CHECKBOX', 'DEFAULT' => 'N', 'REFRESH' => 'Y'), 'ELEMENT_SORT_BY1' => array('PARENT' => 'ELEMENTS_SORTING', 'NAME' => 'Поле для 1-ой сортировки', 'TYPE' => 'LIST', 'DEFAULT' => 'ACTIVE_FROM', 'VALUES' => CIBlockParameters::GetElementSortFields(), 'ADDITIONAL_VALUES' => 'Y'), 'ELEMENT_SORT_ORDER1' => array('PARENT' => 'ELEMENTS_SORTING', 'NAME' => 'Направление 1-ой сортировки', 'TYPE' => 'LIST', 'DEFAULT' => 'DESC', 'VALUES' => $arSorts, 'ADDITIONAL_VALUES' => 'Y'), 'ELEMENT_SORT_BY2' => array('PARENT' => 'ELEMENTS_SORTING', 'NAME' => 'Поле для 2-ой сортировки', 'TYPE' => 'LIST', 'DEFAULT' => 'SORT', 'VALUES' => CIBlockParameters::GetElementSortFields(), 'ADDITIONAL_VALUES' => 'Y'), 'ELEMENT_SORT_ORDER2' => array('PARENT' => 'ELEMENTS_SORTING', 'NAME' => 'Направление 2-ой сортировки', 'TYPE' => 'LIST', 'DEFAULT' => 'ASC', 'VALUES' => $arSorts, 'ADDITIONAL_VALUES' => 'Y'), 'ELEMENT_SORT_BY3' => array('PARENT' => 'ELEMENTS_SORTING', 'NAME' => 'Поле для 3-ей сортировки', 'TYPE' => 'LIST', 'DEFAULT' => 'SORT', 'VALUES' => CIBlockParameters::GetElementSortFields(), 'ADDITIONAL_VALUES' => 'Y'), 'ELEMENT_SORT_ORDER3' => array('PARENT' => 'ELEMENTS_SORTING', 'NAME' => 'Направление 3-ей сортировки', 'TYPE' => 'LIST', 'DEFAULT' => 'ASC', 'VALUES' => $arSorts, 'ADDITIONAL_VALUES' => 'Y'), 'ELEMENT_FIELDS' => array('PARENT' => 'DATA_SOURCE', 'NAME' => 'Поля элементов', 'TYPE' => 'LIST', 'MULTIPLE' => 'Y', 'SIZE' => 8, 'VALUES' => ['NAME' => 'Название', 'CODE' => 'Символьный код', 'DETAIL_PAGE_URL' => 'Ссылка на детальную страницу', 'ACTIVE_FROM' => 'Начало активности', 'ACTIVE_TO' => 'Окончание активности', 'PREVIEW_TEXT' => 'Описание для анонса', 'PREVIEW_PICTURE' => 'Картинка для анонса', 'DETAIL_TEXT' => 'Детальное описание', 'DETAIL_PICTURE' => 'Детальная картинка', 'IBLOCK_SECTION_ID' => 'ID раздела', 'TAGS' => 'Теги', 'SORT' => 'Индекс сортировки'], 'ADDITIONAL_VALUES' => 'Y'), 'ELEMENT_PROPERTIES' => array('PARENT' => 'DATA_SOURCE', 'NAME' => 'Свойства элементов', 'TYPE' => 'LIST', 'MULTIPLE' => 'Y', 'SIZE' => 8, 'VALUES' => $elementProperties, 'ADDITIONAL_VALUES' => 'Y'), 'FILTER_NAME' => array('PARENT' => 'ADDITIONAL_SETTINGS', 'NAME' => 'Название PHP-переменной фильтра элементов инфоблока', 'TYPE' => 'STRING', 'DEFAULT' => ''), 'SHOW_PANEL_BUTTONS' => array('PARENT' => 'ADDITIONAL_SETTINGS', 'NAME' => 'Выводить кнопки управления контентом в режиме редактирования в публичной части', 'TYPE' => 'CHECKBOX', 'DEFAULT' => 'Y'), 'CUSTOM_DATE_FORMAT' => array('PARENT' => 'ADDITIONAL_SETTINGS', 'NAME' => 'Особый формат даты', 'TYPE' => 'CHECKBOX', 'DEFAULT' => 'N', 'REFRESH' => 'Y'), 'CACHE_TIME' => array('DEFAULT' => 36000000), 'CACHE_GROUPS' => array('PARENT' => 'CACHE_SETTINGS', 'NAME' => 'Учитывать права доступа', 'TYPE' => 'CHECKBOX', 'DEFAULT' => 'Y')));
$arComponentParameters['PARAMETERS']['SELECT_BY_SECTION'] = array('PARENT' => 'BASE', 'NAME' => 'Выбирать элементы по разделу', 'TYPE' => 'LIST', 'VALUES' => ['NO' => 'нет', 'CODE' => 'по коду раздела', 'ID' => 'по id раздела'], 'DEFAULT' => 'NO', 'REFRESH' => 'Y');
if ($arCurrentValues['SELECT_BY_SECTION'] == 'ID') {
$arComponentParameters['PARAMETERS']['SECTION_ID'] = array('PARENT' => 'BASE', 'NAME' => 'ID раздела', 'TYPE' => 'STRING', 'DEFAULT' => '');
} else {
if ($arCurrentValues['SELECT_BY_SECTION'] == 'CODE') {
$arComponentParameters['PARAMETERS']['SECTION_CODE'] = array('PARENT' => 'BASE', 'NAME' => 'Код раздела', 'TYPE' => 'STRING', 'DEFAULT' => '');
}
}
if (in_array($arCurrentValues['SELECT_BY_SECTION'], ['ID', 'CODE'])) {
$arComponentParameters['PARAMETERS']['INCLUDE_SUBSECTIONS'] = array('PARENT' => 'BASE', 'NAME' => 'Выбирать элементы из всех подразделов выбранного раздела', 'TYPE' => 'CHECKBOX', 'DEFAULT' => 'Y');
$arComponentParameters['PARAMETERS']['SELECT_SECTIONS_TREE'] = array('PARENT' => 'BASE', 'NAME' => 'Выбирать всё дерево разделов выбранного раздела', 'TYPE' => 'CHECKBOX', 'DEFAULT' => 'N');
CIBlockParameters::Add404Settings($arComponentParameters, $arCurrentValues);
}
if ($arCurrentValues['SELECT_SECTIONS'] == 'Y') {
$arComponentParameters['PARAMETERS'] = array_merge($arComponentParameters['PARAMETERS'], array('SECTION_SORT_BY1' => array('PARENT' => 'SECTION_SORTING', 'NAME' => 'Поле для 1-ой сортировки', 'TYPE' => 'LIST', 'DEFAULT' => 'SORT', 'VALUES' => CIBlockParameters::GetSectionSortFields(), 'ADDITIONAL_VALUES' => 'Y'), 'SECTION_SORT_ORDER1' => array('PARENT' => 'SECTION_SORTING', 'NAME' => 'Направление 1-ой сортировки', 'TYPE' => 'LIST', 'DEFAULT' => 'DESC', 'VALUES' => $arSorts, 'ADDITIONAL_VALUES' => 'Y'), 'SECTION_SORT_BY2' => array('PARENT' => 'SECTION_SORTING', 'NAME' => 'Поле для 2-ой сортировки', 'TYPE' => 'LIST', 'DEFAULT' => 'ID', 'VALUES' => CIBlockParameters::GetSectionSortFields(), 'ADDITIONAL_VALUES' => 'Y'), 'SECTION_SORT_ORDER2' => array('PARENT' => 'SECTION_SORTING', 'NAME' => 'Направление 2-ой сортировки', 'TYPE' => 'LIST', 'DEFAULT' => 'ASC', 'VALUES' => $arSorts, 'ADDITIONAL_VALUES' => 'Y'), 'SECTION_FIELDS' => array('PARENT' => 'DATA_SOURCE', 'NAME' => 'Поля разделов', 'TYPE' => 'LIST', 'MULTIPLE' => 'Y', 'SIZE' => 3, 'VALUES' => ['NAME' => 'Название', 'CODE' => 'Символьный код', 'IBLOCK_SECTION_ID' => 'ID родительского раздела', 'DESCRIPTION' => 'Описание', 'PICTURE' => 'Изображение'], 'ADDITIONAL_VALUES' => 'Y'), 'SECTION_PROPERTIES' => array('PARENT' => 'DATA_SOURCE', 'NAME' => 'Свойства разделов', 'TYPE' => 'LIST', 'MULTIPLE' => 'Y', 'VALUES' => $sectionProperties, 'ADDITIONAL_VALUES' => 'Y')));
}
if ($arCurrentValues['CUSTOM_DATE_FORMAT'] == 'Y') {
$arComponentParameters['PARAMETERS'] = array_merge($arComponentParameters['PARAMETERS'], array('ACTIVE_DATE_FORMAT' => CIBlockParameters::GetDateFormat('Формат показа даты', 'ADDITIONAL_SETTINGS')));
}
示例5: array
}
}
$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"];
}
$arUGroupsEx = array();
$dbUGroups = CGroup::GetList($by = "c_sort", $order = "asc");
while ($arUGroups = $dbUGroups->Fetch()) {
$arUGroupsEx[$arUGroups["ID"]] = $arUGroups["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), "SECTION_ID" => array("PARENT" => "BASE", "NAME" => GetMessage("IBLOCK_SECTION_ID"), "TYPE" => "STRING", "DEFAULT" => '={$_REQUEST["SECTION_ID"]}'), "SECTION_CODE" => array("PARENT" => "BASE", "NAME" => GetMessage("IBLOCK_SECTION_CODE"), "TYPE" => "STRING", "DEFAULT" => ''), "BEHAVIOUR" => array("PARENT" => "BASE", "NAME" => GetMessage("IBLOCK_BEHAVIOUR"), "TYPE" => "LIST", "VALUES" => array("SIMPLE" => GetMessage("IBLOCK_BEHAVIOUR_SIMPLE"), "USER" => GetMessage("IBLOCK_BEHAVIOUR_USER")), "DEFAULT" => "SIMPLE", "REFRESH" => "Y"), "PHOTO_LIST_MODE" => array("PARENT" => "BASE", "NAME" => GetMessage("P_PHOTO_LIST_MODE"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y", "REFRESH" => "Y")));
if ($arCurrentValues["PHOTO_LIST_MODE"] != "N") {
$arComponentParameters["PARAMETERS"]["SHOWN_ITEMS_COUNT"] = array("PARENT" => "BASE", "NAME" => GetMessage("P_SHOWN_ITEMS_COUNT"), "DEFAULT" => "6");
$arComponentParameters["PARAMETERS"]["ELEMENT_SORT_FIELD"] = array("PARENT" => "BASE", "NAME" => GetMessage("IBLOCK_ELEMENT_SORT_FIELD"), "TYPE" => "LIST", "VALUES" => array("SHOW_COUNTER" => 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"), "PROPERTY_RATING" => GetMessage("IBLOCK_SORT_RATING"), "PROPERTY_FORUM_MESSAGE_CNT" => GetMessage("IBLOCK_SORT_COMMENTS_FORUM"), "PROPERTY_BLOG_COMMENTS_CNT" => GetMessage("IBLOCK_SORT_COMMENTS_BLOG")), "ADDITIONAL_VALUES" => "Y", "DEFAULT" => "SORT");
$arComponentParameters["PARAMETERS"]["ELEMENT_SORT_ORDER"] = array("PARENT" => "BASE", "NAME" => GetMessage("IBLOCK_ELEMENT_SORT_ORDER"), "TYPE" => "LIST", "VALUES" => array("asc" => GetMessage("IBLOCK_SORT_ASC"), "desc" => GetMessage("IBLOCK_SORT_DESC")), "DEFAULT" => "asc");
$arComponentParameters["PARAMETERS"]["ELEMENT_SORT_FIELD1"] = array("PARENT" => "BASE", "NAME" => GetMessage("IBLOCK_ELEMENT_SORT_FIELD1"), "TYPE" => "LIST", "VALUES" => array("SHOW_COUNTER" => 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"), "PROPERTY_RATING" => GetMessage("IBLOCK_SORT_RATING"), "PROPERTY_FORUM_MESSAGE_CNT" => GetMessage("IBLOCK_SORT_COMMENTS_FORUM"), "PROPERTY_BLOG_COMMENTS_CNT" => GetMessage("IBLOCK_SORT_COMMENTS_BLOG")), "ADDITIONAL_VALUES" => "Y", "DEFAULT" => "");
$arComponentParameters["PARAMETERS"]["ELEMENT_SORT_ORDER1"] = array("PARENT" => "BASE", "NAME" => GetMessage("IBLOCK_ELEMENT_SORT_ORDER"), "TYPE" => "LIST", "VALUES" => array("asc" => GetMessage("IBLOCK_SORT_ASC"), "desc" => GetMessage("IBLOCK_SORT_DESC")), "DEFAULT" => "asc");
}
if ($arCurrentValues["BEHAVIOUR"] == "USER") {
$arComponentParameters["PARAMETERS"]["USER_ALIAS"] = array("PARENT" => "BASE", "NAME" => GetMessage("P_USER_ALIAS"), "TYPE" => "STRING", "DEFAULT" => '');
}
if (empty($arCurrentValues["INDEX_URL"]) && !empty($arCurrentValues["SECTIONS_TOP_URL"])) {
$arCurrentValues["INDEX_URL"] = $arCurrentValues["SECTIONS_TOP_URL"];
}
$arComponentParameters["PARAMETERS"] = array_merge($arComponentParameters["PARAMETERS"], array("SORT_BY" => array("PARENT" => "BASE", "NAME" => GetMessage("IBLOCK_SECTION_SORT_FIELD"), "TYPE" => "LIST", "VALUES" => array("ID" => "ID", "NAME" => GetMessage("IBLOCK_SORT_NAME"), "SORT" => GetMessage("IBLOCK_SORT_SORT"), "ELEMENTS_CNT" => GetMessage("IBLOCK_SORT_ELEMENTS_CNT"), "UF_DATE" => GetMessage("IBLOCK_SORT_DATE")), "DEFAULT" => "UF_DATE"), "SORT_ORD" => array("PARENT" => "BASE", "NAME" => GetMessage("IBLOCK_SECTION_SORT_ORDER"), "TYPE" => "LIST", "VALUES" => array("ASC" => GetMessage("IBLOCK_SORT_ASC"), "DESC" => GetMessage("IBLOCK_SORT_DESC")), "DEFAULT" => "ASC"), "INDEX_URL" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("IBLOCK_INDEX_URL"), "TYPE" => "STRING", "DEFAULT" => "index.php"), "SECTION_URL" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("IBLOCK_SECTION_URL"), "TYPE" => "STRING", "DEFAULT" => "section.php?" . ($arCurrentValues["BEHAVIOUR"] == "USER" ? "USER_ALIAS=#USER_ALIAS#" : "") . "SECTION_ID=#SECTION_ID#"), "SECTION_EDIT_URL" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("IBLOCK_SECTION_EDIT_URL"), "TYPE" => "STRING", "DEFAULT" => "section_edit.php?" . ($arCurrentValues["BEHAVIOUR"] == "USER" ? "USER_ALIAS=#USER_ALIAS#" : "") . "SECTION_ID=#SECTION_ID#"), "SECTION_EDIT_ICON_URL" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("IBLOCK_SECTION_EDIT_ICON_URL"), "TYPE" => "STRING", "DEFAULT" => "section_edit_icon.php?" . ($arCurrentValues["BEHAVIOUR"] == "USER" ? "USER_ALIAS=#USER_ALIAS#" : "") . "SECTION_ID=#SECTION_ID#"), "UPLOAD_URL" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("IBLOCK_UPLOAD_URL"), "TYPE" => "STRING", "DEFAULT" => "upload.php?" . ($arCurrentValues["BEHAVIOUR"] == "USER" ? "USER_ALIAS=#USER_ALIAS#" : "") . "SECTION_ID=#SECTION_ID#"), "ALBUM_PHOTO_SIZE" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("P_ALBUM_PHOTO_WIDTH"), "TYPE" => "STRING", "DEFAULT" => "200"), "ALBUM_PHOTO_THUMBS_SIZE" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("P_ALBUM_PHOTO_THUMBS_WIDTH"), "TYPE" => "STRING", "DEFAULT" => "120"), "PAGE_ELEMENTS" => array("PARENT" => "BASE", "NAME" => GetMessage("IBLOCK_SECTION_PAGE_ELEMENT_COUNT"), "TYPE" => "STRING", "DEFAULT" => 0), "PAGE_NAVIGATION_TEMPLATE" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("IBLOCK_PAGE_NAVIGATION_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => ""), "DATE_TIME_FORMAT" => CIBlockParameters::GetDateFormat(GetMessage("T_DATE_TIME_FORMAT"), "ADDITIONAL_SETTINGS"), "SET_STATUS_404" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("P_SET_STATUS_404"), "TYPE" => "CHECKBOX", "DEFAULT" => "N"), "SET_TITLE" => array(), "CACHE_TIME" => array("DEFAULT" => 3600)));
if ($arCurrentValues["BEHAVIOUR"] == "USER") {
$arComponentParameters["PARAMETERS"]["GALLERY_URL"] = array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("IBLOCK_GALLERY_URL"), "TYPE" => "STRING", "DEFAULT" => "gallery.php?USER_ALIAS=#USER_ALIAS#");
$arComponentParameters["PARAMETERS"]["GALLERY_SIZE"] = array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("P_GALLERY_SIZE"), "TYPE" => "STRING", "DEFAULT" => "");
}
示例6: array
<?php
if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) {
die;
}
/** @var array $arCurrentValues */
if (!CModule::IncludeModule("iblock")) {
return;
}
$arTypesEx = CIBlockParameters::GetIBlockTypes(array("-" => " "));
$arIBlocks = array();
$db_iblock = CIBlock::GetList(array("SORT" => "ASC"), array("SITE_ID" => $_REQUEST["site"], "TYPE" => $arCurrentValues["IBLOCK_TYPE"] != "-" ? $arCurrentValues["IBLOCK_TYPE"] : ""));
while ($arRes = $db_iblock->Fetch()) {
$arIBlocks[$arRes["ID"]] = $arRes["NAME"];
}
$arSorts = array("ASC" => GetMessage("T_IBLOCK_DESC_ASC"), "DESC" => GetMessage("T_IBLOCK_DESC_DESC"));
$arSortFields = array("ID" => GetMessage("T_IBLOCK_DESC_FID"), "NAME" => GetMessage("T_IBLOCK_DESC_FNAME"), "ACTIVE_FROM" => GetMessage("T_IBLOCK_DESC_FACT"), "SORT" => GetMessage("T_IBLOCK_DESC_FSORT"), "TIMESTAMP_X" => GetMessage("T_IBLOCK_DESC_FTSAMP"));
$arProperty_LNS = array();
$rsProp = CIBlockProperty::GetList(array("sort" => "asc", "name" => "asc"), array("ACTIVE" => "Y", "IBLOCK_ID" => isset($arCurrentValues["IBLOCK_ID"]) ? $arCurrentValues["IBLOCK_ID"] : $arCurrentValues["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"];
}
}
$arComponentParameters = array("GROUPS" => array(), "PARAMETERS" => array("AJAX_MODE" => array(), "IBLOCK_TYPE" => array("PARENT" => "BASE", "NAME" => GetMessage("T_IBLOCK_DESC_LIST_TYPE"), "TYPE" => "LIST", "VALUES" => $arTypesEx, "DEFAULT" => "news", "REFRESH" => "Y"), "IBLOCK_ID" => array("PARENT" => "BASE", "NAME" => GetMessage("T_IBLOCK_DESC_LIST_ID"), "TYPE" => "LIST", "VALUES" => $arIBlocks, "DEFAULT" => '={$_REQUEST["ID"]}', "ADDITIONAL_VALUES" => "Y", "REFRESH" => "Y"), "NEWS_COUNT" => array("PARENT" => "BASE", "NAME" => GetMessage("T_IBLOCK_DESC_LIST_CONT"), "TYPE" => "STRING", "DEFAULT" => "20"), "SORT_BY1" => array("PARENT" => "DATA_SOURCE", "NAME" => GetMessage("T_IBLOCK_DESC_IBORD1"), "TYPE" => "LIST", "DEFAULT" => "ACTIVE_FROM", "VALUES" => $arSortFields, "ADDITIONAL_VALUES" => "Y"), "SORT_ORDER1" => array("PARENT" => "DATA_SOURCE", "NAME" => GetMessage("T_IBLOCK_DESC_IBBY1"), "TYPE" => "LIST", "DEFAULT" => "DESC", "VALUES" => $arSorts, "ADDITIONAL_VALUES" => "Y"), "SORT_BY2" => array("PARENT" => "DATA_SOURCE", "NAME" => GetMessage("T_IBLOCK_DESC_IBORD2"), "TYPE" => "LIST", "DEFAULT" => "SORT", "VALUES" => $arSortFields, "ADDITIONAL_VALUES" => "Y"), "SORT_ORDER2" => array("PARENT" => "DATA_SOURCE", "NAME" => GetMessage("T_IBLOCK_DESC_IBBY2"), "TYPE" => "LIST", "DEFAULT" => "ASC", "VALUES" => $arSorts, "ADDITIONAL_VALUES" => "Y"), "FILTER_NAME" => array("PARENT" => "DATA_SOURCE", "NAME" => GetMessage("T_IBLOCK_FILTER"), "TYPE" => "STRING", "DEFAULT" => ""), "FIELD_CODE" => CIBlockParameters::GetFieldCode(GetMessage("IBLOCK_FIELD"), "DATA_SOURCE"), "PROPERTY_CODE" => array("PARENT" => "DATA_SOURCE", "NAME" => GetMessage("T_IBLOCK_PROPERTY"), "TYPE" => "LIST", "MULTIPLE" => "Y", "VALUES" => $arProperty_LNS, "ADDITIONAL_VALUES" => "Y"), "CHECK_DATES" => array("PARENT" => "DATA_SOURCE", "NAME" => GetMessage("T_IBLOCK_DESC_CHECK_DATES"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y"), "DETAIL_URL" => CIBlockParameters::GetPathTemplateParam("DETAIL", "DETAIL_URL", GetMessage("T_IBLOCK_DESC_DETAIL_PAGE_URL"), "", "URL_TEMPLATES"), "PREVIEW_TRUNCATE_LEN" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("T_IBLOCK_DESC_PREVIEW_TRUNCATE_LEN"), "TYPE" => "STRING", "DEFAULT" => ""), "ACTIVE_DATE_FORMAT" => CIBlockParameters::GetDateFormat(GetMessage("T_IBLOCK_DESC_ACTIVE_DATE_FORMAT"), "ADDITIONAL_SETTINGS"), "SET_TITLE" => array(), "SET_BROWSER_TITLE" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("CP_BNL_SET_BROWSER_TITLE"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y"), "SET_META_KEYWORDS" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("CP_BNL_SET_META_KEYWORDS"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y"), "SET_META_DESCRIPTION" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("CP_BNL_SET_META_DESCRIPTION"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y"), "SET_LAST_MODIFIED" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("CP_BNL_SET_LAST_MODIFIED"), "TYPE" => "CHECKBOX", "DEFAULT" => "N"), "INCLUDE_IBLOCK_INTO_CHAIN" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("T_IBLOCK_DESC_INCLUDE_IBLOCK_INTO_CHAIN"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y"), "ADD_SECTIONS_CHAIN" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("T_IBLOCK_DESC_ADD_SECTIONS_CHAIN"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y"), "HIDE_LINK_WHEN_NO_DETAIL" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("T_IBLOCK_DESC_HIDE_LINK_WHEN_NO_DETAIL"), "TYPE" => "CHECKBOX", "DEFAULT" => "N"), "PARENT_SECTION" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("IBLOCK_SECTION_ID"), "TYPE" => "STRING", "DEFAULT" => ''), "PARENT_SECTION_CODE" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("IBLOCK_SECTION_CODE"), "TYPE" => "STRING", "DEFAULT" => ''), "INCLUDE_SUBSECTIONS" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("CP_BNL_INCLUDE_SUBSECTIONS"), "TYPE" => "CHECKBOX", "DEFAULT" => "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_BNL_CACHE_GROUPS"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y")));
CIBlockParameters::AddPagerSettings($arComponentParameters, GetMessage("T_IBLOCK_DESC_PAGER_NEWS"), true, true, true, $arCurrentValues["PAGER_BASE_LINK_ENABLE"] === "Y");
CIBlockParameters::Add404Settings($arComponentParameters, $arCurrentValues);
示例7: array
'SHOW_DATE' => array(
'NAME' => GetMessage("SHOW_DATE"),
'TYPE' => 'CHECKBOX',
'PARENT' => 'VIS',
'ADDITIONAL_VALUES' => 'N',
"DEFAULT" => 'Y',
),
'SHOW_COMMENT_LINK' => array(
'NAME' => GetMessage("SHOW_COMMENT_LINK"),
'TYPE' => 'CHECKBOX',
'PARENT' => 'VIS',
'ADDITIONAL_VALUES' => 'N',
"DEFAULT" => 'N'
),
"DATE_FORMAT" => CIBlockParameters::GetDateFormat(GetMessage("DATE_FORMAT"), "VIS"),
'SHOW_COUNT' => array(
'NAME' => GetMessage("SHOW_COUNT"),
'TYPE' => 'CHECKBOX',
'PARENT' => 'VIS',
'ADDITIONAL_VALUES' => 'N',
"DEFAULT" => 'Y'
),
'NO_FOLLOW' => array(
'NAME' => GetMessage("NO_FOLLOW"),
'TYPE' => 'CHECKBOX',
'PARENT' => 'SEO',
'ADDITIONAL_VALUES' => 'N',
),
'NO_INDEX' => array(
示例8: GetMessage
"PARENT" => "DETAIL_SETTINGS",
"NAME" => GetMessage("T_IBLOCK_DESC_DESCRIPTION"),
"TYPE" => "LIST",
"MULTIPLE" => "N",
"DEFAULT" => "-",
"VALUES" => array_merge(Array("-"=>" "),$arProperty_LNS),
),
"BROWSER_TITLE" => array(
"PARENT" => "DETAIL_SETTINGS",
"NAME" => GetMessage("CP_BN_BROWSER_TITLE"),
"TYPE" => "LIST",
"MULTIPLE" => "N",
"DEFAULT" => "-",
"VALUES" => array_merge(Array("-"=>" ", "NAME" => GetMessage("IBLOCK_FIELD_NAME")), $arProperty_LNS),
),
"DETAIL_ACTIVE_DATE_FORMAT" => CIBlockParameters::GetDateFormat(GetMessage("T_IBLOCK_DESC_ACTIVE_DATE_FORMAT"), "DETAIL_SETTINGS"),
"DETAIL_FIELD_CODE" => CIBlockParameters::GetFieldCode(GetMessage("IBLOCK_FIELD"), "DETAIL_SETTINGS"),
"DETAIL_PROPERTY_CODE" => array(
"PARENT" => "DETAIL_SETTINGS",
"NAME" => GetMessage("T_IBLOCK_PROPERTY"),
"TYPE" => "LIST",
"MULTIPLE" => "Y",
"VALUES" => $arProperty_LNS,
"ADDITIONAL_VALUES" => "Y",
),
"DETAIL_DISPLAY_TOP_PAGER" => array(
"PARENT" => "DETAIL_PAGER_SETTINGS",
"NAME" => GetMessage("T_IBLOCK_DESC_TOP_PAGER"),
"TYPE" => "CHECKBOX",
"DEFAULT" => "N",
),
示例9: array
<?php
if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) {
die;
}
if (!CModule::IncludeModule("iblock")) {
return;
}
$arTypesEx = CIBlockParameters::GetIBlockTypes();
$arIBlocks = array();
$db_iblock = CIBlock::GetList(array("SORT" => "ASC"), array("SITE_ID" => $_REQUEST["site"], "TYPE" => $arCurrentValues["IBLOCK_TYPE"] != "-" ? $arCurrentValues["IBLOCK_TYPE"] : ""));
while ($arRes = $db_iblock->Fetch()) {
$arIBlocks[$arRes["ID"]] = $arRes["NAME"];
}
$arSorts = array("ASC" => GetMessage("T_IBLOCK_DESC_ASC"), "DESC" => GetMessage("T_IBLOCK_DESC_DESC"));
$arSortFields = array("ID" => GetMessage("T_IBLOCK_DESC_FID"), "NAME" => GetMessage("T_IBLOCK_DESC_FNAME"), "ACTIVE_FROM" => GetMessage("T_IBLOCK_DESC_FACT"), "SORT" => GetMessage("T_IBLOCK_DESC_FSORT"), "TIMESTAMP_X" => GetMessage("T_IBLOCK_DESC_FTSAMP"));
$arComponentParameters = array("GROUPS" => array(), "PARAMETERS" => array("IBLOCK_TYPE" => array("PARENT" => "BASE", "NAME" => GetMessage("T_IBLOCK_DESC_LIST_TYPE"), "TYPE" => "LIST", "VALUES" => $arTypesEx, "DEFAULT" => "news", "REFRESH" => "Y"), "IBLOCKS" => array("PARENT" => "BASE", "NAME" => GetMessage("T_IBLOCK_DESC_LIST_ID"), "TYPE" => "LIST", "VALUES" => $arIBlocks, "DEFAULT" => '', "MULTIPLE" => "Y"), "NEWS_COUNT" => array("PARENT" => "BASE", "NAME" => GetMessage("T_IBLOCK_DESC_LIST_CONT"), "TYPE" => "STRING", "DEFAULT" => "20"), "FIELD_CODE" => CIBlockParameters::GetFieldCode(GetMessage("CP_BNL_FIELD_CODE"), "DATA_SOURCE"), "SORT_BY1" => array("PARENT" => "DATA_SOURCE", "NAME" => GetMessage("T_IBLOCK_DESC_IBORD1"), "TYPE" => "LIST", "DEFAULT" => "ACTIVE_FROM", "VALUES" => $arSortFields, "ADDITIONAL_VALUES" => "Y"), "SORT_ORDER1" => array("PARENT" => "DATA_SOURCE", "NAME" => GetMessage("T_IBLOCK_DESC_IBBY1"), "TYPE" => "LIST", "DEFAULT" => "DESC", "VALUES" => $arSorts, "ADDITIONAL_VALUES" => "Y"), "SORT_BY2" => array("PARENT" => "DATA_SOURCE", "NAME" => GetMessage("T_IBLOCK_DESC_IBORD2"), "TYPE" => "LIST", "DEFAULT" => "SORT", "VALUES" => $arSortFields, "ADDITIONAL_VALUES" => "Y"), "SORT_ORDER2" => array("PARENT" => "DATA_SOURCE", "NAME" => GetMessage("T_IBLOCK_DESC_IBBY2"), "TYPE" => "LIST", "DEFAULT" => "ASC", "VALUES" => $arSorts, "ADDITIONAL_VALUES" => "Y"), "DETAIL_URL" => CIBlockParameters::GetPathTemplateParam("DETAIL", "DETAIL_URL", GetMessage("IBLOCK_DETAIL_URL"), "", "URL_TEMPLATES"), "ACTIVE_DATE_FORMAT" => CIBlockParameters::GetDateFormat(GetMessage("T_IBLOCK_DESC_ACTIVE_DATE_FORMAT"), "ADDITIONAL_SETTINGS"), "CACHE_TIME" => array("DEFAULT" => 300), "CACHE_GROUPS" => array("PARENT" => "CACHE_SETTINGS", "NAME" => GetMessage("CP_BNL_CACHE_GROUPS"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y")));
示例10: while
}
Loc::loadMessages(__FILE__);
try {
ComponentParameters::includeModules(['iblock']);
$iblockTypes = CIBlockParameters::GetIBlockTypes([0 => '']);
$iblocks = [0 => ''];
$sections = [0 => ''];
$elementProperties = [];
if (isset($arCurrentValues['IBLOCK_TYPE']) && strlen($arCurrentValues['IBLOCK_TYPE'])) {
$rsIblocks = Iblock\IblockTable::getList(['order' => ['SORT' => 'ASC', 'NAME' => 'ASC'], 'filter' => ['IBLOCK_TYPE_ID' => $arCurrentValues['IBLOCK_TYPE'], 'ACTIVE' => 'Y'], 'select' => ['ID', 'NAME']]);
while ($iblock = $rsIblocks->fetch()) {
$iblocks[$iblock['ID']] = $iblock['NAME'];
}
}
if (isset($arCurrentValues['IBLOCK_ID']) && strlen($arCurrentValues['IBLOCK_ID'])) {
$rsSections = Iblock\SectionTable::getList(['order' => ['SORT' => 'ASC', 'NAME' => 'ASC'], 'filter' => ['IBLOCK_ID' => $arCurrentValues['IBLOCK_ID'], 'ACTIVE' => 'Y'], 'select' => ['ID', 'NAME']]);
while ($arSection = $rsSections->fetch()) {
$sections[$arSection['ID']] = $arSection['NAME'];
}
$rsProperties = CIBlockProperty::GetList(['sort' => 'asc', 'name' => 'asc'], ['ACTIVE' => 'Y', 'IBLOCK_ID' => $arCurrentValues['IBLOCK_ID']]);
while ($property = $rsProperties->Fetch()) {
$elementProperties[$property['CODE']] = '[' . $property['CODE'] . '] ' . $property['NAME'];
}
}
$paramElementsFields = CIBlockParameters::GetFieldCode(Loc::getMessage('ELEMENTS_LIST_FIELDS'), 'BASE');
$sortOrders = ['ASC' => Loc::getMessage('ELEMENTS_LIST_SORT_ORDER_ASC'), 'DESC' => Loc::getMessage('ELEMENTS_LIST_SORT_ORDER_DESC')];
$arComponentParameters = ['GROUPS' => ['AJAX' => ['NAME' => Loc::getMessage('ELEMENTS_LIST_GROUP_AJAX')], 'SEO' => ['NAME' => Loc::getMessage('ELEMENTS_LIST_GROUP_SEO')], 'OTHERS' => ['NAME' => Loc::getMessage('ELEMENTS_LIST_GROUP_OTHERS')]], 'PARAMETERS' => ['IBLOCK_TYPE' => ['PARENT' => 'BASE', 'NAME' => Loc::getMessage('ELEMENTS_LIST_IBLOCK_TYPE'), 'TYPE' => 'LIST', 'VALUES' => $iblockTypes, 'DEFAULT' => '', 'REFRESH' => 'Y'], 'IBLOCK_ID' => ['PARENT' => 'BASE', 'NAME' => Loc::getMessage('ELEMENTS_LIST_IBLOCK_ID'), 'TYPE' => 'LIST', 'VALUES' => $iblocks, 'REFRESH' => 'Y'], 'SECTION_ID' => ['PARENT' => 'BASE', 'NAME' => Loc::getMessage('ELEMENTS_LIST_SECTION_ID'), 'TYPE' => 'LIST', 'VALUES' => $sections], 'SECTION_CODE' => ['PARENT' => 'BASE', 'NAME' => Loc::getMessage('ELEMENTS_LIST_SECTION_CODE'), 'TYPE' => 'STRING'], 'INCLUDE_SUBSECTIONS' => ['PARENT' => 'BASE', 'NAME' => Loc::getMessage('ELEMENTS_LIST_INCLUDE_SUBSECTIONS'), 'TYPE' => 'CHECKBOX', 'DEFAULT' => 'N'], 'SORT_BY_1' => ['PARENT' => 'BASE', 'NAME' => Loc::getMessage('ELEMENTS_LIST_SORT_BY_1'), 'TYPE' => 'LIST', 'VALUES' => CIBlockParameters::GetElementSortFields()], 'SORT_ORDER_1' => ['PARENT' => 'BASE', 'NAME' => Loc::getMessage('ELEMENTS_LIST_SORT_ORDER_1'), 'TYPE' => 'LIST', 'VALUES' => $sortOrders], 'SORT_BY_2' => ['PARENT' => 'BASE', 'NAME' => Loc::getMessage('ELEMENTS_LIST_SORT_BY_2'), 'TYPE' => 'LIST', 'VALUES' => CIBlockParameters::GetElementSortFields()], 'SORT_ORDER_2' => ['PARENT' => 'BASE', 'NAME' => Loc::getMessage('ELEMENTS_LIST_SORT_ORDER_2'), 'TYPE' => 'LIST', 'VALUES' => $sortOrders], 'SELECT_FIELDS' => $paramElementsFields, 'SELECT_PROPS' => ['PARENT' => 'BASE', 'NAME' => Loc::getMessage('ELEMENTS_LIST_PROPERTIES'), 'TYPE' => 'LIST', 'MULTIPLE' => 'Y', 'VALUES' => $elementProperties, 'ADDITIONAL_VALUES' => 'Y'], 'RESULT_PROCESSING_MODE' => ['PARENT' => 'BASE', 'NAME' => Loc::getMessage('ELEMENTS_LIST_RESULT_PROCESSING_MODE'), 'TYPE' => 'LIST', 'VALUES' => ['DEFAULT' => Loc::getMessage('ELEMENTS_LIST_RESULT_PROCESSING_MODE_DEFAULT'), 'EXTENDED' => Loc::getMessage('ELEMENTS_LIST_RESULT_PROCESSING_MODE_EXTENDED')]], 'EX_FILTER_NAME' => ['PARENT' => 'BASE', 'NAME' => Loc::getMessage('ELEMENTS_LIST_EX_FILTER_NAME'), 'TYPE' => 'STRING', 'DEFAULT' => ''], 'PAGER_SAVE_SESSION' => ['PARENT' => 'PAGER_SETTINGS', 'NAME' => Loc::getMessage('ELEMENTS_LIST_NAV_SAVE_SESSION'), 'TYPE' => 'CHECKBOX', 'DEFAULT' => 'N'], 'ELEMENTS_COUNT' => ['PARENT' => 'PAGER_SETTINGS', 'NAME' => Loc::getMessage('ELEMENTS_LIST_ELEMENTS_COUNT'), 'TYPE' => 'STRING', 'DEFAULT' => '10'], 'USE_AJAX' => ['PARENT' => 'AJAX', 'NAME' => Loc::getMessage('ELEMENTS_LIST_USE_AJAX'), 'TYPE' => 'CHECKBOX', 'DEFAULT' => 'Y'], 'AJAX_TYPE' => ['PARENT' => 'AJAX', 'NAME' => Loc::getMessage('ELEMENTS_LIST_AJAX_TYPE'), 'TYPE' => 'LIST', 'VALUES' => ['DEFAULT' => Loc::getMessage('ELEMENTS_LIST_AJAX_TYPE_DEFAULT'), 'JSON' => Loc::getMessage('ELEMENTS_LIST_AJAX_TYPE_JSON')]], 'AJAX_HEAD_RELOAD' => ['PARENT' => 'AJAX', 'NAME' => Loc::getMessage('ELEMENTS_LIST_AJAX_HEAD_RELOAD'), 'TYPE' => 'CHECKBOX', 'DEFAULT' => 'N'], 'AJAX_TEMPLATE_PAGE' => ['PARENT' => 'AJAX', 'NAME' => Loc::getMessage('ELEMENTS_LIST_AJAX_TEMPLATE_PAGE'), 'TYPE' => 'STRING', 'DEFAULT' => ''], 'AJAX_COMPONENT_ID' => ['PARENT' => 'AJAX', 'NAME' => Loc::getMessage('ELEMENTS_LIST_AJAX_COMPONENT_ID'), 'TYPE' => 'STRING', 'DEFAULT' => ''], 'SET_SEO_TAGS' => ['PARENT' => 'SEO', 'NAME' => Loc::getMessage('ELEMENTS_LIST_SET_SEO_TAGS'), 'TYPE' => 'CHECKBOX', 'DEFAULT' => 'Y'], 'ADD_SECTIONS_CHAIN' => ['PARENT' => 'SEO', 'NAME' => Loc::getMessage('ELEMENTS_LIST_ADD_SECTIONS_CHAIN'), 'TYPE' => 'CHECKBOX', 'DEFAULT' => 'Y'], 'SET_404' => ['PARENT' => 'OTHERS', 'NAME' => Loc::getMessage('ELEMENTS_LIST_SET_404'), 'TYPE' => 'CHECKBOX', 'DEFAULT' => 'N'], 'CHECK_PERMISSIONS' => ['PARENT' => 'OTHERS', 'NAME' => Loc::getMessage('ELEMENTS_LIST_CHECK_PERMISSIONS'), 'TYPE' => 'CHECKBOX', 'DEFAULT' => 'Y'], 'DATE_FORMAT' => CIBlockParameters::GetDateFormat(Loc::getMessage('ELEMENTS_LIST_DATE_FORMAT'), 'OTHERS'), 'CACHE_GROUPS' => ['PARENT' => 'CACHE_SETTINGS', 'NAME' => Loc::getMessage('ELEMENTS_LIST_CACHE_GROUPS'), 'TYPE' => 'CHECKBOX', 'DEFAULT' => 'N'], 'CACHE_TIME' => ['DEFAULT' => 360000]]];
CIBlockParameters::AddPagerSettings($arComponentParameters, Loc::getMessage('ELEMENTS_LIST_NAV_TITLE'), true, true);
} catch (Exception $e) {
ShowError($e->getMessage());
}
示例11: array
"DEFAULT" => "Y"
),
"SHOWN_ITEMS_COUNT" => array(
"PARENT" => "PHOTO_SETTINGS",
"NAME" => GetMessage("P_SHOWN_ITEMS_COUNT"),
"DEFAULT" => "6"
),
"SHOW_NAVIGATION" => array(
"PARENT" => "PHOTO_SETTINGS",
"NAME" => GetMessage("P_SHOW_NAVIGATION"),
"TYPE" => "CHECKBOX",
"DEFAULT" => "N",
"HIDDEN" => $hidden
),
"DATE_TIME_FORMAT_DETAIL" => CIBlockParameters::GetDateFormat(GetMessage("T_DATE_TIME_FORMAT_DETAIL"), "ADDITIONAL_SETTINGS"),
"DATE_TIME_FORMAT_SECTION" => CIBlockParameters::GetDateFormat(GetMessage("T_DATE_TIME_FORMAT_SECTION"), "ADDITIONAL_SETTINGS"),
/*
"USE_PHOTO_TITLE" => array(
"PARENT" => "PHOTO_SETTINGS",
"NAME" => GetMessage("P_USE_PHOTO_TITLE"),
"TYPE" => "CHECKBOX",
"DEFAULT" => "N"
),
"DISPLAY_PANEL" => Array(
"PARENT" => "ADDITIONAL_SETTINGS",
"NAME" => GetMessage("T_IBLOCK_DESC_NEWS_PANEL"),
"TYPE" => "CHECKBOX",
"DEFAULT" => "N",
"HIDDEN" => $hidden),
"USE_PERMISSIONS" => Array(
"PARENT" => "ADDITIONAL_SETTINGS",