Collections functions
Encryption functions
General functions
Theme permission functions
Resource functions

resolve_nodes_from_string()

Description

Function used to create a list of nodes found in a search string

IMPORTANT: use resolve_given_nodes() if you need to detect nodes based on
search string format (ie. @@253@@255 and/ or !@@260)

Parameters

ColumnTypeDefaultDescription
$string string

Return

array

Location

include/search_functions.php lines 1638 to 1662

Definition

 
function resolve_nodes_from_string($string)
    {
    if(!
is_string($string))
        {
        return array();
        }

    
$node_bucket     = array();
    
$node_bucket_not = array();
    
$return          = array();

    
resolve_given_nodes($string$node_bucket$node_bucket_not);

    
$merged_nodes array_merge($node_bucket$node_bucket_not);

    foreach(
$merged_nodes as $nodes)
        {
        foreach(
$nodes as $node)
            {
            
$return[] = $node;
            }
        }

    return 
$return;
    }

This article was last updated 12th July 2020 06:35 Europe/London time based on the source file dated 7th July 2020 15:22 Europe/London time.