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_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 17th November 2024 15:35 Europe/London time based on the source file dated 16th May 2024 18:10 Europe/London time.