當前位置: 首頁>>代碼示例>>PHP>>正文


PHP CBlogTools::GetDateTimeFormat方法代碼示例

本文整理匯總了PHP中CBlogTools::GetDateTimeFormat方法的典型用法代碼示例。如果您正苦於以下問題:PHP CBlogTools::GetDateTimeFormat方法的具體用法?PHP CBlogTools::GetDateTimeFormat怎麽用?PHP CBlogTools::GetDateTimeFormat使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在CBlogTools的用法示例。


在下文中一共展示了CBlogTools::GetDateTimeFormat方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: array

<?php

if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) {
    die;
}
if (!CModule::IncludeModule("blog")) {
    return false;
}
if (!CModule::IncludeModule("extranet")) {
    return false;
}
$arGroupList = array();
$dbGroup = CBlogGroup::GetList(array("SITE_ID" => "ASC", "NAME" => "ASC"));
while ($arGroup = $dbGroup->GetNext()) {
    $arGroupList[$arGroup["ID"]] = "(" . $arGroup["SITE_ID"] . ") [" . $arGroup["ID"] . "] " . $arGroup["NAME"];
}
$arComponentParameters = array("GROUPS" => array("VARIABLE_ALIASES" => array("NAME" => GetMessage("B_VARIABLE_ALIASES"))), "PARAMETERS" => array("MESSAGE_PER_PAGE" => array("NAME" => GetMessage("EBMNP_MESSAGE_PER_PAGE"), "TYPE" => "STRING", "DEFAULT" => 6, "PARENT" => "VISUAL"), "DATE_TIME_FORMAT" => array("PARENT" => "VISUAL", "NAME" => GetMessage("BC_DATE_TIME_FORMAT"), "TYPE" => "LIST", "VALUES" => CBlogTools::GetDateTimeFormat(), "MULTIPLE" => "N", "DEFAULT" => $GLOBALS["DB"]->DateFormatToPHP(CSite::GetDateFormat("FULL")), "ADDITIONAL_VALUES" => "Y"), "PATH_TO_BLOG" => array("NAME" => GetMessage("EBMNP_PATH_TO_BLOG"), "TYPE" => "STRING", "MULTIPLE" => "N", "DEFAULT" => "", "COLS" => 25, "PARENT" => "URL_TEMPLATES"), "PATH_TO_POST" => array("NAME" => GetMessage("EBMNP_PATH_TO_POST"), "TYPE" => "STRING", "MULTIPLE" => "N", "DEFAULT" => "", "COLS" => 25, "PARENT" => "URL_TEMPLATES"), "PATH_TO_USER" => array("NAME" => GetMessage("EBMNP_PATH_TO_USER"), "TYPE" => "STRING", "MULTIPLE" => "N", "DEFAULT" => "", "COLS" => 25, "PARENT" => "URL_TEMPLATES"), "PATH_TO_GROUP_BLOG_POST" => array("NAME" => GetMessage("EBMNP_PATH_TO_GROUP_BLOG_POST"), "TYPE" => "STRING", "MULTIPLE" => "N", "DEFAULT" => "", "COLS" => 25, "PARENT" => "URL_TEMPLATES"), "PATH_TO_BLOG_CATEGORY" => array("NAME" => GetMessage("EBMNP_PATH_TO_BLOG_CATEGORY"), "TYPE" => "STRING", "MULTIPLE" => "N", "DEFAULT" => "?category_name=#category_name#", "COLS" => 25, "PARENT" => "URL_TEMPLATES"), "PATH_TO_SMILE" => array("NAME" => GetMessage("EBMNP_PATH_TO_SMILE"), "TYPE" => "STRING", "MULTIPLE" => "N", "DEFAULT" => "", "COLS" => 25, "PARENT" => "ADDITIONAL_SETTINGS"), "BLOG_VAR" => array("NAME" => GetMessage("EBMNP_BLOG_VAR"), "TYPE" => "STRING", "MULTIPLE" => "N", "DEFAULT" => "blog", "COLS" => 25, "PARENT" => "VARIABLE_ALIASES"), "POST_VAR" => array("NAME" => GetMessage("EBMNP_POST_VAR"), "TYPE" => "STRING", "MULTIPLE" => "N", "DEFAULT" => "id", "COLS" => 25, "PARENT" => "VARIABLE_ALIASES"), "USER_VAR" => array("NAME" => GetMessage("EBMNP_USER_VAR"), "TYPE" => "STRING", "MULTIPLE" => "N", "DEFAULT" => "id", "COLS" => 25, "PARENT" => "VARIABLE_ALIASES"), "PAGE_VAR" => array("NAME" => GetMessage("EBMNP_PAGE_VAR"), "TYPE" => "STRING", "MULTIPLE" => "N", "DEFAULT" => "page", "COLS" => 25, "PARENT" => "VARIABLE_ALIASES"), "CATEGORY_NAME_VAR" => array("NAME" => GetMessage("EBMNP_CATEGORY_NAME_VAR"), "TYPE" => "STRING", "MULTIPLE" => "N", "DEFAULT" => "category_name", "COLS" => 25, "PARENT" => "VARIABLE_ALIASES"), "CACHE_TIME" => array("DEFAULT" => "86400"), "GROUP_ID" => array("NAME" => GetMessage("BLG_GROUP_ID"), "TYPE" => "LIST", "VALUES" => $arGroupList, "MULTIPLE" => "N", "DEFAULT" => "", "ADDITIONAL_VALUES" => "Y", "PARENT" => "DATA_SOURCE"), "NAV_TEMPLATE" => array("PARENT" => "VISUAL", "NAME" => GetMessage("BB_NAV_TEMPLATE"), "TYPE" => "STRING", "DEFAULT" => ""), "SET_TITLE" => array()));
開發者ID:mrdeadmouse,項目名稱:u136006,代碼行數:17,代碼來源:.parameters.php


注:本文中的CBlogTools::GetDateTimeFormat方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。