本文整理匯總了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)) {