本文整理汇总了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
);
}
示例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;
示例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)) {