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


PHP CIBlock::isShortDate方法代码示例

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


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

示例1: ConvertTimeStamp

	"CREATED_USER_ID"	=>$find_created_user_id,
	"DATE_ACTIVE_FROM_1"	=>$find_date_active_from_from,
	"DATE_ACTIVE_FROM_2"	=>$find_date_active_from_to,
	"DATE_ACTIVE_TO_1"	=>$find_date_active_to_from,
	"DATE_ACTIVE_TO_2"	=>$find_date_active_to_to,
	"ACTIVE"		=>$find_active,
	"DESCRIPTION"		=>$find_intext,
	"WF_STATUS"		=>$find_status==""?$find_status_id:$find_status,
	"?TAGS"			=>$find_tags,
	"CHECK_PERMISSIONS" => "Y",
	"MIN_PERMISSION" => "R",
);
if(!empty($find_timestamp_2))
	$arFilter["TIMESTAMP_X_2"] = CIBlock::isShortDate($find_timestamp_2)? ConvertTimeStamp(AddTime(MakeTimeStamp($find_timestamp_2), 1, "D"), "FULL"): $find_timestamp_2;
if(!empty($find_created_to))
	$arFilter["DATE_CREATE_2"] = CIBlock::isShortDate($find_created_to)? ConvertTimeStamp(AddTime(MakeTimeStamp($find_created_to), 1, "D"), "FULL"): $find_created_to;

if ($bBizproc && 'E' != $arIBlock['RIGHTS_MODE'])
{
	$strPerm = CIBlock::GetPermission($IBLOCK_ID);
	if ('W' > $strPerm)
	{
		unset($arFilter['CHECK_PERMISSIONS']);
		unset($arFilter['MIN_PERMISSION']);
		$arFilter['CHECK_BP_PERMISSIONS'] = 'read';
	}
}

foreach($arProps as $arProp)
{
	if($arProp["FILTRABLE"]=="Y" && $arProp["PROPERTY_TYPE"]!="F")
开发者ID:nycmic,项目名称:bittest,代码行数:31,代码来源:iblock_list_admin.php

示例2: array

    $lAdmin->AddVisibleHeaderColumn("DEPTH_LEVEL");
}
$arFilterFields = array("find_section_id", "find_section_timestamp_1", "find_section_timestamp_2", "find_section_modified_by", "find_section_date_create_1", "find_section_date_create_2", "find_section_created_by", "find_section_name", "find_section_active", "find_section_section", "find_section_code", "find_section_external_id");
$USER_FIELD_MANAGER->AdminListAddFilterFields($entity_id, $arFilterFields);
//We have to handle current section in a special way
$section_id = strlen($find_section_section) > 0 ? intval($find_section_section) : "";
$lAdmin->InitFilter($arFilterFields);
$find_section_section = $section_id;
//This is all parameters needed for proper navigation
$sThisSectionUrl = '&type=' . urlencode($type) . '&lang=' . LANGUAGE_ID . '&IBLOCK_ID=' . $IBLOCK_ID . '&find_section_section=' . $find_section_section;
$arFilter = array("IBLOCK_ID" => $IBLOCK_ID, "?NAME" => $find_section_name, "SECTION_ID" => $find_section_section, "ID" => $find_section_id, ">=TIMESTAMP_X" => $find_section_timestamp_1, "MODIFIED_BY" => $find_section_modified_user_id ? $find_section_modified_user_id : $find_section_modified_by, ">=DATE_CREATE" => $find_section_date_create_1, "CREATED_BY" => $find_section_created_user_id ? $find_section_created_user_id : $find_section_created_by, "ACTIVE" => $find_section_active, "CODE" => $find_section_code, "EXTERNAL_ID" => $find_section_external_id);
if (!empty($find_section_timestamp_2)) {
    $arFilter["<=TIMESTAMP_X"] = CIBlock::isShortDate($find_section_timestamp_2) ? ConvertTimeStamp(AddTime(MakeTimeStamp($find_section_timestamp_2), 1, "D"), "FULL") : $find_section_timestamp_2;
}
if (!empty($find_section_date_create_2)) {
    $arFilter["<=DATE_CREATE"] = CIBlock::isShortDate($find_section_date_create_2) ? ConvertTimeStamp(AddTime(MakeTimeStamp($find_section_date_create_2), 1, "D"), "FULL") : $find_section_date_create_2;
}
$USER_FIELD_MANAGER->AdminListAddFilter($entity_id, $arFilter);
if ($find_section_section === "") {
    unset($arFilter["SECTION_ID"]);
} elseif ($_GET["tree"] == "Y") {
    unset($arFilter["SECTION_ID"]);
    $parentDepth = 0;
    $rsParent = CIBlockSection::GetByID($find_section_section);
    if ($arParent = $rsParent->Fetch()) {
        $arFilter["LEFT_MARGIN"] = $arParent["LEFT_MARGIN"] + 1;
        $arFilter["RIGHT_MARGIN"] = $arParent["RIGHT_MARGIN"] - 1;
        $parentDepth = $arParent["DEPTH_LEVEL"];
    }
}
// Edititng handling (do not forget rights check!)
开发者ID:spas-viktor,项目名称:books,代码行数:31,代码来源:iblock_section_admin.php


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