Coding standards
Security in ResourceSpace
Developer reference
Database
Action functions
Admin functions
Ajax functions
Annotation functions
API functions
Collections functions
Comment functions
Config functions
CSV export functions
Dash functions
Debug functions
Encryption functions
Facial recognition functions
File functions
General functions
Language functions
Log functions
Login functions
Message functions
Migration functions
Node functions
PDF functions
Plugin functions
Render functions
Reporting functions
Request functions
Research functions
Slideshow functions
Theme permission functions
User functions
Video functions
Database functions
Metadata functions
Resource functions
Search functions
Map functions
Job functions
Tab functions
Test functions

get_resource_table_joins()

Parameters

This function accepts no parameters.

Location

include/resource_functions.php lines 8890 to 8934

Definition

 
function get_resource_table_joins(){

    global
    
$sort_fields,
    
$thumbs_display_fields,
    
$list_display_fields,
    
$data_joins,
    
$metadata_template_title_field,
    
$view_title_field,
    
$date_field,
    
$config_sheetlist_fields,
    
$config_sheetthumb_fields,
    
$config_sheetsingle_fields;

    
$joins=array_merge(
    
$sort_fields,
    
$thumbs_display_fields,
    
$list_display_fields,
    
$data_joins,
    
$config_sheetlist_fields,
    
$config_sheetthumb_fields,
    
$config_sheetsingle_fields,
        array(
        
$metadata_template_title_field,
        
$view_title_field,
        
$date_field)
    );
    if(isset(
$GLOBALS["related_pushed_order_by"]) && is_int_loose($GLOBALS["related_pushed_order_by"]))
        {
        
$joins[] = $GLOBALS["related_pushed_order_by"];
        }
    
$additional_joins=hook("additionaljoins");
    if (
$additional_joins) {
        
$joins array_merge($joins$additional_joins);
    }
    
$joins=array_unique($joins);
    
$n=0;
    foreach (
$joins as $join){
        if (
$join!=""){
            
$return[$n]=$join;
            
$n++;
            }
        }
    return 
$return;
    }

This article was last updated 8th December 2024 20:35 Europe/London time based on the source file dated 6th December 2024 14:05 Europe/London time.