Same name and namespace in other branches
- 8.x-1.x src/ExifFactory.php \Drupal\exif\ExifFactory 1 comment
- 8.x-2.x src/ExifFactory.php \Drupal\exif\ExifFactory 1 comment
Hierarchy
- class \Drupal\exif\ExifFactory
Expanded class hierarchy of ExifFactory
2 files declare their use of ExifFactory
- exif.admin.inc in ./
exif.admin.inc - Admin functionality for the EXIF module.
- exif.module in ./
exif.module - Primary hook implementations for the EXIF module.
File
-
./
ExifFactory.php, line 11
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
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
ExifFactory::getExifInterface | public static | function | |
ExifFactory::getExtractionSolutions | public static | function |