Collections functions
General functions
Render functions
Theme permission functions
Resource functions

get_search_params()

Description

Get all search request parameters. Note that this does not escape the
parameters which must be sanitised using escape_check() before using in SQL
or e.g. htmlspecialchars() or urlencode() before rendering on page

Parameters

This function accepts no parameters.

Return

array()

Location

include/search_functions.php lines 2977 to 2998

Definition

 
function get_search_params()
    {
    
$searchparams = array(
        
"search"        =>"",
        
"restypes"      =>"",
        
"archive"       =>"",
        
"order_by"      =>"",
        
"sort"          =>"",
        
"offset"        =>"",
        
"k"             =>"",
        
"access"        =>"",
        
"foredit"       =>"",
        
"recentdaylimit"=>"",
        
"go"            =>"",
        );
    
$requestparams = array();
    foreach(
$searchparams as $searchparam => $default)
        {
        
$requestparams[$searchparam] = getval($searchparam,$default);
        }
    return 
$requestparams;
    }

This article was last updated 29th May 2022 07:05 Europe/London time based on the source file dated 27th May 2022 16:30 Europe/London time.