Coding standards
Security in ResourceSpace
Developer reference
Database
Action functions
Admin functions
Ajax functions
Annotation functions
API functions
Collections functions
Comment functions
Config functions
CSV export functions
Dash functions
Debug functions
Encryption functions
Facial recognition functions
File functions
General functions
Language functions
Log functions
Login functions
Message functions
Migration functions
Node functions
PDF functions
Plugin functions
Render functions
Reporting functions
Request functions
Research functions
Slideshow functions
Theme permission functions
User functions
Video functions
Database functions
Metadata functions
Resource functions
Search functions
Map functions
Job functions
Tab functions
Test 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 17th November 2024 15:35 Europe/London time based on the source file dated 13th November 2024 15:50 Europe/London time.