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

get_tile_user_groups()

Description

Retrieve user group IDs associated with a specific dashboard tile.

This function fetches the IDs of all user groups that have access to a given dashboard tile.
Each user group ID is returned as a value in the resulting array.

Parameters

ColumnTypeDefaultDescription
$tile_id int The ID of the dashboard tile for which to retrieve associated user groups.

Return

array An array of user group IDs that are linked to the specified dashboard tile.

Location

include/dash_functions.php lines 896 to 899

Definition

 
function get_tile_user_groups($tile_id)
    {
    return 
ps_array("SELECT usergroup AS `value` FROM usergroup_dash_tile WHERE dash_tile = ?",array("i",$tile_id));
    }

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.