class ExifFactory in Exif 7
Same name and namespace in other branches
- 8.2 src/ExifFactory.php \Drupal\exif\ExifFactory
- 8 src/ExifFactory.php \Drupal\exif\ExifFactory
Hierarchy
- class \Drupal\exif\ExifFactory
Expanded class hierarchy of ExifFactory
File
- ./
ExifFactory.php, line 13 - Contains \Drupal\exif\ExifFactory
Namespace
Drupal\exifView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ExifFactory:: |
public static | function | ||
ExifFactory:: |
public static | function |