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


PHP CheckFilter函数代码示例

本文整理汇总了PHP中CheckFilter函数的典型用法代码示例。如果您正苦于以下问题:PHP CheckFilter函数的具体用法?PHP CheckFilter怎么用?PHP CheckFilter使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


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

示例1: GetMessage

			$str.= GetMessage("MAIN_FROM_TILL_LAST_LOGIN")."<br>";
	}

	$strError .= $str;
	if(strlen($str)>0)
	{
		global $lAdmin;
		$lAdmin->AddFilterError($str);
		return false;
	}

	return true;
}

$arFilter = Array();
if(CheckFilter($arFilterFields))
{
	$arFilter = Array(
		"ID"			=> $find_id,
		"TIMESTAMP_1"	=> $find_timestamp_1,
		"TIMESTAMP_2"	=> $find_timestamp_2,
		"LAST_LOGIN_1"	=> $find_last_login_1,
		"LAST_LOGIN_2"	=> $find_last_login_2,
		"ACTIVE"		=> $find_active,
		"LOGIN"			=>	($find!='' && $find_type == "login"? $find: $find_login),
		"NAME"			=>	($find!='' && $find_type == "name"? $find: $find_name),
		"EMAIL"			=>	($find!='' && $find_type == "email"? $find: $find_email),
		"KEYWORDS"		=> $find_keywords,
		"GROUPS_ID"		=> $find_group_id
		);
}
开发者ID:ASDAFF,项目名称:open_bx,代码行数:31,代码来源:user_search.php

示例2: CheckFilter

    }
}
function CheckFilter()
{
    global $FilterArr, $lAdmin;
    foreach ($FilterArr as $f) {
        global ${$f};
    }
    return count($lAdmin->arFilterErrors) == 0;
}
$FilterArr = array("find_email", "find_name", "find_mailing", "find_mailing_chain_id", "find_sent", "find_read", "find_click", "find_unsub");
$lAdmin->InitFilter($FilterArr);
$arRuntime = array();
$arGroup = array();
$arSelect = array('NAME', 'EMAIL');
if (CheckFilter() || $ID > 0) {
    $arFilter = array("%NAME" => $find_name, "%EMAIL" => $find_email, "=POSTING.MAILING_ID" => $MAILING_ID, "=POSTING.MAILING_CHAIN_ID" => $ID);
    foreach ($arFilter as $k => $v) {
        if (empty($v)) {
            unset($arFilter[$k]);
        }
    }
    if ($find_sent && in_array($find_sent, array_keys(\Bitrix\Sender\PostingRecipientTable::getStatusList()))) {
        $arFilter["=STATUS"] = $find_sent;
    }
    if ($find_read == 'Y') {
        $arRuntime[] = new \Bitrix\Main\Entity\ReferenceField('READ_TBL', 'Bitrix\\Sender\\PostingReadTable', array('=this.ID' => 'ref.RECIPIENT_ID'), array('join_type' => 'INNER'));
        $arGroup = $arSelect;
    } elseif ($find_read == 'N') {
        $arRuntime[] = new \Bitrix\Main\Entity\ReferenceField('READ_TBL', 'Bitrix\\Sender\\PostingReadTable', array('=this.ID' => 'ref.RECIPIENT_ID'), array('join_type' => 'LEFT'));
        $arFilter['READ_TBL.RECIPIENT_ID'] = null;
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:31,代码来源:mailing_recipient_admin.php

示例3: array

}
$needGroup = false;
$arFilter = array();
$oSort = new CAdminSorting($sTableID, "ID", "desc");
$lAdmin = new CAdminList($sTableID, $oSort);
function CheckFilter()
{
    global $FilterArr, $lAdmin;
    foreach ($FilterArr as $f) {
        global ${$f};
    }
    return count($lAdmin->arFilterErrors) == 0;
}
$FilterArr = array("find_name", "find_email", "find_list", "find_subscribed", "find_unsubscribed");
$lAdmin->InitFilter($FilterArr);
if (CheckFilter()) {
    $arFilter = array("%NAME" => $find_name, "%EMAIL" => $find_email);
    if ($find_list > 0) {
        $arFilter["=CONTACT_LIST.LIST_ID"] = $find_list;
    } elseif (!empty($find_list)) {
        $arFilter["=CONTACT_LIST.LIST_ID"] = $find_list;
    }
    if (!empty($find_subscribed)) {
        if ($find_subscribed == 'ALL') {
            $arFilter[">MAILING_SUBSCRIPTION.MAILING_ID"] = 0;
            $needGroup = true;
        } else {
            $arFilter["=MAILING_SUBSCRIPTION.MAILING_ID"] = $find_subscribed;
        }
    }
    if (!empty($find_unsubscribed)) {
开发者ID:Hawkart,项目名称:megatv,代码行数:31,代码来源:contact_admin.php


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