Same filename and directory in other branches
- 8.x-1.x src/ExifFactory.php 1 comment
- 8.x-2.x src/ExifFactory.php 1 comment
Namespace
Drupal\exifFile
View source
<?php
namespace Drupal\exif;
include_once drupal_get_path('module', 'exif') . '/ExifPHPExtension.php';
include_once drupal_get_path('module', 'exif') . '/SimpleExiftoolFacade.php';
/**
*
*/
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();
}
}
}
Classes
Title | Deprecated | Summary |
---|---|---|
ExifFactory |