Ejemplo n.º 1
0
 /**
  * Constructor
  *
  * @param array $config
  *
  * @throws BEAR_Img_Adapter_GD_Exception
  */
 public function __construct(array $config)
 {
     parent::__construct($config);
     if (!function_exists("gd_info")) {
         throw $this->_exception('GD extention is not loaded');
     }
 }
Ejemplo n.º 2
0
 /**
  * Constructor
  *
  * @param array $config
  */
 public function __construct(array $config)
 {
     parent::__construct($config);
     //インストールチェック
     if (!function_exists("cairo_create")) {
         trigger_error('Error: You need Cairo Library', E_ERROR);
         exit;
     }
 }
Ejemplo n.º 3
0
 /**
  * Constructor
  *
  * @param array $config
  *
  * @throws BEAR_Img_Adapter_Magick_Exception
  */
 public function __construct(array $config)
 {
     parent::__construct($config);
     //インストールチェック
     if (!class_exists('Imagick')) {
         throw $this->_exception('iMagick extention is not loaded');
     }
     $this->adapter = new Imagick();
 }