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

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 sql_value("SELECT ref as `value` FROM dash_tile WHERE url='"escape_check($url)."' AND link='"escape_check($link) ."' AND title='" escape_check($title)."' AND txt='".escape_check($text) . "' AND reload_interval_secs='"escape_check($reload_interval) ."' AND all_users='"escape_check($all_users) . "' AND resource_count='"escape_check($resource_count)."'" 0);
    
    return (int) 
$existing_tile_ref;
    }

This article was last updated 25th January 2021 09:35 Europe/London time based on the source file dated 14th January 2021 09:10 Europe/London time.