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

Hierarchy

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\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