You are here

private function ExifPHPExtension::getFileType in Exif 7

Same name and namespace in other branches
  1. 8.2 src/ExifPHPExtension.php \Drupal\exif\ExifPHPExtension::getFileType()
  2. 8 src/ExifPHPExtension.php \Drupal\exif\ExifPHPExtension::getFileType()
1 call to ExifPHPExtension::getFileType()
ExifPHPExtension::readExifTags in ./ExifPHPExtension.php
Read the Information from a picture according to the fields specified in CCK

File

./ExifPHPExtension.php, line 338

Class

ExifPHPExtension

Namespace

Drupal\exif

Code

private function getFileType($file) {
  $ar = explode('.', $file);
  $ending = $ar[count($ar) - 1];
  return $ending;
}