예제 #1
0
파일: Figlet.php 프로젝트: necrogami/zf2
 /**
  * Constructor
  *
  * @param  null|string|array|\Traversable $options
  * @return void
  */
 public function __construct($options = null)
 {
     parent::__construct($options);
     $this->figlet = new FigletManager($options);
 }
예제 #2
0
파일: Image.php 프로젝트: rafalwrzeszcz/zf2
 /**
  * Constructor
  *
  * @param  array|Zend\Config\Config $options
  * @return void
  */
 public function __construct($options = null)
 {
     if (!extension_loaded("gd")) {
         throw new Exception\ExtensionNotLoadedException("Image CAPTCHA requires GD extension");
     }
     if (!function_exists("imagepng")) {
         throw new Exception\ExtensionNotLoadedException("Image CAPTCHA requires PNG support");
     }
     if (!function_exists("imageftbbox")) {
         throw new Exception\ExtensionNotLoadedException("Image CAPTCHA requires FT fonts support");
     }
     parent::__construct($options);
 }
예제 #3
0
 /**
  * Constructor
  *
  * @param  null|string|array|\Zend\Config\Config $options
  * @return void
  */
 public function __construct($options = null)
 {
     parent::__construct($options);
     $this->_figlet = new \Zend\Text\Figlet\Figlet($options);
 }