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 2773 to 2793

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 19th March 2024 10:35 Europe/London time based on the source file dated 15th March 2024 17:00 Europe/London time.