Collections functions
General functions
Render functions
Theme permission functions
Resource functions

get_node()

Description

Get a specific node by ref

this parameter which is passed by reference

Parameters

ColumnTypeDefaultDescription
$ref integer ID of the node
&$returned_node array
$returned_node array If a value does exist it will be returned through

Return

boolean

Location

include/node_functions.php lines 211 to 228

Definition

 
function get_node($ref, array &$returned_node)
    {
    if(
is_null($ref) || (trim($ref)=="") || >= $ref)
        {
        return 
false;
        }

    
$node  ps_query("SELECT * FROM node WHERE ref = ?",array("i"$ref),"schema");

    if(
count($node)==0)
        {
        return 
false;
        }

    
$returned_node $node[0];

    return 
true;
    }

This article was last updated 24th May 2022 19:35 Europe/London time based on the source file dated 6th April 2022 16:35 Europe/London time.