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

canSeeAnnotationsFields()

Description

Helper function to determine if annotations are to be displayed.

Parameters

ColumnTypeDefaultDescription
array :
$annotate_fields
$k;

Return

array Array of annotation fields that can be viewed.

Location

include/resource_functions.php lines 8672 to 8689

Definition

 
function canSeeAnnotationsFields(): array
    {
    global 
$annotate_enabled$annotate_fields$k;

    
$can_view_fields = array();
    if (
$annotate_enabled && $k == "")
        {
        foreach (
$annotate_fields as $annotate_field)
            {
            if(
metadata_field_view_access($annotate_field))
                {
                
$can_view_fields[] = $annotate_field;
                }
            }
        }

    return 
$can_view_fields;
    }

This article was last updated 17th November 2024 15:35 Europe/London time based on the source file dated 15th November 2024 18:30 Europe/London time.