Collections functions
General functions
Render functions
Theme permission functions
Resource functions

get_tabs_by_refs()

Description

Get entire tab records for a list of IDs

Parameters

ColumnTypeDefaultDescription
$refs array List of tab refs

Return

array

Location

include/tab_functions.php lines 20 to 33

Definition

 
function get_tabs_by_refs(array $refs)
    {
    
$refs array_filter($refs'is_int_loose');
    
$refs_count count($refs);
    if(
$refs_count 0)
        {
        return 
ps_query(
            
'SELECT ref, `name`, order_by FROM tab WHERE ref IN ('ps_param_insert($refs_count) . ') ORDER BY order_by',
            
ps_param_fill($refs'i')
        );
        }

    return [];
    }

This article was last updated 26th September 2022 13:05 Europe/London time based on the source file dated 30th June 2022 11:10 Europe/London time.