You are here

class ExifFactory in Exif 7

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

Hierarchy

Expanded class hierarchy of ExifFactory

File

./ExifFactory.php, line 13
Contains \Drupal\exif\ExifFactory

Namespace

Drupal\exif
View source
class ExifFactory {
  public static function getExtractionSolutions() {
    return array(
      "simple_exiftool" => "exiftool",
      "php_extensions" => "php extensions",
    );
  }
  public static function getExifInterface() {
    $extractionSolution = variable_get('exif_extraction_solution');
    $useExifToolSimple = $extractionSolution == "simple_exiftool";
    if (isset($useExifToolSimple) && $useExifToolSimple && SimpleExifToolFacade::checkConfiguration()) {
      return SimpleExifToolFacade::getInstance();
    }
    else {

      //default case for now (same behavior as previous versions)
      return ExifPHPExtension::getInstance();
    }
  }

}

Members