Collections functions
General functions
Render functions
Theme permission functions
Resource functions

get_exiftool_fields()

Description

Returns a list of exiftool fields, which are basically fields with an 'exiftool field' set.

Parameters

ColumnTypeDefaultDescription
$resource_type
resource_type integer

Return

array

Location

include/resource_functions.php lines 3993 to 4012

Definition

 
function get_exiftool_fields($resource_type)
    {

    
$include_globals ps_value('SELECT inherit_global_fields AS `value` FROM resource_type WHERE ref = ?', ['i'$resource_type], 1);

    return 
ps_query("
           SELECT f.ref,
                  f.type,
                  f.exiftool_field,
                  f.exiftool_filter,
                  group_concat(n.name) AS options,
                  f.name,
                  f.read_only
             FROM resource_type_field AS f
        LEFT JOIN node AS n ON f.ref = n.resource_type_field
            WHERE length(exiftool_field) > 0
              AND (resource_type = ? "
. ($include_globals == ?" OR resource_type = '0'":"") .")
         GROUP BY f.ref
         ORDER BY exiftool_field"
, array("i",$resource_type),"schema");
    }

This article was last updated 3rd October 2022 11:35 Europe/London time based on the source file dated 30th September 2022 14:20 Europe/London time.