Collections functions
Encryption functions
General functions
Render functions
Theme permission functions
Video 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 179 to 197

Definition

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

    
$query "SELECT * FROM node WHERE ref = '" escape_check($ref) . "';";
    
$node  sql_query($query,"schema");

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

    
$returned_node $node[0];

    return 
true;
    }

This article was last updated 30th November 2020 20:05 Europe/London time based on the source file dated 30th November 2020 09:45 Europe/London time.