public function Exif::getExifFields in Exif 6
Going through all the fields that have been created for a given node type and try to figure out which match the naming convention -> so that we know which exif information we have to read
Naming convention are: field_exif_xxx (xxx would be the name of the exif tag to read
Parameters
$arCckFields array of CCK fields:
Return value
array a list of exif tags to read for this image
File
- ./
exif.class.php, line 37
Class
- Exif
- @author Raphael Schär This is a helper class to handle the whole data processing of exif
Code
public function getExifFields($arCckFields = array()) {
$arSections = array(
'exif',
'file',
'computed',
'ifd0',
'gps',
'winxp',
'iptc',
'xmp',
);
$arExif = array();
foreach ($arCckFields as $field) {
$ar = explode("_", $field['field_name']);
if ($ar[0] == 'field' && isset($ar[1]) && in_array($ar[1], $arSections)) {
unset($ar[0]);
$section = $ar[1];
unset($ar[1]);
$arExif[] = array(
'section' => $section,
'tag' => implode("_", $ar),
);
}
}
return $arExif;
}