Collections functions
General functions
Node functions
Render functions
Theme permission functions
User functions
Resource functions

get_filter()

Description

Get filter summary details

Parameters

ColumnTypeDefaultDescription
$filterid int ID of filter (from usergroup search_filter_id or user search_filter_oid)

Return

array

Location

include/search_functions.php lines 2799 to 2819

Definition

 
function get_filter($filterid)
    {
    
// Codes for filter 'condition' column
    // 1 = ALL must apply
    // 2 = NONE must apply
    // 3 = ANY can apply

    
if(!is_numeric($filterid) || $filterid 1)
            {
            return 
false;
            }

    
$filter  ps_query("SELECT ref, name, filter_condition FROM filter f WHERE ref=?",array("i",$filterid));

    if(
count($filter) > 0)
        {
        return 
$filter[0];
        }

    return 
false;
    }

This article was last updated 23rd July 2024 21:35 Europe/London time based on the source file dated 17th July 2024 15:30 Europe/London time.