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

all_user_dash_tile_active()

Parameters

ColumnTypeDefaultDescription
$tile

Location

include/dash_functions.php lines 269 to 296

Definition

 
function all_user_dash_tile_active($tile)
    {
    return  
ps_query("
            SELECT 
                dash_tile.ref AS 'tile',
                dash_tile.title,
                dash_tile.url,
                dash_tile.reload_interval_secs,
                dash_tile.link,
                dash_tile.default_order_by as 'order_by',
                dash_tile.allow_delete 
            FROM dash_tile 
            WHERE 
                dash_tile.all_users=1 
                AND
                dash_tile.ref= ?
                AND 
                (
                    dash_tile.allow_delete=1 
                    OR 
                    (
                        dash_tile.allow_delete=0 
                        AND 
                        dash_tile.ref IN (SELECT DISTINCT user_dash_tile.dash_tile FROM user_dash_tile)
                    )
                ) ORDER BY default_order_by
            "
, ['i'$tile]);
    }

This article was last updated 4th December 2024 08:35 Europe/London time based on the source file dated 13th November 2024 15:50 Europe/London time.