/** * 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'); } }
/** * 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; } }
/** * 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(); }