本文整理汇总了PHP中CComponentUtil::GetDateTimeFormatField方法的典型用法代码示例。如果您正苦于以下问题:PHP CComponentUtil::GetDateTimeFormatField方法的具体用法?PHP CComponentUtil::GetDateTimeFormatField怎么用?PHP CComponentUtil::GetDateTimeFormatField使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CComponentUtil
的用法示例。
在下文中一共展示了CComponentUtil::GetDateTimeFormatField方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
/**
* Bitrix vars
* @param array $arCurrentValues
*/
include_once $_SERVER['DOCUMENT_ROOT'] . '/bitrix/components/bitrix/desktop/include.php';
$arComponentParameters = array("GROUPS" => array(), "PARAMETERS" => array("ID" => array("NAME" => GetMessage("CMDESKTOP_PARAMS_ID"), "TYPE" => "STRING", "DEFAULT" => "holder1" . (strlen($_REQUEST["src_site"]) > 0 ? $_REQUEST["src_site"] : ""), "PARENT" => "DATA_SOURCE"), "CAN_EDIT" => array("NAME" => GetMessage("CMDESKTOP_PARAMS_CAN_EDIT"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y", "PARENT" => "DATA_SOURCE"), "COLUMNS" => array("NAME" => GetMessage("CMDESKTOP_PARAMS_COLUMNS"), "TYPE" => "STRING", "DEFAULT" => "3", "PARENT" => "DATA_SOURCE", "REFRESH" => "Y")));
if (IsModuleInstalled('intranet')) {
CModule::IncludeModule('socialnetwork');
$arComponentParameters["PARAMETERS"]["PM_URL"] = array('TYPE' => 'STRING', 'DEFAULT' => '/company/personal/messages/chat/#USER_ID#/', 'NAME' => GetMessage('CMDESKTOP_PARAMS_PM_URL'), 'PARENT' => 'ADDITIONAL_SETTINGS');
$arComponentParameters["PARAMETERS"]["PATH_TO_CONPANY_DEPARTMENT"] = array('TYPE' => 'STRING', 'DEFAULT' => '/company/structure.php?set_filter_structure=Y&structure_UF_DEPARTMENT=#ID#', 'NAME' => GetMessage('CMDESKTOP_PARAMS_PATH_TO_CONPANY_DEPARTMENT'), 'PARENT' => 'ADDITIONAL_SETTINGS');
if (IsModuleInstalled("video")) {
$arComponentParameters["PARAMETERS"]["PATH_TO_VIDEO_CALL"] = array('TYPE' => 'STRING', 'DEFAULT' => '/company/personal/video/#USER_ID#/', 'NAME' => GetMessage('CMDESKTOP_PARAMS_PATH_TO_VIDEO_CALL'), 'PARENT' => 'ADDITIONAL_SETTINGS');
}
$arComponentParameters["PARAMETERS"]["NAME_TEMPLATE"] = array('TYPE' => 'LIST', 'NAME' => GetMessage('CMDESKTOP_PARAMS_NAME_TEMPLATE'), 'VALUES' => CComponentUtil::GetDefaultNameTemplates(), 'MULTIPLE' => 'N', 'ADDITIONAL_VALUES' => 'Y', 'DEFAULT' => '', 'PARENT' => 'ADDITIONAL_SETTINGS');
$arComponentParameters["PARAMETERS"]["SHOW_LOGIN"] = array("NAME" => GetMessage("CMDESKTOP_PARAMS_SHOW_LOGIN"), "TYPE" => "CHECKBOX", "MULTIPLE" => "N", "VALUE" => "Y", "DEFAULT" => "Y", "PARENT" => "ADDITIONAL_SETTINGS");
$arComponentParameters["PARAMETERS"]["DATE_TIME_FORMAT"] = CComponentUtil::GetDateTimeFormatField(GetMessage("CMDESKTOP_PARAMS_DATE_TIME_FORMAT"), 'ADDITIONAL_SETTINGS');
$arComponentParameters["PARAMETERS"]["DATE_FORMAT"] = CComponentUtil::GetDateFormatField(GetMessage("CMDESKTOP_PARAMS_DATE_FORMAT"), 'ADDITIONAL_SETTINGS');
$arComponentParameters["PARAMETERS"]["DATE_FORMAT_NO_YEAR"] = CComponentUtil::GetDateFormatField(GetMessage("CMDESKTOP_PARAMS_DATE_FORMAT_NO_YEAR"), 'ADDITIONAL_SETTINGS', true);
$arComponentParameters["PARAMETERS"]["SHOW_YEAR"] = array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("CMDESKTOP_PARAMS_SHOW_YEAR"), "TYPE" => "LIST", "VALUES" => array("Y" => GetMessage("CMDESKTOP_PARAMS_SHOW_YEAR_VALUE_Y"), "M" => GetMessage("CMDESKTOP_PARAMS_SHOW_YEAR_VALUE_M"), "N" => GetMessage("CMDESKTOP_PARAMS_SHOW_YEAR_VALUE_N")), "MULTIPLE" => "N", "DEFAULT" => "M");
}
if ($arCurrentValues["COLUMNS"] > 0) {
$d = intval(100 / $arCurrentValues["COLUMNS"]) . "%";
for ($i = 0; $i < $arCurrentValues["COLUMNS"]; $i++) {
$arComponentParameters["PARAMETERS"]["COLUMN_WIDTH_" . $i] = array("NAME" => GetMessage("CMDESKTOP_PARAMS_COLUMN_WITH") . " #" . ($i + 1), "PARENT" => "DATA_SOURCE", "TYPE" => "STRING", "DEFAULT" => $d);
}
}
$arComponentParameters["PARAMETERS"]["GADGETS"] = array("NAME" => GetMessage("CMDESKTOP_PARAMS_GADGETS"), "TYPE" => "LIST", "DEFAULT" => "ALL", "PARENT" => "DATA_SOURCE", "MULTIPLE" => "Y", "SIZE" => "10", "REFRESH" => "Y", "VALUES" => array("ALL" => GetMessage("CMDESKTOP_PARAMS_GADGETS_ALL")));
$arGadgets = BXGadget::GetList(true, $arCurrentValues);
foreach ($arGadgets as $gd) {
if ($gd["SU_ONLY"] == true || $gd["SG_ONLY"] == true) {
continue;
示例2: array
$arRes = $GLOBALS["USER_FIELD_MANAGER"]->GetUserFields("USER", 0, LANGUAGE_ID);
$userProp = array();
if (!empty($arRes)) {
foreach ($arRes as $key => $val) {
$userProp[$val["FIELD_NAME"]] = empty($val["EDIT_FORM_LABEL"]) ? $val["FIELD_NAME"] : $val["EDIT_FORM_LABEL"];
}
}
$hidden = !is_set($arCurrentValues, "USE_LIGHT_VIEW") || $arCurrentValues["USE_LIGHT_VIEW"] == "Y" ? "Y" : "N";
$arRes = $GLOBALS["USER_FIELD_MANAGER"]->GetUserFields("FORUM_MESSAGE", 0, LANGUAGE_ID);
$F_USER_FIELDS = array();
if (!empty($arRes)) {
foreach ($arRes as $key => $val) {
$F_USER_FIELDS[$val["FIELD_NAME"]] = empty($val["EDIT_FORM_LABEL"]) ? $val["FIELD_NAME"] : $val["EDIT_FORM_LABEL"];
}
}
$arComponentParameters = array("GROUPS" => array("TEMPLATE_TEMPLATES_SETTINGS" => array("NAME" => GetMessage("F_TEMPLATE_SETTINGS"), "SORT" => 1), "ADMIN_SETTINGS" => array("NAME" => GetMessage("F_ADMIN_SETTINGS")), "RSS_SETTINGS" => array("NAME" => GetMessage("F_RSS"))), "PARAMETERS" => array("USE_LIGHT_VIEW" => array("PARENT" => "BASE", "NAME" => GetMessage("P_USE_LIGHT_VIEW"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y", "REFRESH" => "Y"), "VARIABLE_ALIASES" => array("FID" => array("NAME" => GetMessage("F_FORUM_ID"), "DEFAULT" => "FID"), "TID" => array("NAME" => GetMessage("F_TOPIC_ID"), "DEFAULT" => "TID"), "MID" => array("NAME" => GetMessage("F_MESSAGE_ID"), "DEFAULT" => "MID"), "UID" => array("NAME" => GetMessage("F_USER_ID"), "DEFAULT" => "UID")), "SEF_MODE" => array_merge(array("index" => array("NAME" => GetMessage("F_INDEX"), "DEFAULT" => "index.php", "VARIABLES" => array()), "list" => array("NAME" => GetMessage("F_LIST"), "DEFAULT" => "forum#FID#/", "VARIABLES" => array("FID")), "read" => array("NAME" => GetMessage("F_READ"), "DEFAULT" => "forum#FID#/topic#TID#/", "VARIABLES" => array("FID", "TID")), "message" => array("NAME" => GetMessage("F_MESSAGE"), "DEFAULT" => "messages/forum#FID#/topic#TID#/message#MID#/", "VARIABLES" => array("FID", "TID", "MID")), "help" => array("NAME" => GetMessage("F_HELP"), "DEFAULT" => "help/", "VARIABLES" => array()), "rules" => array("NAME" => GetMessage("F_RULES"), "DEFAULT" => "rules/", "VARIABLES" => array()), "message_appr" => array("NAME" => GetMessage("F_MESSAGE_APPR"), "DEFAULT" => "messages/approve/forum#FID#/topic#TID#/", "VARIABLES" => array("FID", "TID")), "message_move" => array("NAME" => GetMessage("F_MESSAGE_MOVE"), "DEFAULT" => "messages/move/forum#FID#/topic#TID#/message#MID#/", "VARIABLES" => array("FID", "TID", "MID")), "rss" => array("NAME" => GetMessage("F_RSS_PAGE"), "DEFAULT" => "rss/#TYPE#/#MODE#/#IID#/", "VARIABLES" => array()), "search" => array("NAME" => GetMessage("F_SEARCH"), "DEFAULT" => "search/", "VARIABLES" => array()), "subscr_list" => array("NAME" => GetMessage("F_SUBSCR_LIST"), "DEFAULT" => "subscribe/", "VARIABLES" => array()), "active" => array("NAME" => GetMessage("F_ACTIVE"), "DEFAULT" => "topic/new/", "VARIABLES" => array()), "topic_move" => array("NAME" => GetMessage("F_TOPIC_MOVE"), "DEFAULT" => "topic/move/forum#FID#/topic#TID#/", "VARIABLES" => array("FID", "TID")), "topic_new" => array("NAME" => GetMessage("F_TOPIC_NEW"), "DEFAULT" => "topic/add/forum#FID#/", "VARIABLES" => array("FID")), "topic_search" => array("NAME" => GetMessage("F_TOPIC_SEARCH"), "DEFAULT" => "topic/search/", "VARIABLES" => array()), "user_list" => array("NAME" => GetMessage("F_USER_LIST"), "DEFAULT" => "users/", "VARIABLES" => array()), "profile" => array("NAME" => GetMessage("F_PROFILE"), "DEFAULT" => "user/#UID#/edit/", "VARIABLES" => array("UID")), "profile_view" => array("NAME" => GetMessage("F_PROFILE_VIEW"), "DEFAULT" => "user/#UID#/", "VARIABLES" => array("UID")), "user_post" => array("NAME" => GetMessage("F_USER_POST"), "DEFAULT" => "user/#UID#/post/#mode#/", "VARIABLES" => array("UID", "mode")), "message_send" => array("NAME" => GetMessage("F_MESSAGE_SEND"), "DEFAULT" => "user/#UID#/send/#TYPE#/", "VARIABLES" => array("TYPE", "UID"))), intval(COption::GetOptionString("forum", "UsePMVersion", "2")) > 0 ? array("pm_list" => array("NAME" => GetMessage("F_PM_LIST"), "DEFAULT" => "pm/folder#FID#/", "VARIABLES" => array("FID")), "pm_edit" => array("NAME" => GetMessage("F_PM_EDIT"), "DEFAULT" => "pm/folder#FID#/message#MID#/user#UID#/#mode#/", "VARIABLES" => array("FID", "MID", "UID", "mode")), "pm_read" => array("NAME" => GetMessage("F_PM_READ"), "DEFAULT" => "pm/folder#FID#/message#MID#/", "VARIABLES" => array("FID", "MID")), "pm_search" => array("NAME" => GetMessage("F_PM_SEARCH"), "DEFAULT" => "pm/search/", "VARIABLES" => array()), "pm_folder" => array("NAME" => GetMessage("F_PM_FOLDER"), "DEFAULT" => "pm/folders/", "VARIABLES" => array())) : array()), "CHECK_CORRECT_TEMPLATES" => array("PARENT" => "SEF_MODE", "NAME" => GetMessage("F_CHECK_CORRECT_PATH_TEMPLATES"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y", "HIDDEN" => $hidden), "FID" => CForumParameters::GetForumsMultiSelect(GetMessage("F_FID"), "BASE"), "USER_PROPERTY" => array("PARENT" => "BASE", "NAME" => GetMessage("USER_PROPERTY"), "TYPE" => "LIST", "VALUES" => $userProp, "MULTIPLE" => "Y", "DEFAULT" => array(), "HIDDEN" => $hidden), "USER_FIELDS" => array("PARENT" => "BASE", "NAME" => GetMessage("F_USER_FIELDS"), "TYPE" => "LIST", "VALUES" => $F_USER_FIELDS, "MULTIPLE" => "Y", "DEFAULT" => array_keys($F_USER_FIELDS), "HIDDEN" => $hidden), "HELP_CONTENT" => array("PARENT" => "BASE", "NAME" => GetMessage("F_HELP_CONTENT"), "TYPE" => "STRING", "DEFAULT" => "", "HIDDEN" => $GLOBALS["USER"]->IsAdmin() ? $hidden : "Y"), "RULES_CONTENT" => array("PARENT" => "BASE", "NAME" => GetMessage("F_RULES_CONTENT"), "TYPE" => "STRING", "DEFAULT" => "", "HIDDEN" => $GLOBALS["USER"]->IsAdmin() ? $hidden : "Y"), "FORUMS_PER_PAGE" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("F_FORUMS_PER_PAGE"), "TYPE" => "STRING", "DEFAULT" => intVal(COption::GetOptionString("forum", "FORUMS_PER_PAGE", "10"))), "TOPICS_PER_PAGE" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("F_TOPICS_PER_PAGE"), "TYPE" => "STRING", "DEFAULT" => intVal(COption::GetOptionString("forum", "TOPICS_PER_PAGE", "10"))), "MESSAGES_PER_PAGE" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("F_MESSAGES_PER_PAGE"), "TYPE" => "STRING", "DEFAULT" => COption::GetOptionString("forum", "MESSAGES_PER_PAGE", "10")), "PATH_TO_AUTH_FORM" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("F_PATH_TO_AUTH_FORM"), "TYPE" => "STRING", "DEFAULT" => "", "HIDDEN" => $hidden), "TIME_INTERVAL_FOR_USER_STAT" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("F_TIME_INTERVAL_FOR_USER_STAT"), "TYPE" => "STRING", "DEFAULT" => "10", "HIDDEN" => $hidden), "DATE_FORMAT" => CComponentUtil::GetDateFormatField(GetMessage("F_DATE_FORMAT"), "ADDITIONAL_SETTINGS"), "DATE_TIME_FORMAT" => CComponentUtil::GetDateTimeFormatField(GetMessage("F_DATE_TIME_FORMAT"), "ADDITIONAL_SETTINGS"), "USE_NAME_TEMPLATE" => array("NAME" => GetMessage("F_USE_NAME_TEMPLATE"), "TYPE" => "CHECKBOX", "DEFAULT" => "N", "PARENT" => "ADDITIONAL_SETTINGS", "HIDDEN" => $hidden), "NAME_TEMPLATE" => array("PARENT" => "ADDITIONAL_SETTINGS", "TYPE" => "LIST", "NAME" => GetMessage("F_NAME_TEMPLATE"), "VALUES" => CComponentUtil::GetDefaultNameTemplates(), "MULTIPLE" => "N", "ADDITIONAL_VALUES" => "Y", "DEFAULT" => "", "HIDDEN" => $hidden), "IMAGE_SIZE" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("F_IMAGE_SIZE"), "TYPE" => "STRING", "DEFAULT" => "500"), "ATTACH_MODE" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("F_ATTACH_MODE"), "TYPE" => "LIST", "VALUES" => array("THUMB" => GetMessage("F_ATTACH_MODE_THUMB"), "NAME" => GetMessage("F_ATTACH_MODE_NAME")), "MULTIPLE" => "Y", "DEFAULT" => array("NAME"), "REFRESH" => "Y"), "ATTACH_SIZE" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("F_ATTACH_SIZE"), "TYPE" => "STRING", "DEFAULT" => "90", "HIDDEN" => "Y"), "EDITOR_CODE_DEFAULT" => array("NAME" => GetMessage("F_EDITOR_CODE_DEFAULT"), "TYPE" => "CHECKBOX", "DEFAULT" => "N", "PARENT" => "ADDITIONAL_SETTINGS", "HIDDEN" => $hidden), "SEND_MAIL" => CForumParameters::GetSendMessageRights(GetMessage("F_SEND_MAIL"), "ADDITIONAL_SETTINGS", "E") + array("HIDDEN" => $hidden), "SEND_ICQ" => CForumParameters::GetSendMessageRights(GetMessage("F_SEND_ICQ"), "ADDITIONAL_SETTINGS", "E", "ICQ") + array("HIDDEN" => "Y"), "SET_NAVIGATION" => CForumParameters::GetSetNavigation(GetMessage("F_SET_NAVIGATION"), "ADDITIONAL_SETTINGS"), "SET_TITLE" => array(), "SET_DESCRIPTION" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("F_SET_DESCRIPTION"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y", "HIDDEN" => $hidden), "SET_PAGE_PROPERTY" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("F_SET_PAGE_PROPERTY"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y", "HIDDEN" => $hidden), "USE_RSS" => array("PARENT" => "RSS_SETTINGS", "NAME" => GetMessage("F_RSS_USE"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y", "REFRESH" => "Y"), "SHOW_FORUM_ANOTHER_SITE" => array("PARENT" => "ADMIN_SETTINGS", "NAME" => GetMessage("F_SHOW_FORUM_ANOTHER_SITE"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y", "HIDDEN" => $hidden), "CACHE_TIME" => array("DEFAULT" => 3600), "CACHE_TIME_USER_STAT" => array("PARENT" => "CACHE_SETTINGS", "NAME" => GetMessage("F_CACHE_TIME_USER_STAT"), "TYPE" => "STRING", "DEFAULT" => "60"), "CACHE_TIME_FOR_FORUM_STAT" => array("PARENT" => "CACHE_SETTINGS", "NAME" => GetMessage("F_CACHE_TIME_FOR_FORUM_STAT"), "TYPE" => "STRING", "DEFAULT" => "3600")));
$arComponentParameters["PARAMETERS"]["DATE_FORMAT"]["HIDDEN"] = $hidden;
$arComponentParameters["PARAMETERS"]["DATE_TIME_FORMAT"]["HIDDEN"] = $hidden;
$arComponentParameters["PARAMETERS"]["SEND_MAIL"]["HIDDEN"] = $hidden;
$arComponentParameters["PARAMETERS"]["SEND_ICQ"]["HIDDEN"] = "Y";
$arComponentParameters["PARAMETERS"]["SET_NAVIGATION"]["HIDDEN"] = $hidden;
if ($arCurrentValues["USE_RSS"] == "Y") {
$arComponentParameters["PARAMETERS"]["RSS_TYPE_RANGE"] = array("PARENT" => "RSS_SETTINGS", "NAME" => GetMessage("F_RSS_TYPE"), "TYPE" => "LIST", "VALUES" => array("RSS1" => "RSS 0.92", "RSS2" => "RSS 2.0", "ATOM" => "Atom 0.3"), "MULTIPLE" => "Y", "DEFAULT" => array("RSS1", "RSS2", "ATOM"), "HIDDEN" => $hidden);
// $arComponentParameters["PARAMETERS"]["RSS_FID_RANGE"] = CForumParameters::GetForumsMultiSelect(GetMessage("F_RSS_FORUM_RANGE"), "RSS_SETTINGS");
$arComponentParameters["PARAMETERS"]["RSS_CACHE"] = array("PARENT" => "CACHE_SETTINGS", "NAME" => GetMessage("F_RSS_CACHE"), "TYPE" => "STRING", "DEFAULT" => "1800", "HIDDEN" => $hidden);
$arComponentParameters["PARAMETERS"]["RSS_COUNT"] = array("PARENT" => "RSS_SETTINGS", "NAME" => GetMessage("F_RSS_COUNT"), "TYPE" => "STRING", "DEFAULT" => '30');
$arComponentParameters["PARAMETERS"]["RSS_TN_TITLE"] = array("PARENT" => "RSS_SETTINGS", "NAME" => GetMessage("RSS_TITLE"), "TYPE" => "STRING", "DEFAULT" => "", "HIDDEN" => $hidden);
$arComponentParameters["PARAMETERS"]["RSS_TN_DESCRIPTION"] = array("PARENT" => "RSS_SETTINGS", "NAME" => GetMessage("RSS_DESCRIPTION"), "TYPE" => "STRING", "COLS" => "25", "ROWS" => "10", "DEFAULT" => "", "HIDDEN" => $hidden);
}
if (IsModuleInstalled("vote")) {
$right = $GLOBALS["APPLICATION"]->GetGroupRight("vote");
示例3: array
<?php
if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) {
die;
}
if (!CModule::IncludeModule("blog")) {
return false;
}
$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"), "DATE_TIME_FORMAT" => CComponentUtil::GetDateTimeFormatField(GetMessage("BC_DATE_TIME_FORMAT"), "VISUAL"), "PATH_TO_POST" => array("NAME" => GetMessage("BB_PATH_TO_POST"), "TYPE" => "STRING", "MULTIPLE" => "N", "DEFAULT" => "", "COLS" => 25, "PARENT" => "URL_TEMPLATES"), "PATH_TO_SMILE" => array("NAME" => GetMessage("BB_PATH_TO_SMILE"), "TYPE" => "STRING", "MULTIPLE" => "N", "DEFAULT" => "", "COLS" => 25, "PARENT" => "ADDITIONAL_SETTINGS"), "BLOG_VAR" => array("NAME" => GetMessage("BB_BLOG_VAR"), "TYPE" => "STRING", "MULTIPLE" => "N", "DEFAULT" => "", "COLS" => 25, "PARENT" => "VARIABLE_ALIASES"), "POST_VAR" => array("NAME" => GetMessage("BB_POST_VAR"), "TYPE" => "STRING", "MULTIPLE" => "N", "DEFAULT" => "", "COLS" => 25, "PARENT" => "VARIABLE_ALIASES"), "PAGE_VAR" => array("NAME" => GetMessage("BB_PAGE_VAR"), "TYPE" => "STRING", "MULTIPLE" => "N", "DEFAULT" => "", "COLS" => 25, "PARENT" => "VARIABLE_ALIASES"), "BLOG_URL" => array("NAME" => GetMessage("BB_BLOG_URL"), "TYPE" => "STRING", "MULTIPLE" => "N", "DEFAULT" => "={\$blog}", "COLS" => 25, "PARENT" => "DATA_SOURCE"), "CACHE_TIME" => array("DEFAULT" => "7200"), "SET_TITLE" => array(), "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")));
示例4: array
<?php
if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) {
die;
}
if (!CModule::IncludeModule("blog")) {
return false;
}
$arRes = $GLOBALS["USER_FIELD_MANAGER"]->GetUserFields("BLOG_POST", 0, LANGUAGE_ID);
$postProp = array();
if (!empty($arRes)) {
foreach ($arRes as $key => $val) {
$postProp[$val["FIELD_NAME"]] = strLen($val["EDIT_FORM_LABEL"]) > 0 ? $val["EDIT_FORM_LABEL"] : $val["FIELD_NAME"];
}
}
$arComponentParameters = array("GROUPS" => array("VARIABLE_ALIASES" => array("NAME" => GetMessage("B_VARIABLE_ALIASES"))), "PARAMETERS" => array("MESSAGE_COUNT" => array("NAME" => GetMessage("BB_MESSAGE_COUNT"), "TYPE" => "STRING", "DEFAULT" => 25, "PARENT" => "VISUAL"), "DATE_TIME_FORMAT" => CComponentUtil::GetDateTimeFormatField(GetMessage("BC_DATE_TIME_FORMAT"), "VISUAL"), "PATH_TO_BLOG" => array("NAME" => GetMessage("BB_PATH_TO_BLOG"), "TYPE" => "STRING", "MULTIPLE" => "N", "DEFAULT" => "", "COLS" => 25, "PARENT" => "URL_TEMPLATES"), "PATH_TO_BLOG_CATEGORY" => array("NAME" => GetMessage("BB_PATH_TO_BLOG_CATEGORY"), "TYPE" => "STRING", "MULTIPLE" => "N", "DEFAULT" => "", "COLS" => 25, "PARENT" => "URL_TEMPLATES"), "PATH_TO_POST" => array("NAME" => GetMessage("BB_PATH_TO_POST"), "TYPE" => "STRING", "MULTIPLE" => "N", "DEFAULT" => "", "COLS" => 25, "PARENT" => "URL_TEMPLATES"), "PATH_TO_POST_EDIT" => array("NAME" => GetMessage("BB_PATH_TO_POST_EDIT"), "TYPE" => "STRING", "MULTIPLE" => "N", "DEFAULT" => "", "COLS" => 25, "PARENT" => "URL_TEMPLATES"), "PATH_TO_USER" => array("NAME" => GetMessage("BB_PATH_TO_USER"), "TYPE" => "STRING", "MULTIPLE" => "N", "DEFAULT" => "", "COLS" => 25, "PARENT" => "URL_TEMPLATES"), "PATH_TO_GROUP" => array("NAME" => GetMessage("BB_PATH_TO_GROUP"), "TYPE" => "STRING", "MULTIPLE" => "N", "DEFAULT" => "", "COLS" => 25, "PARENT" => "URL_TEMPLATES"), "PATH_TO_SMILE" => array("NAME" => GetMessage("BB_PATH_TO_SMILE"), "TYPE" => "STRING", "MULTIPLE" => "N", "DEFAULT" => "", "COLS" => 25, "PARENT" => "ADDITIONAL_SETTINGS"), "POST_VAR" => array("NAME" => GetMessage("BB_POST_VAR"), "TYPE" => "STRING", "MULTIPLE" => "N", "DEFAULT" => "", "COLS" => 25, "PARENT" => "VARIABLE_ALIASES"), "USER_VAR" => array("NAME" => GetMessage("BB_USER_VAR"), "TYPE" => "STRING", "MULTIPLE" => "N", "DEFAULT" => "", "COLS" => 25, "PARENT" => "VARIABLE_ALIASES"), "PAGE_VAR" => array("NAME" => GetMessage("BB_PAGE_VAR"), "TYPE" => "STRING", "MULTIPLE" => "N", "DEFAULT" => "", "COLS" => 25, "PARENT" => "VARIABLE_ALIASES"), "YEAR" => array("NAME" => GetMessage("BB_YEAR"), "TYPE" => "STRING", "MULTIPLE" => "N", "DEFAULT" => "={\$year}", "COLS" => 25, "PARENT" => "BASE"), "MONTH" => array("NAME" => GetMessage("BB_MONTH"), "TYPE" => "STRING", "MULTIPLE" => "N", "DEFAULT" => "={\$month}", "COLS" => 25, "PARENT" => "BASE"), "DAY" => array("NAME" => GetMessage("BB_DAY"), "TYPE" => "STRING", "MULTIPLE" => "N", "DEFAULT" => "={\$day}", "COLS" => 25, "PARENT" => "BASE"), "CATEGORY_ID" => array("NAME" => GetMessage("BB_CATEGORY_ID"), "TYPE" => "STRING", "MULTIPLE" => "N", "DEFAULT" => "={\$category}", "COLS" => 25, "PARENT" => "BASE"), "CACHE_TIME" => array("DEFAULT" => "7200"), "CACHE_TIME_LONG" => array("NAME" => GetMessage("BB_CACHE_TIME_LONG"), "TYPE" => "STRING", "MULTIPLE" => "N", "DEFAULT" => "604800", "COLS" => 25, "PARENT" => "CACHE_SETTINGS"), "SET_NAV_CHAIN" => array("NAME" => GetMessage("BB_SET_NAV_CHAIN"), "TYPE" => "CHECKBOX", "MULTIPLE" => "N", "VALUE" => "Y", "DEFAULT" => "Y", "PARENT" => "ADDITIONAL_SETTINGS"), "SET_TITLE" => array(), "FILTER_NAME" => array("PARENT" => "DATA_SOURCE", "NAME" => GetMessage("BB_FILTER_NAME_IN"), "TYPE" => "STRING", "DEFAULT" => "arFilter"), "NAV_TEMPLATE" => array("PARENT" => "VISUAL", "NAME" => GetMessage("BB_NAV_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => ""), "POST_PROPERTY_LIST" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("POST_PROPERTY_LIST"), "TYPE" => "LIST", "VALUES" => $postProp, "MULTIPLE" => "Y", "DEFAULT" => array()), "SHOW_RATING" => array("NAME" => GetMessage("SHOW_RATING"), "TYPE" => "LIST", "VALUES" => array("" => GetMessage("SHOW_RATING_CONFIG"), "Y" => GetMessage("MAIN_YES"), "N" => GetMessage("MAIN_NO")), "MULTIPLE" => "N", "DEFAULT" => "", "PARENT" => "ADDITIONAL_SETTINGS"), "RATING_TYPE" => array("NAME" => GetMessage("RATING_TYPE"), "TYPE" => "LIST", "VALUES" => array("" => GetMessage("RATING_TYPE_CONFIG"), "like" => GetMessage("RATING_TYPE_LIKE_TEXT"), "like_graphic" => GetMessage("RATING_TYPE_LIKE_GRAPHIC"), "standart_text" => GetMessage("RATING_TYPE_STANDART_TEXT"), "standart" => GetMessage("RATING_TYPE_STANDART_GRAPHIC")), "MULTIPLE" => "N", "DEFAULT" => "", "PARENT" => "ADDITIONAL_SETTINGS"), "IMAGE_MAX_WIDTH" => array("NAME" => GetMessage("BPC_IMAGE_MAX_WIDTH"), "TYPE" => "STRING", "DEFAULT" => 600, "PARENT" => "VISUAL"), "IMAGE_MAX_HEIGHT" => array("NAME" => GetMessage("BPC_IMAGE_MAX_HEIGHT"), "TYPE" => "STRING", "DEFAULT" => 600, "PARENT" => "VISUAL")));
示例5: array
<?php
if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) {
die;
}
if (!CModule::IncludeModule("blog")) {
return false;
}
$arRes = $GLOBALS["USER_FIELD_MANAGER"]->GetUserFields("BLOG_POST", 0, LANGUAGE_ID);
$postProp = array();
if (!empty($arRes)) {
foreach ($arRes as $key => $val) {
$postProp[$val["FIELD_NAME"]] = strLen($val["EDIT_FORM_LABEL"]) > 0 ? $val["EDIT_FORM_LABEL"] : $val["FIELD_NAME"];
}
}
unset($postProp["UF_BLOG_POST_DOC"]);
unset($postProp["UF_BLOG_POST_FILE"]);
$arComponentParameters = array("GROUPS" => array("VARIABLE_ALIASES" => array("NAME" => GetMessage("B_VARIABLE_ALIASES"))), "PARAMETERS" => array("BLOG_URL" => array("NAME" => GetMessage("BP_BLOG_URL"), "TYPE" => "STRING", "DEFAULT" => "={\$blog}", "PARENT" => "DATA_SOURCE"), "PATH_TO_BLOG" => array("NAME" => GetMessage("BP_PATH_TO_BLOG"), "TYPE" => "STRING", "MULTIPLE" => "N", "DEFAULT" => "", "COLS" => 25, "PARENT" => "URL_TEMPLATES"), "PATH_TO_BLOG_CATEGORY" => array("NAME" => GetMessage("BP_PATH_TO_BLOG_CATEGORY"), "TYPE" => "STRING", "MULTIPLE" => "N", "DEFAULT" => "", "COLS" => 25, "PARENT" => "URL_TEMPLATES"), "PATH_TO_POST_EDIT" => array("NAME" => GetMessage("BP_PATH_TO_POST_EDIT"), "TYPE" => "STRING", "MULTIPLE" => "N", "DEFAULT" => "", "COLS" => 25, "PARENT" => "URL_TEMPLATES"), "PATH_TO_USER" => array("NAME" => GetMessage("BP_PATH_TO_USER"), "TYPE" => "STRING", "MULTIPLE" => "N", "DEFAULT" => "", "COLS" => 25, "PARENT" => "URL_TEMPLATES"), "PATH_TO_SMILE" => array("NAME" => GetMessage("BB_PATH_TO_SMILE"), "TYPE" => "STRING", "MULTIPLE" => "N", "DEFAULT" => "", "COLS" => 25, "PARENT" => "ADDITIONAL_SETTINGS"), "BLOG_VAR" => array("NAME" => GetMessage("BP_BLOG_VAR"), "TYPE" => "STRING", "MULTIPLE" => "N", "DEFAULT" => "", "COLS" => 25, "PARENT" => "VARIABLE_ALIASES"), "POST_VAR" => array("NAME" => GetMessage("BP_POST_VAR"), "TYPE" => "STRING", "MULTIPLE" => "N", "DEFAULT" => "", "COLS" => 25, "PARENT" => "VARIABLE_ALIASES"), "USER_VAR" => array("NAME" => GetMessage("BP_USER_VAR"), "TYPE" => "STRING", "MULTIPLE" => "N", "DEFAULT" => "", "COLS" => 25, "PARENT" => "VARIABLE_ALIASES"), "PAGE_VAR" => array("NAME" => GetMessage("BP_PAGE_VAR"), "TYPE" => "STRING", "MULTIPLE" => "N", "DEFAULT" => "", "COLS" => 25, "PARENT" => "VARIABLE_ALIASES"), "ID" => array("NAME" => GetMessage("BP_ID"), "TYPE" => "STRING", "MULTIPLE" => "N", "DEFAULT" => "={\$id}", "COLS" => 25, "PARENT" => "DATA_SOURCE"), "SET_NAV_CHAIN" => array("NAME" => GetMessage("BP_SET_NAV_CHAIN"), "TYPE" => "CHECKBOX", "MULTIPLE" => "N", "VALUE" => "Y", "DEFAULT" => "Y", "PARENT" => "ADDITIONAL_SETTINGS"), "SET_TITLE" => array(), "SEO_USE" => array("NAME" => GetMessage("BC_SEO_USE"), "TYPE" => "LIST", "MULTIPLE" => "N", "VALUES" => array("N" => GetMessage("BC_SEO_N"), "Y" => GetMessage("BC_SEO_Y"), "D" => GetMessage("BC_SEO_D")), "DEFAULT" => "Y", "PARENT" => "ADDITIONAL_SETTINGS"), "CACHE_TIME" => array("DEFAULT" => "86400"), "POST_PROPERTY" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("POST_PROPERTY"), "TYPE" => "LIST", "VALUES" => $postProp, "MULTIPLE" => "Y", "DEFAULT" => array()), "DATE_TIME_FORMAT" => CComponentUtil::GetDateTimeFormatField(GetMessage("BC_DATE_TIME_FORMAT"), "VISUAL"), "SHOW_RATING" => array("NAME" => GetMessage("SHOW_RATING"), "TYPE" => "LIST", "VALUES" => array("" => GetMessage("SHOW_RATING_CONFIG"), "Y" => GetMessage("MAIN_YES"), "N" => GetMessage("MAIN_NO")), "MULTIPLE" => "N", "DEFAULT" => "", "PARENT" => "ADDITIONAL_SETTINGS"), "RATING_TYPE" => array("NAME" => GetMessage("RATING_TYPE"), "TYPE" => "LIST", "VALUES" => array("" => GetMessage("RATING_TYPE_CONFIG"), "like" => GetMessage("RATING_TYPE_LIKE_TEXT"), "like_graphic" => GetMessage("RATING_TYPE_LIKE_GRAPHIC"), "standart_text" => GetMessage("RATING_TYPE_STANDART_TEXT"), "standart" => GetMessage("RATING_TYPE_STANDART_GRAPHIC")), "MULTIPLE" => "N", "DEFAULT" => "", "PARENT" => "ADDITIONAL_SETTINGS"), "IMAGE_MAX_WIDTH" => array("NAME" => GetMessage("BPC_IMAGE_MAX_WIDTH"), "TYPE" => "STRING", "DEFAULT" => 600, "PARENT" => "VISUAL"), "IMAGE_MAX_HEIGHT" => array("NAME" => GetMessage("BPC_IMAGE_MAX_HEIGHT"), "TYPE" => "STRING", "DEFAULT" => 600, "PARENT" => "VISUAL")));
示例6: array
}
}
$arRes = $GLOBALS["USER_FIELD_MANAGER"]->GetUserFields("BLOG_BLOG", 0, LANGUAGE_ID);
$blogProp = array();
if (!empty($arRes)) {
foreach ($arRes as $key => $val) {
$blogProp[$val["FIELD_NAME"]] = strLen($val["EDIT_FORM_LABEL"]) > 0 ? $val["EDIT_FORM_LABEL"] : $val["FIELD_NAME"];
}
}
$arRes = $GLOBALS["USER_FIELD_MANAGER"]->GetUserFields("BLOG_POST", 0, LANGUAGE_ID);
$postProp = array();
if (!empty($arRes)) {
foreach ($arRes as $key => $val) {
$postProp[$val["FIELD_NAME"]] = strLen($val["EDIT_FORM_LABEL"]) > 0 ? $val["EDIT_FORM_LABEL"] : $val["FIELD_NAME"];
}
}
unset($postProp["UF_BLOG_POST_DOC"]);
unset($postProp["UF_BLOG_POST_FILE"]);
$arRes = $GLOBALS["USER_FIELD_MANAGER"]->GetUserFields("BLOG_COMMENT", 0, LANGUAGE_ID);
$commentProp = array();
if (!empty($arRes)) {
foreach ($arRes as $key => $val) {
$commentProp[$val["FIELD_NAME"]] = strLen($val["EDIT_FORM_LABEL"]) > 0 ? $val["EDIT_FORM_LABEL"] : $val["FIELD_NAME"];
}
}
unset($commentProp["UF_BLOG_COMMENT_DOC"]);
unset($commentProp["UF_BLOG_COMMENT_FILE"]);
$arComponentParameters = array("GROUPS" => array("COMMENT" => array("NAME" => GetMessage("BLOG_COMMENT_SETTINGS"))), "PARAMETERS" => array("VARIABLE_ALIASES" => array("blog" => array("NAME" => GetMessage("BC_BLOG_VAR"), "DEFAULT" => "blog"), "post_id" => array("NAME" => GetMessage("BC_POST_VAR"), "DEFAULT" => "id"), "user_id" => array("NAME" => GetMessage("BC_USER_VAR"), "DEFAULT" => "id"), "page" => array("NAME" => GetMessage("BC_PAGE_VAR"), "DEFAULT" => "page"), "group_id" => array("NAME" => GetMessage("BC_GROUP_VAR"), "DEFAULT" => "id")), "SEF_MODE" => array("index" => array("NAME" => GetMessage("BC_SEF_PATH_INDEX"), "DEFAULT" => "index.php", "VARIABLES" => array()), "group" => array("NAME" => GetMessage("BC_SEF_PATH_GROUP"), "DEFAULT" => "group/#group_id#/", "VARIABLES" => array("group_id")), "blog" => array("NAME" => GetMessage("BC_SEF_PATH_BLOG"), "DEFAULT" => "#blog#/", "VARIABLES" => array("blog")), "user" => array("NAME" => GetMessage("BC_SEF_PATH_USER"), "DEFAULT" => "user/#user_id#/", "VARIABLES" => array("user_id")), "user_friends" => array("NAME" => GetMessage("BC_SEF_PATH_USER_FRIENDS"), "DEFAULT" => "friends/#user_id#/", "VARIABLES" => array("user_id")), "search" => array("NAME" => GetMessage("BC_SEF_PATH_SEARCH"), "DEFAULT" => "search.php", "VARIABLES" => array()), "user_settings" => array("NAME" => GetMessage("BC_SEF_PATH_USER_SETTINGS"), "DEFAULT" => "#blog#/user_settings.php", "VARIABLES" => array("blog")), "user_settings_edit" => array("NAME" => GetMessage("BC_SEF_PATH_USER_SETTINGS_EDIT"), "DEFAULT" => "#blog#/user_settings_edit.php?id=#user_id#", "VARIABLES" => array("blog", "user_id")), "group_edit" => array("NAME" => GetMessage("BC_SEF_PATH_GROUP_EDIT"), "DEFAULT" => "#blog#/group_edit.php", "VARIABLES" => array("blog")), "blog_edit" => array("NAME" => GetMessage("BC_SEF_PATH_BLOG_EDIT"), "DEFAULT" => "#blog#/blog_edit.php", "VARIABLES" => array("blog")), "category_edit" => array("NAME" => GetMessage("BC_SEF_PATH_CATEGORY_EDIT"), "DEFAULT" => "#blog#/category_edit.php", "VARIABLES" => array("blog")), "post_edit" => array("NAME" => GetMessage("BC_SEF_PATH_POST_EDIT"), "DEFAULT" => "#blog#/post_edit.php?id=#post_id#", "VARIABLES" => array("blog", "post_id")), "draft" => array("NAME" => GetMessage("BC_SEF_PATH_DRAFT"), "DEFAULT" => "#blog#/draft.php", "VARIABLES" => array("blog")), "moderation" => array("NAME" => GetMessage("BC_SEF_PATH_MODERATION"), "DEFAULT" => "#blog#/moderation.php", "VARIABLES" => array("blog")), "trackback" => array("NAME" => GetMessage("BC_SEF_PATH_TRACKBACK"), "DEFAULT" => "={POST_FORM_ACTION_URI.'&blog=#blog#&id=#post_id#&page=trackback'}", "VARIABLES" => array("blog", "post_id")), "post" => array("NAME" => GetMessage("BC_SEF_PATH_POST"), "DEFAULT" => "#blog#/#post_id#/", "VARIABLES" => array("blog", "post_id")), "post_rss" => array("NAME" => GetMessage("BC_SEF_PATH_POST_RSS"), "DEFAULT" => "#blog#/rss/#type#/#post_id#", "VARIABLES" => array("blog", "post_id", "type")), "rss" => array("NAME" => GetMessage("BC_SEF_PATH_RSS"), "DEFAULT" => "#blog#/rss/#type#", "VARIABLES" => array("blog", "type")), "rss_all" => array("NAME" => GetMessage("BC_SEF_PATH_RSS_ALL"), "DEFAULT" => "rss/#type#/#group_id#", "VARIABLES" => array("type", "group_id"))), "PATH_TO_SMILE" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("BC_PATH_TO_SMILE"), "TYPE" => "STRING", "MULTIPLE" => "N", "DEFAULT" => "/bitrix/images/blog/smile/"), "CACHE_TIME" => array("DEFAULT" => 3600), "SET_TITLE" => array(), "CACHE_TIME_LONG" => array("NAME" => GetMessage("BC_CACHE_TIME_LONG"), "TYPE" => "STRING", "MULTIPLE" => "N", "DEFAULT" => "604800", "COLS" => 25, "PARENT" => "CACHE_SETTINGS"), "SET_NAV_CHAIN" => array("NAME" => GetMessage("BC_SET_NAV_CHAIN"), "TYPE" => "CHECKBOX", "MULTIPLE" => "N", "VALUE" => "Y", "DEFAULT" => "Y", "PARENT" => "ADDITIONAL_SETTINGS"), "SEO_USE" => array("NAME" => GetMessage("BC_SEO_USE"), "TYPE" => "LIST", "MULTIPLE" => "N", "VALUES" => array("N" => GetMessage("BC_SEO_N"), "Y" => GetMessage("BC_SEO_Y"), "D" => GetMessage("BC_SEO_D")), "DEFAULT" => "Y", "PARENT" => "ADDITIONAL_SETTINGS"), "MESSAGE_COUNT" => array("NAME" => GetMessage("BC_MESSAGE_COUNT"), "TYPE" => "STRING", "DEFAULT" => 25, "PARENT" => "VISUAL"), "PERIOD_DAYS" => array("NAME" => GetMessage("BC_PERIOD_DAYS"), "TYPE" => "STRING", "DEFAULT" => 30, "PARENT" => "VISUAL"), "MESSAGE_COUNT_MAIN" => array("NAME" => GetMessage("BC_MESSAGE_COUNT_MAIN"), "TYPE" => "STRING", "DEFAULT" => "6", "PARENT" => "VISUAL"), "BLOG_COUNT_MAIN" => array("NAME" => GetMessage("BC_BLOG_COUNT_MAIN"), "TYPE" => "STRING", "DEFAULT" => "6", "PARENT" => "VISUAL"), "COMMENTS_COUNT" => array("NAME" => GetMessage("BC_COMMENTS_COUNT"), "TYPE" => "STRING", "DEFAULT" => 25, "PARENT" => "COMMENT"), "MESSAGE_LENGTH" => array("NAME" => GetMessage("BC_MESSAGE_LENTH"), "TYPE" => "STRING", "DEFAULT" => "100", "PARENT" => "VISUAL"), "BLOG_COUNT" => array("NAME" => GetMessage("BC_BLOG_COUNT"), "TYPE" => "STRING", "DEFAULT" => 20, "PARENT" => "VISUAL"), "DATE_TIME_FORMAT" => CComponentUtil::GetDateTimeFormatField(GetMessage("BC_DATE_TIME_FORMAT"), "VISUAL"), "NAV_TEMPLATE" => array("PARENT" => "VISUAL", "NAME" => GetMessage("BB_NAV_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => ""), "USER_PROPERTY" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("USER_PROPERTY"), "TYPE" => "LIST", "VALUES" => $userProp, "MULTIPLE" => "Y", "DEFAULT" => array()), "BLOG_PROPERTY" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("BLOG_PROPERTY"), "TYPE" => "LIST", "VALUES" => $blogProp, "MULTIPLE" => "Y", "DEFAULT" => array()), "BLOG_PROPERTY_LIST" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("BLOG_PROPERTY_LIST"), "TYPE" => "LIST", "VALUES" => $blogProp, "MULTIPLE" => "Y", "DEFAULT" => array()), "POST_PROPERTY" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("POST_PROPERTY"), "TYPE" => "LIST", "VALUES" => $postProp, "MULTIPLE" => "Y", "DEFAULT" => array()), "POST_PROPERTY_LIST" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("POST_PROPERTY_LIST"), "TYPE" => "LIST", "VALUES" => $postProp, "MULTIPLE" => "Y", "DEFAULT" => array()), "COMMENT_PROPERTY" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("COMMENT_PROPERTY"), "TYPE" => "LIST", "VALUES" => $commentProp, "MULTIPLE" => "Y", "DEFAULT" => array()), "USE_ASC_PAGING" => array("NAME" => GetMessage("BC_USE_ASC_PAGING"), "TYPE" => "CHECKBOX", "MULTIPLE" => "N", "VALUE" => "N", "DEFAULT" => "", "PARENT" => "ADDITIONAL_SETTINGS"), "NOT_USE_COMMENT_TITLE" => array("NAME" => GetMessage("BC_NOT_USE_COMMENT_TITLE"), "TYPE" => "CHECKBOX", "MULTIPLE" => "N", "VALUE" => "Y", "DEFAULT" => "", "PARENT" => "COMMENT"), "SHOW_RATING" => array("NAME" => GetMessage("SHOW_RATING"), "TYPE" => "LIST", "VALUES" => array("" => GetMessage("SHOW_RATING_CONFIG"), "Y" => GetMessage("MAIN_YES"), "N" => GetMessage("MAIN_NO")), "MULTIPLE" => "N", "DEFAULT" => "", "PARENT" => "ADDITIONAL_SETTINGS"), "RATING_TYPE" => array("NAME" => GetMessage("RATING_TYPE"), "TYPE" => "LIST", "VALUES" => array("" => GetMessage("RATING_TYPE_CONFIG"), "like" => GetMessage("RATING_TYPE_LIKE_TEXT"), "like_graphic" => GetMessage("RATING_TYPE_LIKE_GRAPHIC"), "standart_text" => GetMessage("RATING_TYPE_STANDART_TEXT"), "standart" => GetMessage("RATING_TYPE_STANDART_GRAPHIC")), "MULTIPLE" => "N", "DEFAULT" => "", "PARENT" => "ADDITIONAL_SETTINGS"), "SMILES_COUNT" => array("NAME" => GetMessage("BPC_SMILES_COUNT"), "TYPE" => "STRING", "DEFAULT" => 4, "PARENT" => "VISUAL"), "IMAGE_MAX_WIDTH" => array("NAME" => GetMessage("BPC_IMAGE_MAX_WIDTH"), "TYPE" => "STRING", "DEFAULT" => 800, "PARENT" => "VISUAL"), "IMAGE_MAX_HEIGHT" => array("NAME" => GetMessage("BPC_IMAGE_MAX_HEIGHT"), "TYPE" => "STRING", "DEFAULT" => 800, "PARENT" => "VISUAL"), "EDITOR_RESIZABLE" => array("NAME" => GetMessage("BPC_EDITOR_RESIZABLE"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y", "PARENT" => "VISUAL"), "EDITOR_DEFAULT_HEIGHT" => array("NAME" => GetMessage("BPC_EDITOR_DEFAULT_HEIGHT"), "TYPE" => "STRING", "DEFAULT" => 300, "PARENT" => "VISUAL"), "EDITOR_CODE_DEFAULT" => array("NAME" => GetMessage("BPC_EDITOR_CODE_DEFAULT"), "TYPE" => "CHECKBOX", "DEFAULT" => "N", "PARENT" => "VISUAL"), "AJAX_POST" => array("NAME" => GetMessage("BPC_AJAX_POST"), "TYPE" => "CHECKBOX", "DEFAULT" => "", "PARENT" => "COMMENT"), "COMMENT_EDITOR_RESIZABLE" => array("NAME" => GetMessage("BPC_COMMENT_EDITOR_RESIZABLE"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y", "PARENT" => "COMMENT"), "COMMENT_EDITOR_DEFAULT_HEIGHT" => array("NAME" => GetMessage("BPC_COMMENT_EDITOR_DEFAULT_HEIGHT"), "TYPE" => "STRING", "DEFAULT" => 200, "PARENT" => "COMMENT"), "COMMENT_EDITOR_CODE_DEFAULT" => array("NAME" => GetMessage("BPC_COMMENT_EDITOR_CODE_DEFAULT"), "TYPE" => "CHECKBOX", "DEFAULT" => "N", "PARENT" => "COMMENT"), "COMMENT_ALLOW_VIDEO" => array("NAME" => GetMessage("BPC_COMMENT_ALLOW_VIDEO"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y", "PARENT" => "COMMENT"), "COMMENT_ALLOW_IMAGE_UPLOAD" => array("NAME" => GetMessage("BPC_ALLOW_IMAGE_UPLOAD"), "TYPE" => "LIST", "VALUES" => array("A" => GetMessage("BPC_ALLOW_IMAGE_UPLOAD_A"), "R" => GetMessage("BPC_ALLOW_IMAGE_UPLOAD_R"), "N" => GetMessage("BPC_ALLOW_IMAGE_UPLOAD_N")), "MULTIPLE" => "N", "DEFAULT" => "A", "PARENT" => "COMMENT"), "SHOW_SPAM" => array("NAME" => GetMessage("BPC_SHOW_SPAM"), "TYPE" => "CHECKBOX", "DEFAULT" => "N", "PARENT" => "COMMENT"), "NO_URL_IN_COMMENTS" => array("NAME" => GetMessage("BPC_NO_URL_IN_COMMENTS"), "TYPE" => "LIST", "VALUES" => array("" => GetMessage("BPC_NO_URL_IN_COMMENTS_N"), "A" => GetMessage("BPC_NO_URL_IN_COMMENTS_A"), "L" => GetMessage("BPC_NO_URL_IN_COMMENTS_L")), "MULTIPLE" => "N", "DEFAULT" => "", "PARENT" => "COMMENT"), "NO_URL_IN_COMMENTS_AUTHORITY" => array("NAME" => GetMessage("BPC_NO_URL_IN_COMMENTS_AUTHORITY"), "TYPE" => "STRING", "DEFAULT" => "", "PARENT" => "COMMENT"), "ALLOW_POST_CODE" => array("NAME" => GetMessage("BPC_ALLOW_POST_CODE"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y", "PARENT" => "ADDITIONAL_SETTINGS", "REFRESH" => "Y")));
if ($arCurrentValues["ALLOW_POST_CODE"] != "N") {
$arComponentParameters["PARAMETERS"]["USE_GOOGLE_CODE"] = array("NAME" => GetMessage("BPE_USE_GOOGLE_CODE"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y", "PARENT" => "ADDITIONAL_SETTINGS");
}
示例7: array
$arForum = array();
$db_res = CForumNew::GetList(array(), array());
$iForumDefault = 0;
if ($db_res && ($res = $db_res->GetNext())) {
do {
$iForumDefault = intVal($res["ID"]);
$arForum[intVal($res["ID"])] = $res["NAME"];
} while ($res = $db_res->GetNext());
}
$arIBlockType = array();
$sIBlockType = "";
$rsIBlockType = CIBlockType::GetList(array("sort" => "asc"), array("ACTIVE" => "Y"));
while ($arr = $rsIBlockType->Fetch()) {
if ($ar = CIBlockType::GetByIDLang($arr["ID"], LANGUAGE_ID)) {
if ($sIBlockType == "") {
$sIBlockType = $arr["ID"];
}
$arIBlockType[$arr["ID"]] = "[" . $arr["ID"] . "] " . $ar["NAME"];
}
}
$arIBlock = array();
$rsIBlock = CIBlock::GetList(array("sort" => "asc"), array("TYPE" => $arCurrentValues["IBLOCK_TYPE"], "ACTIVE" => "Y"));
$iIblockDefault = 0;
while ($arr = $rsIBlock->Fetch()) {
if ($iIblockDefault <= 0) {
$iIblockDefault = intVal($arr["ID"]);
}
$arIBlock[$arr["ID"]] = "[" . $arr["ID"] . "] " . $arr["NAME"];
}
$arComponentParameters = array("PARAMETERS" => array("FORUM_ID" => array("PARENT" => "BASE", "NAME" => GetMessage("F_FORUM_ID"), "TYPE" => "LIST", "DEFAULT" => $iForumDefault, "VALUES" => $arForum), "IBLOCK_TYPE" => array("PARENT" => "BASE", "NAME" => GetMessage("F_IBLOCK_TYPE"), "TYPE" => "LIST", "VALUES" => $arIBlockType, "REFRESH" => "Y", "DEFAULT" => $sIBlockType), "IBLOCK_ID" => array("PARENT" => "BASE", "NAME" => GetMessage("F_IBLOCK_ID"), "TYPE" => "LIST", "VALUES" => $arIBlock, "DEFAULT" => $iIblockDefault), "ELEMENT_ID" => array("PARENT" => "BASE", "NAME" => GetMessage("IBLOCK_ELEMENT_ID"), "TYPE" => "STRING", "DEFAULT" => '={$_REQUEST["ELEMENT_ID"]}'), "POST_FIRST_MESSAGE" => array("PARENT" => "BASE", "NAME" => GetMessage("F_POST_FIRST_MESSAGE"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y"), "POST_FIRST_MESSAGE_TEMPLATE" => array("PARENT" => "BASE", "NAME" => GetMessage("F_POST_FIRST_MESSAGE_TEMPLATE"), "TYPE" => "STRING", "ROWS" => 4, "DEFAULT" => "#IMAGE#\n[url=#LINK#]#TITLE#[/url]\n#BODY#"), "URL_TEMPLATES_READ" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_READ_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => ""), "URL_TEMPLATES_DETAIL" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_DETAIL_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => ""), "URL_TEMPLATES_PROFILE_VIEW" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_PROFILE_VIEW_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => ""), "MESSAGES_PER_PAGE" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("F_MESSAGES_PER_PAGE"), "TYPE" => "STRING", "DEFAULT" => intVal(COption::GetOptionString("forum", "MESSAGES_PER_PAGE", "10"))), "PAGE_NAVIGATION_TEMPLATE" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("F_PAGE_NAVIGATION_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => ""), "DATE_TIME_FORMAT" => CComponentUtil::GetDateTimeFormatField(GetMessage("F_DATE_TIME_FORMAT"), "ADDITIONAL_SETTINGS"), "NAME_TEMPLATE" => array("TYPE" => "LIST", "NAME" => GetMessage("F_NAME_TEMPLATE"), "VALUES" => CComponentUtil::GetDefaultNameTemplates(), "MULTIPLE" => "N", "ADDITIONAL_VALUES" => "Y", "DEFAULT" => "", "PARENT" => "ADDITIONAL_SETTINGS"), "PATH_TO_SMILE" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("F_PATH_TO_SMILE"), "TYPE" => "STRING", "MULTIPLE" => "N", "DEFAULT" => "/bitrix/images/forum/smile/"), "EDITOR_CODE_DEFAULT" => array("NAME" => GetMessage("F_EDITOR_CODE_DEFAULT"), "TYPE" => "CHECKBOX", "DEFAULT" => "N", "PARENT" => "ADDITIONAL_SETTINGS"), "SHOW_AVATAR" => array("NAME" => GetMessage("F_SHOW_AVATAR"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y", "PARENT" => "ADDITIONAL_SETTINGS"), "SHOW_RATING" => array("NAME" => GetMessage("SHOW_RATING"), "TYPE" => "LIST", "VALUES" => array("" => GetMessage("SHOW_RATING_CONFIG"), "Y" => GetMessage("MAIN_YES"), "N" => GetMessage("MAIN_NO")), "MULTIPLE" => "N", "DEFAULT" => "", "PARENT" => "ADDITIONAL_SETTINGS"), "RATING_TYPE" => array("NAME" => GetMessage("RATING_TYPE"), "TYPE" => "LIST", "VALUES" => array("" => GetMessage("RATING_TYPE_CONFIG"), "like" => GetMessage("RATING_TYPE_LIKE_TEXT"), "like_graphic" => GetMessage("RATING_TYPE_LIKE_GRAPHIC"), "standart_text" => GetMessage("RATING_TYPE_STANDART_TEXT"), "standart" => GetMessage("RATING_TYPE_STANDART_GRAPHIC")), "MULTIPLE" => "N", "DEFAULT" => "", "PARENT" => "ADDITIONAL_SETTINGS"), "SHOW_MINIMIZED" => array("NAME" => GetMessage("F_SHOW_MINIMIZED"), "TYPE" => "CHECKBOX", "DEFAULT" => "N", "PARENT" => "ADDITIONAL_SETTINGS"), "USE_CAPTCHA" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("F_USE_CAPTCHA"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y"), "PREORDER" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("F_PREORDER"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y"), "CACHE_TIME" => array()));
示例8: array
<?php
if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) {
die;
}
if (!CModule::IncludeModule("socialnetwork")) {
return false;
}
$arRes = $GLOBALS["USER_FIELD_MANAGER"]->GetUserFields("USER", 0, LANGUAGE_ID);
$userProp = array();
if (!empty($arRes)) {
foreach ($arRes as $key => $val) {
$userProp[$val["FIELD_NAME"]] = strLen($val["EDIT_FORM_LABEL"]) > 0 ? $val["EDIT_FORM_LABEL"] : $val["FIELD_NAME"];
}
}
$userProp1 = array("ID" => GetMessage("SONET_UP1_ID"), "LOGIN" => GetMessage("SONET_UP1_LOGIN"), "NAME" => GetMessage("SONET_UP1_NAME"), "SECOND_NAME" => GetMessage("SONET_UP1_SECOND_NAME"), "LAST_NAME" => GetMessage("SONET_UP1_LAST_NAME"), "EMAIL" => GetMessage("SONET_UP1_EMAIL"), "TIME_ZONE" => GetMessage("SONET_UP1_TIME_ZONE"), "LAST_LOGIN" => GetMessage("SONET_UP1_LAST_LOGIN"), "DATE_REGISTER" => GetMessage("SONET_UP1_DATE_REGISTER"), "LID" => GetMessage("SONET_UP1_LID"), "PERSONAL_BIRTHDAY" => GetMessage("SONET_UP1_PERSONAL_BIRTHDAY"), "PERSONAL_PROFESSION" => GetMessage("SONET_UP1_PERSONAL_PROFESSION"), "PERSONAL_WWW" => GetMessage("SONET_UP1_PERSONAL_WWW"), "PERSONAL_ICQ" => GetMessage("SONET_UP1_PERSONAL_ICQ"), "PERSONAL_GENDER" => GetMessage("SONET_UP1_PERSONAL_GENDER"), "PERSONAL_PHOTO" => GetMessage("SONET_UP1_PERSONAL_PHOTO"), "PERSONAL_NOTES" => GetMessage("SONET_UP1_PERSONAL_NOTES"), "PERSONAL_PHONE" => GetMessage("SONET_UP1_PERSONAL_PHONE"), "PERSONAL_FAX" => GetMessage("SONET_UP1_PERSONAL_FAX"), "PERSONAL_MOBILE" => GetMessage("SONET_UP1_PERSONAL_MOBILE"), "PERSONAL_PAGER" => GetMessage("SONET_UP1_PERSONAL_PAGER"), "PERSONAL_COUNTRY" => GetMessage("SONET_UP1_PERSONAL_COUNTRY"), "PERSONAL_STATE" => GetMessage("SONET_UP1_PERSONAL_STATE"), "PERSONAL_CITY" => GetMessage("SONET_UP1_PERSONAL_CITY"), "PERSONAL_ZIP" => GetMessage("SONET_UP1_PERSONAL_ZIP"), "PERSONAL_STREET" => GetMessage("SONET_UP1_PERSONAL_STREET"), "PERSONAL_MAILBOX" => GetMessage("SONET_UP1_PERSONAL_MAILBOX"), "WORK_COMPANY" => GetMessage("SONET_UP1_WORK_COMPANY"), "WORK_DEPARTMENT" => GetMessage("SONET_UP1_WORK_DEPARTMENT"), "WORK_POSITION" => GetMessage("SONET_UP1_WORK_POSITION"), "WORK_WWW" => GetMessage("SONET_UP1_WORK_WWW"), "WORK_PROFILE" => GetMessage("SONET_UP1_WORK_PROFILE"), "WORK_LOGO" => GetMessage("SONET_UP1_WORK_LOGO"), "WORK_NOTES" => GetMessage("SONET_UP1_WORK_NOTES"), "WORK_PHONE" => GetMessage("SONET_UP1_WORK_PHONE"), "WORK_FAX" => GetMessage("SONET_UP1_WORK_FAX"), "WORK_PAGER" => GetMessage("SONET_UP1_WORK_PAGER"), "WORK_COUNTRY" => GetMessage("SONET_UP1_WORK_COUNTRY"), "WORK_STATE" => GetMessage("SONET_UP1_WORK_STATE"), "WORK_CITY" => GetMessage("SONET_UP1_WORK_CITY"), "WORK_ZIP" => GetMessage("SONET_UP1_WORK_ZIP"), "WORK_STREET" => GetMessage("SONET_UP1_WORK_STREET"), "WORK_MAILBOX" => GetMessage("SONET_UP1_WORK_MAILBOX"));
if (IsModuleInstalled("forum")) {
$userProp1 = array_merge($userProp1, array('FORUM_SHOW_NAME' => GetMessage('SONET_UP1_FORUM_PREFIX') . GetMessage('SONET_UP1_FORUM_SHOW_NAME'), 'FORUM_DESCRIPTION' => GetMessage('SONET_UP1_FORUM_PREFIX') . GetMessage('SONET_UP1_FORUM_DESCRIPTION'), 'FORUM_INTERESTS' => GetMessage('SONET_UP1_FORUM_PREFIX') . GetMessage('SONET_UP1_FORUM_INTERESTS'), 'FORUM_SIGNATURE' => GetMessage('SONET_UP1_FORUM_PREFIX') . GetMessage('SONET_UP1_FORUM_SIGNATURE'), 'FORUM_AVATAR' => GetMessage('SONET_UP1_FORUM_PREFIX') . GetMessage('SONET_UP1_FORUM_AVATAR'), 'FORUM_HIDE_FROM_ONLINE' => GetMessage('SONET_UP1_FORUM_PREFIX') . GetMessage('SONET_UP1_FORUM_HIDE_FROM_ONLINE'), 'FORUM_SUBSC_GET_MY_MESSAGE' => GetMessage('SONET_UP1_FORUM_PREFIX') . GetMessage('SONET_UP1_FORUM_SUBSC_GET_MY_MESSAGE')));
}
if (IsModuleInstalled("blog")) {
$userProp1 = array_merge($userProp1, array('BLOG_ALIAS' => GetMessage('SONET_UP1_BLOG_PREFIX') . GetMessage('SONET_UP1_BLOG_ALIAS'), 'BLOG_DESCRIPTION' => GetMessage('SONET_UP1_BLOG_PREFIX') . GetMessage('SONET_UP1_BLOG_DESCRIPTION'), 'BLOG_INTERESTS' => GetMessage('SONET_UP1_BLOG_PREFIX') . GetMessage('SONET_UP1_BLOG_INTERESTS'), 'BLOG_AVATAR' => GetMessage('SONET_UP1_BLOG_PREFIX') . GetMessage('SONET_UP1_BLOG_AVATAR')));
}
$arComponentParameters = array("GROUPS" => array("VARIABLE_ALIASES" => array("NAME" => GetMessage("SONET_VARIABLE_ALIASES"))), "PARAMETERS" => array("PATH_TO_USER" => array("NAME" => GetMessage("SONET_PATH_TO_USER"), "TYPE" => "STRING", "MULTIPLE" => "N", "DEFAULT" => "", "COLS" => 25, "PARENT" => "URL_TEMPLATES"), "PATH_TO_USER_EDIT" => array("NAME" => GetMessage("SONET_PATH_TO_USER_EDIT"), "TYPE" => "STRING", "MULTIPLE" => "N", "DEFAULT" => "", "COLS" => 25, "PARENT" => "URL_TEMPLATES"), "PAGE_VAR" => array("NAME" => GetMessage("SONET_PAGE_VAR"), "TYPE" => "STRING", "MULTIPLE" => "N", "DEFAULT" => "", "COLS" => 25, "PARENT" => "VARIABLE_ALIASES"), "USER_VAR" => array("NAME" => GetMessage("SONET_USER_VAR"), "TYPE" => "STRING", "MULTIPLE" => "N", "DEFAULT" => "", "COLS" => 25, "PARENT" => "VARIABLE_ALIASES"), "ID" => array("NAME" => GetMessage("SONET_ID"), "TYPE" => "STRING", "MULTIPLE" => "N", "DEFAULT" => "={\$id}", "COLS" => 25, "PARENT" => "DATA_SOURCE"), "SET_TITLE" => array(), "EDITABLE_FIELDS" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("SONET_EDITABLE_FIELDS"), "TYPE" => "LIST", "VALUES" => array_merge($userProp, $userProp1), "MULTIPLE" => "Y", "DEFAULT" => array('LOGIN', 'NAME', 'SECOND_NAME', 'LAST_NAME', 'EMAIL', 'PERSONAL_BIRTHDAY', 'PERSONAL_CITY', 'PERSONAL_COUNTRY', 'PERSONAL_FAX', 'PERSONAL_GENDER', 'PERSONAL_ICQ', 'PERSONAL_MAILBOX', 'PERSONAL_MOBILE', 'PERSONAL_PAGER', 'PERSONAL_PHONE', 'PERSONAL_PHOTO', 'PERSONAL_STATE', 'PERSONAL_STREET', 'PERSONAL_WWW', 'PERSONAL_ZIP')), "DATE_TIME_FORMAT" => CComponentUtil::GetDateTimeFormatField(GetMessage("SONET_DATE_TIME_FORMAT"), "VISUAL"), "NAME_TEMPLATE" => array("TYPE" => "LIST", "NAME" => GetMessage("SONET_NAME_TEMPLATE"), "VALUES" => CComponentUtil::GetDefaultNameTemplates(), "MULTIPLE" => "N", "ADDITIONAL_VALUES" => "Y", "DEFAULT" => "", "PARENT" => "ADDITIONAL_SETTINGS"), "SHOW_LOGIN" => array("NAME" => GetMessage("SONET_SHOW_LOGIN"), "TYPE" => "CHECKBOX", "MULTIPLE" => "N", "VALUE" => "Y", "DEFAULT" => "Y", "PARENT" => "ADDITIONAL_SETTINGS")));
示例9: array
<?php
if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) {
die;
}
if (!CModule::IncludeModule("blog")) {
return false;
}
$arRes = $GLOBALS["USER_FIELD_MANAGER"]->GetUserFields("BLOG_POST", 0, LANGUAGE_ID);
$postProp = array();
if (!empty($arRes)) {
foreach ($arRes as $key => $val) {
$postProp[$val["FIELD_NAME"]] = strLen($val["EDIT_FORM_LABEL"]) > 0 ? $val["EDIT_FORM_LABEL"] : $val["FIELD_NAME"];
}
}
$arComponentParameters = array("GROUPS" => array("VARIABLE_ALIASES" => array("NAME" => GetMessage("B_VARIABLE_ALIASES"))), "PARAMETERS" => array("ID" => array("NAME" => GetMessage("BPE_ID"), "TYPE" => "STRING", "DEFAULT" => "={\$id}", "PARENT" => "DATA_SOURCE"), "PATH_TO_BLOG" => array("NAME" => GetMessage("BPE_PATH_TO_BLOG"), "TYPE" => "STRING", "MULTIPLE" => "N", "DEFAULT" => "", "COLS" => 25, "PARENT" => "URL_TEMPLATES"), "PATH_TO_POST" => array("NAME" => GetMessage("BPE_PATH_TO_POST"), "TYPE" => "STRING", "MULTIPLE" => "N", "DEFAULT" => "", "COLS" => 25, "PARENT" => "URL_TEMPLATES"), "PATH_TO_POST_EDIT" => array("NAME" => GetMessage("BPE_PATH_TO_POST_EDIT"), "TYPE" => "STRING", "MULTIPLE" => "N", "DEFAULT" => "", "COLS" => 25, "PARENT" => "URL_TEMPLATES"), "PATH_TO_USER" => array("NAME" => GetMessage("BPE_PATH_TO_USER"), "TYPE" => "STRING", "MULTIPLE" => "N", "DEFAULT" => "", "COLS" => 25, "PARENT" => "URL_TEMPLATES"), "PATH_TO_DRAFT" => array("NAME" => GetMessage("BH_PATH_TO_DRAFT"), "TYPE" => "STRING", "MULTIPLE" => "N", "DEFAULT" => "", "COLS" => 25, "PARENT" => "URL_TEMPLATES"), "PATH_TO_SMILE" => array("NAME" => GetMessage("BB_PATH_TO_SMILE"), "TYPE" => "STRING", "MULTIPLE" => "N", "DEFAULT" => "", "COLS" => 25, "PARENT" => "ADDITIONAL_SETTINGS"), "POST_VAR" => array("NAME" => GetMessage("BPE_POST_VAR"), "TYPE" => "STRING", "MULTIPLE" => "N", "DEFAULT" => "", "COLS" => 25, "PARENT" => "VARIABLE_ALIASES"), "USER_VAR" => array("NAME" => GetMessage("BPE_USER_VAR"), "TYPE" => "STRING", "MULTIPLE" => "N", "DEFAULT" => "", "COLS" => 25, "PARENT" => "VARIABLE_ALIASES"), "PAGE_VAR" => array("NAME" => GetMessage("BPE_PAGE_VAR"), "TYPE" => "STRING", "MULTIPLE" => "N", "DEFAULT" => "", "COLS" => 25, "PARENT" => "VARIABLE_ALIASES"), "SET_TITLE" => array(), "POST_PROPERTY" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("POST_PROPERTY"), "TYPE" => "LIST", "VALUES" => $postProp, "MULTIPLE" => "Y", "DEFAULT" => array()), "DATE_TIME_FORMAT" => CComponentUtil::GetDateTimeFormatField(GetMessage("BC_DATE_TIME_FORMAT"), "VISUAL"), "IMAGE_MAX_WIDTH" => array("NAME" => GetMessage("BPC_IMAGE_MAX_WIDTH"), "TYPE" => "STRING", "DEFAULT" => 600, "PARENT" => "VISUAL"), "IMAGE_MAX_HEIGHT" => array("NAME" => GetMessage("BPC_IMAGE_MAX_HEIGHT"), "TYPE" => "STRING", "DEFAULT" => 600, "PARENT" => "VISUAL"), "ALLOW_POST_CODE" => array("NAME" => GetMessage("BPC_ALLOW_POST_CODE"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y", "PARENT" => "ADDITIONAL_SETTINGS", "REFRESH" => "Y")));
示例10: array
<?php
if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) {
die;
}
if (!CModule::IncludeModule("forum")) {
return;
}
$arComponentParameters = array("GROUPS" => array("URL_TEMPLATES" => array("NAME" => GetMessage("F_URL_TEMPLATES"))), "PARAMETERS" => array("FID" => array("PARENT" => "BASE", "NAME" => GetMessage("F_DEFAULT_FID"), "TYPE" => "STRING", "DEFAULT" => '={$_REQUEST["FID"]}'), "MID" => array("PARENT" => "BASE", "NAME" => GetMessage("F_DEFAULT_MID"), "TYPE" => "STRING", "DEFAULT" => '={$_REQUEST["MID"]}'), "MESSAGE_TYPE" => array("PARENT" => "BASE", "NAME" => GetMessage("F_MESSAGE_TYPE"), "TYPE" => "STRING", "DEFAULT" => '={$_REQUEST["MESSAGE_TYPE"]}'), "URL_TEMPLATES_INDEX" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_INDEX_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "index.php"), "URL_TEMPLATES_LIST" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_LIST_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "list.php?FID=#FID#"), "URL_TEMPLATES_READ" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_READ_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "read.php?FID=#FID#&TID=#TID#"), "URL_TEMPLATES_MESSAGE" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_MESSAGE_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "message.php?FID=#FID#&TID=#TID#&MID=#MID#"), "URL_TEMPLATES_PROFILE_VIEW" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_PROFILE_VIEW_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "profile_view.php?UID=#UID#"), "PATH_TO_SMILE" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("F_DEFAULT_PATH_TO_SMILE"), "TYPE" => "STRING", "DEFAULT" => "/bitrix/images/forum/smile/"), "PATH_TO_ICON" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("F_DEFAULT_PATH_TO_ICON"), "TYPE" => "STRING", "DEFAULT" => "/bitrix/images/forum/icons/"), "DATE_TIME_FORMAT" => CComponentUtil::GetDateTimeFormatField(GetMessage("F_DATE_TIME_FORMAT"), "ADDITIONAL_SETTINGS"), "NAME_TEMPLATE" => array("TYPE" => "LIST", "NAME" => GetMessage("F_NAME_TEMPLATE"), "VALUES" => CComponentUtil::GetDefaultNameTemplates(), "MULTIPLE" => "N", "ADDITIONAL_VALUES" => "Y", "DEFAULT" => "", "PARENT" => "ADDITIONAL_SETTINGS"), "SET_NAVIGATION" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("F_SET_NAVIGATION"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y"), "AJAX_TYPE" => CForumParameters::GetAjaxType(), "CACHE_TIME" => array(), "SET_TITLE" => array()));
if (IsModuleInstalled("vote")) {
$right = $GLOBALS["APPLICATION"]->GetGroupRight("vote");
if ($right >= "W") {
$arComponentParameters["GROUPS"]["VOTE_SETTINGS"] = array("NAME" => GetMessage("F_VOTE_SETTINGS"));
$arComponentParameters["PARAMETERS"]["SHOW_VOTE"] = array("PARENT" => "VOTE_SETTINGS", "NAME" => GetMessage("F_SHOW_VOTE"), "TYPE" => "CHECKBOX", "DEFAULT" => "N", "REFRESH" => "Y");
if ($arCurrentValues["SHOW_VOTE"] == "Y") {
$arVoteChannels = array();
CModule::IncludeModule("vote");
$db_res = CVoteChannel::GetList($by = "", $order = "", array("ACTIVE" => "Y"), $is_filtered);
if ($db_res && ($res = $db_res->Fetch())) {
do {
$arVoteChannels[$res["ID"] . ""] = "[ " . $res["ID"] . " ]" . $res["TITLE"];
} while ($res = $db_res->Fetch());
}
$arComponentParameters["PARAMETERS"]["VOTE_CHANNEL_ID"] = array("PARENT" => "VOTE_SETTINGS", "NAME" => GetMessage("F_VOTE_CHANNEL_ID"), "TYPE" => "LIST", "VALUES" => $arVoteChannels, "DEFAULT" => "", "REFRESH" => "Y");
reset($arVoteChannels);
if (intVal($arCurrentValues["VOTE_CHANNEL_ID"]) > 0) {
$voteId = intVal($arCurrentValues["VOTE_CHANNEL_ID"]);
} else {
$voteId = key($arVoteChannels);
}
if (!empty($voteId)) {
示例11: array
}
$arRes = $GLOBALS["USER_FIELD_MANAGER"]->GetUserFields("USER", 0, LANGUAGE_ID);
$userProp = array();
if (!empty($arRes)) {
foreach ($arRes as $key => $val) {
$userProp[$val["FIELD_NAME"]] = strLen($val["EDIT_FORM_LABEL"]) > 0 ? $val["EDIT_FORM_LABEL"] : $val["FIELD_NAME"];
}
}
$arRes = $GLOBALS["USER_FIELD_MANAGER"]->GetUserFields("SONET_GROUP", 0, LANGUAGE_ID);
$groupProp = array();
if (!empty($arRes)) {
foreach ($arRes as $key => $val) {
$groupProp[$val["FIELD_NAME"]] = strLen($val["EDIT_FORM_LABEL"]) > 0 ? $val["EDIT_FORM_LABEL"] : $val["FIELD_NAME"];
}
}
$arComponentParameters = array("PARAMETERS" => array("VARIABLE_ALIASES" => array("user_id" => array("NAME" => GetMessage("SONET_USER_VAR"), "DEFAULT" => "user_id"), "page" => array("NAME" => GetMessage("SONET_PAGE_VAR"), "DEFAULT" => "page"), "group_id" => array("NAME" => GetMessage("SONET_GROUP_VAR"), "DEFAULT" => "group_id"), "message_id" => array("NAME" => GetMessage("SONET_MESSAGE_VAR"), "DEFAULT" => "message_id")), "SEF_MODE" => array("index" => array("NAME" => GetMessage("SONET_SEF_PATH_INDEX"), "DEFAULT" => "index.php", "VARIABLES" => array()), "search" => array("NAME" => GetMessage("SONET_SEF_PATH_SEARCH"), "DEFAULT" => "search.php", "VARIABLES" => array()), "group_reindex" => array("NAME" => GetMessage("SONET_SEF_GROUP_REINDEX"), "DEFAULT" => "group_reindex.php", "VARIABLES" => array()), "group_content_search" => array("NAME" => GetMessage("SONET_SEF_GROUP_CONTENT_SEARCH"), "DEFAULT" => "group/#group_id#/search/", "VARIABLES" => array()), "group_subscribe" => array("NAME" => GetMessage("SONET_SEF_GROUP_SUBSCRIBE"), "DEFAULT" => "group/#group_id#/subscribe/", "VARIABLES" => array()), "group" => array("NAME" => GetMessage("SONET_SEF_PATH_GROUP"), "DEFAULT" => "group/#group_id#/", "VARIABLES" => array("group_id")), "group_search" => array("NAME" => GetMessage("SONET_SEF_PATH_GROUP_SEARCH"), "DEFAULT" => "group/search/", "VARIABLES" => array()), "group_search_subject" => array("NAME" => GetMessage("SONET_SEF_PATH_GROUP_SEARCH_SUBJECT"), "DEFAULT" => "group/search/#subject_id#/", "VARIABLES" => array("subject_id")), "group_edit" => array("NAME" => GetMessage("SONET_SEF_PATH_GROUP_EDIT"), "DEFAULT" => "group/#group_id#/edit/", "VARIABLES" => array("group_id")), "group_delete" => array("NAME" => GetMessage("SONET_SEF_PATH_GROUP_DELETE"), "DEFAULT" => "group/#group_id#/delete/", "VARIABLES" => array("group_id")), "group_request_search" => array("NAME" => GetMessage("SONET_GROUP_REQUEST_SEARCH"), "DEFAULT" => "group/#group_id#/user_search/", "VARIABLES" => array("group_id")), "group_request_user" => array("NAME" => GetMessage("SONET_GROUP_REQUEST_USER"), "DEFAULT" => "group/#group_id#/user/#user_id#/request/", "VARIABLES" => array("user_id", "group_id")), "user_request_group" => array("NAME" => GetMessage("SONET_USER_REQUEST_GROUP"), "DEFAULT" => "group/#group_id#/user_request/", "VARIABLES" => array("group_id")), "group_requests" => array("NAME" => GetMessage("SONET_GROUP_REQUESTS"), "DEFAULT" => "group/#group_id#/requests/", "VARIABLES" => array("group_id")), "group_requests_out" => array("NAME" => GetMessage("SONET_GROUP_REQUESTS_OUT"), "DEFAULT" => "group/#group_id#/requests_out/", "VARIABLES" => array("group_id")), "group_mods" => array("NAME" => GetMessage("SONET_SEF_PATH_GROUP_MODS"), "DEFAULT" => "group/#group_id#/moderators/", "VARIABLES" => array("group_id")), "group_users" => array("NAME" => GetMessage("SONET_SEF_PATH_GROUP_USERS"), "DEFAULT" => "group/#group_id#/users/", "VARIABLES" => array("group_id")), "group_ban" => array("NAME" => GetMessage("SONET_SEF_PATH_GROUP_BAN"), "DEFAULT" => "group/#group_id#/ban/", "VARIABLES" => array("group_id")), "user_leave_group" => array("NAME" => GetMessage("SONET_USER_LEAVE_GROUP"), "DEFAULT" => "group/#group_id#/user_leave/", "VARIABLES" => array("group_id")), "group_features" => array("NAME" => GetMessage("SONET_SEF_GROUP_FEATURES"), "DEFAULT" => "group/#group_id#/features/", "VARIABLES" => array("group_id")), "group_log" => array("NAME" => GetMessage("SONET_SEF_GROUP_LOG"), "DEFAULT" => "group/#group_id#/log/", "VARIABLES" => array("group_id")), "group_photo" => array("NAME" => GetMessage("SONET_SEF_GROUP_PHOTO"), "DEFAULT" => "group/#group_id#/photo/", "VARIABLES" => array("group_id")), "group_calendar" => array("NAME" => GetMessage("SONET_SEF_GROUP_CALENDAR"), "DEFAULT" => "group/#group_id#/calendar/", "VARIABLES" => array("group_id")), "group_files" => array("NAME" => GetMessage("SONET_SEF_GROUP_FILES"), "DEFAULT" => "group/#group_id#/files/#path#", "VARIABLES" => array("group_id")), "group_blog" => array("NAME" => GetMessage("SONET_SEF_GROUP_BLOG"), "DEFAULT" => "group/#group_id#/blog/", "VARIABLES" => array("group_id")), "group_blog_post_edit" => array("NAME" => GetMessage("SONET_SEF_GROUP_BLOG_POST_EDIT"), "DEFAULT" => "group/#group_id#/blog/edit/#post_id#/", "VARIABLES" => array("group_id", "post_id")), "group_blog_rss" => array("NAME" => GetMessage("SONET_SEF_GROUP_BLOG_RSS"), "DEFAULT" => "group/#group_id#/blog/rss/#type#/", "VARIABLES" => array("group_id", "type")), "group_blog_draft" => array("NAME" => GetMessage("SONET_SEF_GROUP_BLOG_DRAFT"), "DEFAULT" => "group/#group_id#/blog/draft/", "VARIABLES" => array("group_id")), "group_blog_post" => array("NAME" => GetMessage("SONET_SEF_GROUP_BLOG_POST"), "DEFAULT" => "group/#group_id#/blog/#post_id#/", "VARIABLES" => array("group_id", "post_id")), "group_blog_moderation" => array("NAME" => GetMessage("SONET_SEF_GROUP_BLOG_MODERATION"), "DEFAULT" => "group/#group_id#/blog/moderation/", "VARIABLES" => array("group_id")), "group_forum" => array("NAME" => GetMessage("SONET_SEF_GROUP_FORUM"), "DEFAULT" => "group/#group_id#/forum/", "VARIABLES" => array("group_id")), "group_forum_topic_edit" => array("NAME" => GetMessage("SONET_SEF_GROUP_FORUM_TOPIC_EDIT"), "DEFAULT" => "group/#group_id#/forum/edit/#topic_id#/", "VARIABLES" => array("group_id", "topic_id")), "group_forum_topic" => array("NAME" => GetMessage("SONET_SEF_GROUP_FORUM_TOPIC"), "DEFAULT" => "group/#group_id#/forum/#topic_id#/", "VARIABLES" => array("group_id", "topic_id"))), "PATH_TO_SMILE" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("SONET_PATH_TO_SMILE"), "TYPE" => "STRING", "MULTIPLE" => "N", "DEFAULT" => "/bitrix/images/socialnetwork/smile/"), "PATH_TO_BLOG_SMILE" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("SONET_PATH_TO_BLOG_SMILE"), "TYPE" => "STRING", "MULTIPLE" => "N", "DEFAULT" => "/bitrix/images/blog/smile/"), "PATH_TO_FORUM_SMILE" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("SONET_PATH_TO_FORUM_SMILE"), "TYPE" => "STRING", "MULTIPLE" => "N", "DEFAULT" => "/bitrix/images/forum/smile/"), "SONET_PATH_TO_FORUM_ICON" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("SONET_PATH_TO_FORUM_ICON"), "TYPE" => "STRING", "MULTIPLE" => "N", "DEFAULT" => "/bitrix/images/forum/icon/"), "CACHE_TIME" => array("DEFAULT" => 3600), "SET_TITLE" => array(), "CACHE_TIME_LONG" => array("NAME" => GetMessage("SONET_CACHE_TIME_LONG"), "TYPE" => "STRING", "MULTIPLE" => "N", "DEFAULT" => "604800", "COLS" => 25, "PARENT" => "CACHE_SETTINGS"), "SET_NAV_CHAIN" => array("NAME" => GetMessage("SONET_SET_NAV_CHAIN"), "TYPE" => "CHECKBOX", "MULTIPLE" => "N", "VALUE" => "Y", "DEFAULT" => "Y", "PARENT" => "ADDITIONAL_SETTINGS"), "LOG_SUBSCRIBE_ONLY" => array("NAME" => GetMessage("SONET_GROUP_LOG_SUBSCRIBE_ONLY"), "TYPE" => "CHECKBOX", "MULTIPLE" => "N", "VALUE" => "Y", "DEFAULT" => "N", "PARENT" => "ADDITIONAL_SETTINGS"), "LOG_RSS_TTL" => array("NAME" => GetMessage("SONET_GROUP_LOG_RSS_TTL"), "TYPE" => "STRING", "DEFAULT" => "60", "PARENT" => "ADDITIONAL_SETTINGS"), "ITEM_DETAIL_COUNT" => array("NAME" => GetMessage("SONET_ITEM_DETAIL_COUNT"), "TYPE" => "STRING", "DEFAULT" => 32, "PARENT" => "VISUAL"), "ITEM_MAIN_COUNT" => array("NAME" => GetMessage("SONET_ITEM_MAIN_COUNT"), "TYPE" => "STRING", "DEFAULT" => "6", "PARENT" => "VISUAL"), "DATE_TIME_FORMAT" => CComponentUtil::GetDateTimeFormatField(GetMessage("SONET_DATE_TIME_FORMAT"), "VISUAL"), "SHOW_YEAR" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("SONET_SHOW_YEAR"), "TYPE" => "LIST", "VALUES" => array("Y" => GetMessage("SONET_SHOW_YEAR_VALUE_Y"), "M" => GetMessage("SONET_SHOW_YEAR_VALUE_M"), "N" => GetMessage("SONET_SHOW_YEAR_VALUE_N")), "MULTIPLE" => "N", "DEFAULT" => "Y"), "NAME_TEMPLATE" => array("TYPE" => "LIST", "NAME" => GetMessage("SONET_NAME_TEMPLATE"), "VALUES" => CComponentUtil::GetDefaultNameTemplates(), "MULTIPLE" => "N", "ADDITIONAL_VALUES" => "Y", "DEFAULT" => "", "PARENT" => "VISUAL"), "SHOW_LOGIN" => array("NAME" => GetMessage("SONET_SHOW_LOGIN"), "TYPE" => "CHECKBOX", "MULTIPLE" => "N", "VALUE" => "Y", "DEFAULT" => "Y", "PARENT" => "VISUAL"), "CAN_OWNER_EDIT_DESKTOP" => array("NAME" => GetMessage("SONET_CAN_OWNER_EDIT_DESKTOP"), "TYPE" => "CHECKBOX", "MULTIPLE" => "N", "VALUE" => "Y", "DEFAULT" => IsModuleInstalled("intranet") ? "N" : "Y", "PARENT" => "VISUAL"), "USER_PROPERTY_MAIN" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("SONET_USER_PROPERTY_MAIN"), "TYPE" => "LIST", "VALUES" => $userProp, "MULTIPLE" => "Y", "DEFAULT" => array()), "USER_PROPERTY_CONTACT" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("SONET_USER_PROPERTY_CONTACT"), "TYPE" => "LIST", "VALUES" => $userProp, "MULTIPLE" => "Y", "DEFAULT" => array()), "USER_PROPERTY_PERSONAL" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("SONET_USER_PROPERTY_PERSONAL"), "TYPE" => "LIST", "VALUES" => $userProp, "MULTIPLE" => "Y", "DEFAULT" => array()), "GROUP_PROPERTY" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("SONET_GROUP_PROPERTY"), "TYPE" => "LIST", "VALUES" => $groupProp, "MULTIPLE" => "Y", "DEFAULT" => array()), "GROUP_USE_BAN" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("SONET_GROUP_USE_BAN"), "TYPE" => "CHECKBOX", "MULTIPLE" => "N", "VALUE" => "Y", "DEFAULT" => "Y"), "PATH_TO_USER" => array("NAME" => GetMessage("SONET_PATH_TO_USER"), "TYPE" => "STRING", "MULTIPLE" => "N", "DEFAULT" => "", "COLS" => 25, "PARENT" => "URL_TEMPLATES"), "PATH_TO_SUBSCRIBE" => array("NAME" => GetMessage("SONET_PATH_TO_SUBSCRIBE"), "TYPE" => "STRING", "MULTIPLE" => "N", "DEFAULT" => "", "COLS" => 25, "PARENT" => "URL_TEMPLATES"), "PATH_TO_GROUP_CREATE" => array("NAME" => GetMessage("SONET_SEF_PATH_GROUP_CREATE"), "TYPE" => "STRING", "MULTIPLE" => "N", "DEFAULT" => "", "COLS" => 25, "PARENT" => "URL_TEMPLATES"), "PATH_TO_SEARCH_EXTERNAL" => array("NAME" => GetMessage("SONET_PATH_TO_SEARCH_EXTERNAL"), "TYPE" => "STRING", "MULTIPLE" => "N", "DEFAULT" => "", "COLS" => 25, "PARENT" => "URL_TEMPLATES"), "PATH_TO_MESSAGES_CHAT" => array("NAME" => GetMessage("SONET_PATH_TO_CHAT"), "TYPE" => "STRING", "MULTIPLE" => "N", "DEFAULT" => "/company/personal/messages/chat/#user_id#/", "COLS" => 25, "PARENT" => "URL_TEMPLATES"), "PATH_TO_USER_CALENDAR" => array("NAME" => GetMessage("SONET_PATH_TO_USER_CALENDAR"), "TYPE" => "STRING", "MULTIPLE" => "N", "DEFAULT" => "/company/personal/user/#user_id#/calendar/", "COLS" => 25, "PARENT" => "URL_TEMPLATES"), "PATH_TO_MESSAGE_FORM_MESS" => array("NAME" => GetMessage("SONET_PATH_TO_REPLY"), "TYPE" => "STRING", "MULTIPLE" => "N", "DEFAULT" => "/company/personal/messages/form/#user_id#/#message_id#/", "COLS" => 25, "PARENT" => "URL_TEMPLATES"), "PATH_TO_USER_LOG" => array("NAME" => GetMessage("SONET_PATH_TO_USER_LOG"), "TYPE" => "STRING", "MULTIPLE" => "N", "DEFAULT" => "/company/personal/log/", "COLS" => 25, "PARENT" => "URL_TEMPLATES"), "PATH_TO_USER_LOG_ENTRY" => array("NAME" => GetMessage("SONET_PATH_TO_USER_LOG_ENTRY"), "TYPE" => "STRING", "MULTIPLE" => "N", "DEFAULT" => "/company/personal/log/#log_id#/", "COLS" => 25, "PARENT" => "URL_TEMPLATES"), "PATH_TO_USER_TASKS_TEMPLATES" => array("NAME" => GetMessage("SONET_SEF_USER_TASKS_TEMPLATES"), "TYPE" => "STRING", "MULTIPLE" => "N", "DEFAULT" => "user/#user_id#/tasks/templates/", "COLS" => 25, "PARENT" => "URL_TEMPLATES"), "PATH_TO_USER_TEMPLATES_TEMPLATE" => array("NAME" => GetMessage("SONET_SEF_USER_TEMPLATES_TEMPLATE"), "TYPE" => "STRING", "MULTIPLE" => "N", "DEFAULT" => "user/#user_id#/tasks/templates/template/#action#/#template_id#/", "COLS" => 25, "PARENT" => "URL_TEMPLATES"), "PATH_TO_USER_BLOG_POST_IMPORTANT" => array("NAME" => GetMessage("SONET_SEF_PATH_TO_USER_BLOG_POST_IMPORTANT"), "TYPE" => "STRING", "MULTIPLE" => "N", "DEFAULT" => "user/#user_id#/blog/important/", "COLS" => 25, "PARENT" => "URL_TEMPLATES")));
if (IsModuleInstalled("video")) {
$arComponentParameters["PARAMETERS"]["PATH_TO_VIDEO_CALL"] = array("NAME" => GetMessage("SONET_PATH_TO_VIDEO_CALL"), "TYPE" => "STRING", "MULTIPLE" => "N", "DEFAULT" => "/company/personal/video/#user_id#/", "COLS" => 25, "PARENT" => "URL_TEMPLATES");
}
if (IsModuleInstalled("bizproc")) {
$arComponentParameters["PARAMETERS"]["PATH_TO_BIZPROC_TASK_LIST"] = array("NAME" => GetMessage("SONET_PATH_TO_BIZPROC_TASK_LIST"), "TYPE" => "STRING", "MULTIPLE" => "N", "DEFAULT" => "/company/personal/user/#user_id#/bizproc/", "COLS" => 25, "PARENT" => "URL_TEMPLATES");
$arComponentParameters["PARAMETERS"]["PATH_TO_BIZPROC_TASK"] = array("NAME" => GetMessage("SONET_PATH_TO_BIZPROC_TASK"), "TYPE" => "STRING", "MULTIPLE" => "N", "DEFAULT" => "/company/personal/user/#user_id#/bizproc/#id#/", "COLS" => 25, "PARENT" => "URL_TEMPLATES");
}
if (CModule::IncludeModule("intranet")) {
/* *** EVENT CALENDAR *** */
$arComponentParameters["GROUPS"]["EVENT_CALENDAR_SETTINGS"] = array("NAME" => GetMessage("SONET_EVENT_CALENDAR_SETTINGS"));
$calendar2 = (!IsModuleInstalled("intranet") || COption::GetOptionString("intranet", "calendar_2", "N") == "Y") && CModule::IncludeModule("calendar");
if ($calendar2) {
$arComponentParameters["PARAMETERS"]["CALENDAR_ALLOW_SUPERPOSE"] = array("PARENT" => "EVENT_CALENDAR_SETTINGS", "NAME" => GetMessage("SONET_CALENDAR_ALLOW_SUPERPOSE"), "TYPE" => "CHECKBOX", "DEFAULT" => "N");
$arComponentParameters["PARAMETERS"]["CALENDAR_ALLOW_RES_MEETING"] = array("PARENT" => "EVENT_CALENDAR_SETTINGS", "NAME" => GetMessage("SONET_CALENDAR_ALLOW_RES_MEETING"), "TYPE" => "CHECKBOX", "DEFAULT" => "Y");
} else {
示例12: array
<?php
if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) {
die;
}
CModule::IncludeModule('intranet');
$arComponentParameters = array('GROUPS' => array(), 'PARAMETERS' => array('NUM_USERS' => array('TYPE' => 'STRING', 'MULTIPLE' => 'N', 'DEFAULT' => '50', 'NAME' => GetMessage('INTR_ISBN_PARAM_NUM_USERS'), 'PARENT' => 'BASE'), 'NAME_TEMPLATE' => array('TYPE' => 'LIST', 'NAME' => GetMessage('INTR_ISH_PARAM_NAME_TEMPLATE'), 'VALUES' => CComponentUtil::GetDefaultNameTemplates(), 'MULTIPLE' => 'N', 'ADDITIONAL_VALUES' => 'Y', 'DEFAULT' => "", 'PARENT' => 'BASE'), "SHOW_LOGIN" => array("NAME" => GetMessage("INTR_ISH_PARAM_SHOW_LOGIN"), "TYPE" => "CHECKBOX", "MULTIPLE" => "N", "VALUE" => "Y", "DEFAULT" => "Y", "PARENT" => "BASE"), 'PM_URL' => array('TYPE' => 'STRING', 'DEFAULT' => '/company/personal/messages/chat/#USER_ID#/', 'NAME' => GetMessage('INTR_ISH_PARAM_PM_URL'), 'PARENT' => 'BASE'), 'PATH_TO_CONPANY_DEPARTMENT' => array('TYPE' => 'STRING', 'DEFAULT' => '/company/structure.php?set_filter_structure=Y&structure_UF_DEPARTMENT=#ID#', 'NAME' => GetMessage('INTR_ISH_PARAM_PATH_TO_CONPANY_DEPARTMENT'), 'PARENT' => 'BASE'), "DATE_FORMAT" => CComponentUtil::GetDateFormatField(GetMessage("INTR_ISH_PARAM_DATE_FORMAT"), 'ADDITIONAL_SETTINGS'), "DATE_FORMAT_NO_YEAR" => CComponentUtil::GetDateFormatField(GetMessage("INTR_ISH_PARAM_DATE_FORMAT_NO_YEAR"), 'ADDITIONAL_SETTINGS', true), "DATE_TIME_FORMAT" => CComponentUtil::GetDateTimeFormatField(GetMessage("INTR_ISH_PARAM_DATE_TIME_FORMAT"), 'ADDITIONAL_SETTINGS'), "SHOW_YEAR" => array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("INTR_ISH_PARAM_SHOW_YEAR"), "TYPE" => "LIST", "VALUES" => array("Y" => GetMessage("INTR_ISH_PARAM_SHOW_YEAR_VALUE_Y"), "M" => GetMessage("INTR_ISH_PARAM_SHOW_YEAR_VALUE_M"), "N" => GetMessage("INTR_ISH_PARAM_SHOW_YEAR_VALUE_N")), "MULTIPLE" => "N", "DEFAULT" => "Y"), "CACHE_TIME" => array("DEFAULT" => 3600)));
if (IsModuleInstalled("video")) {
$arComponentParameters["PARAMETERS"]["PATH_TO_VIDEO_CALL"] = array("NAME" => GetMessage("INTR_ISH_PARAM_PATH_TO_VIDEO_CALL"), "TYPE" => "STRING", "DEFAULT" => "/company/personal/video/#USER_ID#/", "PARENT" => "ADDITIONAL_SETTINGS");
}
示例13: array
<?php
if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) {
die;
}
if (!CModule::IncludeModule("forum")) {
return;
}
$arComponentParameters = array("PARAMETERS" => array("TYPE_RANGE" => array("PARENT" => "BASE", "NAME" => GetMessage("F_RSS_TYPE"), "TYPE" => "LIST", "VALUES" => array("RSS1" => "RSS 0.92", "RSS2" => "RSS 2.0", "ATOM" => "Atom 0.3"), "MULTIPLE" => "Y", "DEFAULT" => array("RSS1", "RSS2", "ATOM")), "FID_RANGE" => CForumParameters::GetForumsMultiSelect(GetMessage("F_FID_RANGE"), "BASE"), "IID" => array("PARENT" => "BASE", "NAME" => GetMessage("F_IID"), "TYPE" => "STRING", "DEFAULT" => '={$_REQUEST["IID"]}'), "MODE" => array("PARENT" => "BASE", "NAME" => GetMessage("F_MODE_TEMPLATE"), "TYPE" => "LIST", "VALUES" => array("link" => GetMessage("F_MODE_TEMPLATE_LINK"), "forum" => GetMessage("F_MODE_TEMPLATE_FORUM"), "topic" => GetMessage("F_MODE_TEMPLATE_TOPIC")), "DEFAULT" => array("link"), "REFRESH" => "Y"), "URL_TEMPLATES_RSS" => array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_RSS_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "rss.php?TYPE=#TYPE#&MODE=#MODE#&IID=#IID#"), "CACHE_TIME" => array("DEFAULT" => "86400")));
if ($arCurrentValues["MODE_TEMPLATE"] != "link") {
$arComponentParameters["PARAMETERS"]["TYPE"] = array("PARENT" => "BASE", "NAME" => GetMessage("F_TYPE"), "TYPE" => "STRING", "DEFAULT" => '={$_REQUEST["TYPE"]}');
$arComponentParameters["PARAMETERS"]["COUNT"] = array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("F_COUNT"), "TYPE" => "STRING", "DEFAULT" => '30');
$arComponentParameters["PARAMETERS"]["MAX_FILE_SIZE"] = array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("F_MAX_FILE_SIZE"), "TYPE" => "STRING", "DEFAULT" => '5');
$arComponentParameters["PARAMETERS"]["TEMPLATES_TITLE_FORUMS"] = array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("F_TEMPLATES_TITLE_FORUMS") . GetMessage("F_TEMPLATES_HELP"), "TYPE" => "STRING", "DEFAULT" => '');
$arComponentParameters["PARAMETERS"]["TEMPLATES_TITLE_FORUM"] = array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("F_TEMPLATES_TITLE_FORUM") . GetMessage("F_TEMPLATES_HELP"), "TYPE" => "STRING", "DEFAULT" => '');
$arComponentParameters["PARAMETERS"]["TEMPLATES_TITLE_TOPIC"] = array("PARENT" => "ADDITIONAL_SETTINGS", "NAME" => GetMessage("F_TEMPLATES_TITLE_TOPIC") . GetMessage("F_TEMPLATES_HELP"), "TYPE" => "STRING", "DEFAULT" => '');
$arComponentParameters["PARAMETERS"]["DATE_TIME_FORMAT"] = CComponentUtil::GetDateTimeFormatField(GetMessage("F_DATE_TIME_FORMAT"), "ADDITIONAL_SETTINGS");
$arComponentParameters["PARAMETERS"]["URL_TEMPLATES_LIST"] = array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_LIST_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "list.php?FID=#FID#");
$arComponentParameters["PARAMETERS"]["URL_TEMPLATES_READ"] = array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_READ_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "read.php?FID=#FID#&TID=#TID#&MID=#MID#");
$arComponentParameters["PARAMETERS"]["URL_TEMPLATES_READ"] = array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_READ_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "message.php?FID=#FID#&TID=#TID#&MID=#MID#");
$arComponentParameters["PARAMETERS"]["URL_TEMPLATES_PROFILE_VIEW"] = array("PARENT" => "URL_TEMPLATES", "NAME" => GetMessage("F_PROFILE_VIEW_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => "profile_view.php?UID=#UID#");
}