You are here

interface ExifInterface in Exif 8.2

Same name and namespace in other branches
  1. 8 src/ExifInterface.php \Drupal\exif\ExifInterface
  2. 7 ExifInterface.php \Drupal\exif\ExifInterface

Interface ExifInterface define contract for implementations.

@package Drupal\exif

Hierarchy

Expanded class hierarchy of ExifInterface

All classes that implement ExifInterface

1 string reference to 'ExifInterface'
exif.services.yml in ./exif.services.yml
exif.services.yml
1 service uses ExifInterface
exif.metadata.reader in ./exif.services.yml
Drupal\exif\ExifInterface

File

src/ExifInterface.php, line 10

Namespace

Drupal\exif
View source
interface ExifInterface {

  /**
   * Return drupal fields related to this extension.
   *
   * 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.
   *
   * @param array $arCckFields
   *   CCK fields.
   *
   * @return array
   *   List of exif tags to read for this image
   */
  public function getMetadataFields(array $arCckFields = []);

  /**
   * Retrieve all metadata from a file.
   *
   * @param string $file
   *   File to read metadata from.
   * @param bool $enable_sections
   *   Should sections should be also retrieved.
   *
   * @return array
   *   metadata keys and associated values.
   */
  public function readMetadataTags($file, $enable_sections = TRUE);

  /**
   * Get all supported keys.
   *
   * @return array
   *   Keys by sections.
   */
  public function getFieldKeys();

}

Members

Namesort descending Modifiers Type Description Overrides
ExifInterface::getFieldKeys public function Get all supported keys. 2
ExifInterface::getMetadataFields public function Return drupal fields related to this extension. 2
ExifInterface::readMetadataTags public function Retrieve all metadata from a file. 2