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 8676 to 8693

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 11th December 2024 08:05 Europe/London time based on the source file dated 6th December 2024 14:05 Europe/London time.