get_OR_fields()

Parameters

This function accepts no parameters.

Location

include/resource_functions.php lines 7592 to 7607

Definition

 
function get_OR_fields()
{
    
# Returns a list of fields that should retain semicolon separation of keywords in a search string
    
global $orfields_cache;
    if (
is_array($orfields_cache)) {
        return 
$orfields_cache;
    } else {
        
$fields ps_query("select name from resource_type_field where type=7 or type=2 or type=3 and length(name)>0 order by order_by", array(), "schema");
        
$orfields = array();
        foreach (
$fields as $field) {
            
$orfields[] = $field['name'];
        }
        
$orfields_cache $orfields;
        return 
$orfields;
    }
}

This article was last updated 6th June 2025 21:35 Europe/London time based on the source file dated 5th June 2025 10:55 Europe/London time.