Collections functions
General functions
Render functions
Theme permission functions
Resource functions

existing_tile()

Parameters

ColumnTypeDefaultDescription
$title
$all_users
$url
$link
$reload_interval
$resource_count
$text ""

Location

include/dash_functions.php lines 293 to 314

Definition

 
function existing_tile($title,$all_users,$url,$link,$reload_interval,$resource_count,$text="")
    {
    
$existing ps_query("SELECT ref FROM dash_tile WHERE url= ? AND link= ? AND title= ? AND reload_interval_secs= ? AND all_users= ? AND resource_count= ? AND txt= ?",
                          [
                            
's'$url,
                            
's'$link,
                            
's'$title,
                            
'i'$reload_interval,
                            
'i'$all_users,
                            
'i'$resource_count,
                            
's'$text
                          
]
                        );
    if(isset(
$existing[0]["ref"]))
        {
        return 
true;
        }
    else
        {
        return 
false;
        }
    }

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