Collections functions
General functions
Node functions
Render functions
Theme permission functions
User 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 28th March 2024 23:35 Europe/London time based on the source file dated 15th March 2024 17:00 Europe/London time.