Check if image and driver is set and returns the driver
@return mixed
324525
private function call() {

        if(null === $this -> driver) {
            return trigger_error('Driver is not set. Set the driver with the setDriver() method', E_USER_ERROR);
        }

        if(null === $this -> image) {
        	return trigger_error('Image has not been set. Set the image with the setImage() method', E_USER_ERROR);
        }

        if(null === $this -> driverInstance) {
        	$this -> driverInstance = new $this -> driver($this -> image);
        }

        return $this -> driverInstance;
    }
865361
private static function getLoader()
    {
        if (self::isNull(self::$loader)) {
            self::$loader = Loader::getImageLoader(Image::getConfig());
        }

        return self::$loader;
    }
229483
public function is_supported($driver)
	{
		static $support;

		if ( ! isset($support, $support[$driver]))
		{
			$support[$driver] = $this->{$driver}->is_supported();
		}

		return $support[$driver];
	}
1237641
public function getDriverManager(): Interfaces\JavaObject
    {
        if ($this->driverManager === null) {
            $this->driverManager = $this->ba->javaClass('java.sql.DriverManager');
        }

        return $this->driverManager;
    }
996365
public static function check()
    {
        $route = isset($_GET['_framework_url_']) ? $_GET['_framework_url_'] : '';

        $out = config('maintenance.out', []);

        $out[] = config('panel.route', 'vinala');

        if (config('panel.setup', true)) {
            if (config('maintenance.enabled', false) && !in_array($route, $out)) {
                return static::$enabled = true;
            }
        }

        return static::$enabled = false;
    }
319447
public function getDriver(): string
    {
        // Extract driver name from current config
        $driver = $this->getConfig('driver');

        try {
            if (!\is_string($driver)) {
                throw new Exception('Wrong type of "driver" item in config, must be a string');
            }

            if (!\in_array($driver, self::ALLOWED_DRIVERS, false)) {
                $allowed = implode(',', self::ALLOWED_DRIVERS);
                throw new Exception("Driver \"$driver\" is not in allowed list [" . $allowed . ']');
            }
        } catch (Exception $e) {
            // __constructor
        }

        return __NAMESPACE__ . '\\Drivers\\' . ucfirst(strtolower($driver));
    }
1063976
function isImageOwner()
    {
        $originalData = $this->originalAttributeData();
        return ( $originalData['attribute_id'] == false ||
                 ( $originalData['attribute_id'] == $this->ContentObjectAttributeData['id'] &&
                   $originalData['attribute_version'] == $this->ContentObjectAttributeData['version'] &&
                   $originalData['attribute_language'] == $this->ContentObjectAttributeData['language_code'] ) );
    }
1103983
public function getDriverName()
    {
        $value = $this->getValue();

        $value = explode(":", $value);

        $driver = reset($value);

        return $driver;
    }
1012589
public function create(): Driver
    {
        if ($driver = $this->createDriverFromEnv()) {
            return $driver;
        }

        if (UvDriver::isSupported()) {
            return new UvDriver;
        }

        if (EvDriver::isSupported()) {
            return new EvDriver;
        }

        if (EventDriver::isSupported()) {
            return new EventDriver;
        }

        return new NativeDriver;
    }
1108004
private static function isValidDriver(string $driver): bool
    {
        return
            class_exists($driver) &&
            Arr::contains(class_implements($driver), StorageInterface::class);
    }
61971
public function getDriverName(): string {
		$classNameInfo = explode('\\', get_class($this->driver));
		return strtolower(end($classNameInfo));
	}
1083781
public function isSupported($driver)
    {
        static $support;

        if (!isset($support, $support[$driver])) {
            $support[$driver] = $this->{$driver}->isSupported();
        }

        return $support[$driver];
    }
691132
private function openImage()
	{
		try
		{
			$image_atts = getimagesize($this->source);
			if (empty($image_atts))
			{
				return false;
			}

			switch ($image_atts['mime'])
			{
				case 'image/jpeg':
					$this->image_type = IMAGETYPE_JPEG;
					$this->resource   = imagecreatefromjpeg($this->source);
				break;
				case 'image/gif':
					$this->image_type = IMAGETYPE_GIF;
					$this->resource   = imagecreatefromgif($this->source);
				break;
				case 'image/png':
				case 'image/x-png':
					$this->image_type = IMAGETYPE_PNG;
					$this->resource   = imagecreatefrompng($this->source);
				break;
				default:
					return false;
				break;
			}

			if ($this->image_type == IMAGETYPE_PNG)
			{
				imagesavealpha($this->resource, true);
				imagealphablending($this->resource, false);
			}

			if (isset($this->config['auto_rotate']) && $this->config['auto_rotate'] == true)
			{
				$this->autoRotate();
			}

			if (!empty($this->resource))
			{
				return true;
			}
			return false;
		}
		catch (Exception $error)
		{
			$this->setError($error->getMessage());
			return false;
		}
	}
657238
protected function _getDriverName() {
		$className = explode('\\', $this->getConnection()->config()['driver']);
		$name = end($className);

		return $name;
	}
391221
private function getDriver(): \BearFramework\App\ICacheDriver
    {
        if ($this->driver !== null) {
            return $this->driver;
        }
        throw new \Exception('No cache driver specified! Use useAppDataDriver() or setDriver() to specify one.');
    }
1349999
public function getDrivers(): array
    {
        $result = [];
        foreach (array_keys($this->config['connections'] ?? $this->config['drivers'] ?? []) as $driver) {
            $result[$driver] = $this->getDriver($driver);
        }

        return $result;
    }
513152
public function driver($driver = null)
    {
        $driver = $driver ?: $this->getDefaultDriver();

        if (! isset($this->drivers[$driver])) {
            $this->drivers[$driver] = $this->createDriver($driver);
        }

        return $this->drivers[$driver];
    }