本文整理匯總了PHP中CAdminFilter::UnEscape方法的典型用法代碼示例。如果您正苦於以下問題:PHP CAdminFilter::UnEscape方法的具體用法?PHP CAdminFilter::UnEscape怎麽用?PHP CAdminFilter::UnEscape使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類CAdminFilter
的用法示例。
在下文中一共展示了CAdminFilter::UnEscape方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: InitFilter
function InitFilter($arFilterFields)
{
$sTableID = $this->table_id;
global $del_filter, $set_filter, $save_filter;
if($del_filter <> "")
DelFilterEx($arFilterFields, $sTableID);
elseif($set_filter <> "")
{
CAdminFilter::UnEscape($arFilterFields);
InitFilterEx($arFilterFields, $sTableID, "set");
}
elseif($save_filter <> "")
{
CAdminFilter::UnEscape($arFilterFields);
}
else
InitFilterEx($arFilterFields, $sTableID, "get");
foreach ($arFilterFields as $f)
{
$fperiod = $f."_FILTER_PERIOD";
$fdirection = $f."_FILTER_DIRECTION";
$fbdays = $f."_DAYS_TO_BACK";
global $$f, $$fperiod, $$fdirection, $$fbdays;
if (isset($$f))
$this->filter[$f] = $$f;
if (isset($$fperiod))
$this->filter[$fperiod] = $$fperiod;
if (isset($$fdirection))
$this->filter[$fdirection] = $$fdirection;
if (isset($$fbdays))
$this->filter[$fbdays] = $$fbdays;
}
return $this->filter;
}
示例2: InitFilter
public function InitFilter($arFilterFields)
{
$sTableID = $this->table_id;
global $del_filter, $set_filter, $save_filter;
if($del_filter <> "")
DelFilterEx($arFilterFields, $sTableID);
elseif($set_filter <> "")
{
CAdminFilter::UnEscape($arFilterFields);
InitFilterEx($arFilterFields, $sTableID, "set");
}
elseif($save_filter <> "")
{
CAdminFilter::UnEscape($arFilterFields);
}
else
InitFilterEx($arFilterFields, $sTableID, "get");
}