You are here

public function ExifPHPExtension::getFieldKeys in Exif 7

Same name and namespace in other branches
  1. 8.2 src/ExifPHPExtension.php \Drupal\exif\ExifPHPExtension::getFieldKeys()
  2. 8 src/ExifPHPExtension.php \Drupal\exif\ExifPHPExtension::getFieldKeys()

Overrides ExifInterface::getFieldKeys

File

./ExifPHPExtension.php, line 819

Class

ExifPHPExtension

Namespace

Drupal\exif

Code

public function getFieldKeys() {
  $exif_keys_temp = $this
    ->getHumanReadableExifKeys();
  $exif_keys = array();
  foreach ($exif_keys_temp as $value) {
    $exif_keys[$value] = $value;
  }
  $iptc_keys_temp = array_values($this
    ->getHumanReadableIPTCkey());
  $iptc_keys = array();
  foreach ($iptc_keys_temp as $value) {
    $current_value = "iptc_" . $value;
    $iptc_keys[$current_value] = $current_value;
  }
  $fields = array_merge($exif_keys, $iptc_keys);
  ksort($fields);
  return $fields;
}