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_featured_collection_category_branch_by_leaf()

Description

Get to the root of the branch starting from the leaf featured collection

Parameters

ColumnTypeDefaultDescription
$ref integer Collection ref which is considered a leaf of the tree
$fcs array List of all featured collections

Return

array Branch path structure starting from root to the leaf

Location

include/collections_functions.php lines 5852 to 5860

Definition

 
function get_featured_collection_category_branch_by_leaf(int $ref, array $fcs)
    {
    if(empty(
$fcs))
        {
        
$fcs get_all_featured_collections();
        }

    return 
compute_node_branch_path($fcs$ref);
    }

This article was last updated 17th November 2024 15:35 Europe/London time based on the source file dated 13th November 2024 15:50 Europe/London time.