<?php
defined('_VALID') or die('Restricted Access!');
class VImage
{
protected $cfg = array();
public function __construct()
{
$this->cfg = VF::cfg('library.image');
}
public function getDriver()
{
VF::load('framework.image.'.$this->cfg['driver']);
$image_class = 'VImage_Driver_'.$this->cfg['driver'];
return $image = new $image_class();
}
}
?>