Collections functions
General functions
Node functions
Render functions
Theme permission functions
User 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 19th March 2024 09:35 Europe/London time based on the source file dated 6th March 2024 14:45 Europe/London time.