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

get_OR_fields()

Parameters

This function accepts no parameters.

Location

include/resource_functions.php lines 7962 to 7977

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 28th March 2024 14:05 Europe/London time based on the source file dated 28th March 2024 11:35 Europe/London time.