Collections functions
General functions
Render functions
Theme permission functions
Resource functions

getAnnotation()

Parameters

ColumnTypeDefaultDescription
$ref

Location

include/annotation_functions.php lines 9 to 24

Definition

 
function getAnnotation($ref)
    {
    if(
>= $ref)
        {
        return array();
        }

    
$return ps_query("SELECT " columns_in("annotation") . " FROM annotation WHERE ref = ?", array("i",$ref));

    if(
count($return))
        {
        
$return $return[0];
        }

    return 
$return;
    }

This article was last updated 2nd October 2022 16:05 Europe/London time based on the source file dated 29th July 2022 11:20 Europe/London time.