Collections functions
General functions
Render functions
Theme permission functions
Resource functions

existing_dash_tile()

Description

returns a ref for an existing dash tile in dash_tile table, returns 0 if no existing dash tile

Parameters

ColumnTypeDefaultDescription
$url string ""
$link string ""
$title string ""
$text string ""
$reload_interval integer 0
$all_users integer 0
$resource_count integer 0

Return

integer

Location

include/dash_functions.php lines 21 to 26

Definition

 
function existing_dash_tile(string $url=""string $link=""string $title=""string $text=""int $reload_interval=0int $all_users=0int $resource_count=0)
    {
    
$existing_tile_ref ps_value("SELECT ref as `value` FROM dash_tile WHERE url=? AND link=? AND title=? AND txt=? AND reload_interval_secs=? AND all_users=? AND resource_count=?" 
    array(
"s",$url,"s",$link,"s",$title,"s",$text,"i",$reload_interval,"i",$all_users,"i",$resource_count),0);
    return (int) 
$existing_tile_ref;
    }

This article was last updated 4th October 2022 10:05 Europe/London time based on the source file dated 27th September 2022 15:05 Europe/London time.