/**
  * Constructor.
  *
  * Available options:
  *
  *  - template:  Captcha description template
  *  - min_value: Minimum range value
  *  - max_value: Maximum range value
  *
  * @param array  $options     An array of options
  * @param array  $attributes  An array of default HTML attributes
  *
  * @see sfWidgetFormInputText
  */
 public function __construct($options = array(), $attributes = array())
 {
     $this->addOption('template', 'Give me the answer to "%%captcha%%" to prove that you are human.');
     $this->addOption('min_value', 1);
     $this->addOption('max_value', 50);
     parent::__construct($options, $attributes);
 }
 /**
  * Constructor.
  *
  * Available options:
  *
  *  - output:          Output Format. 'text', 'html' or 'javascript'
  *  - width:           Width of CAPTCHA.
  *  - length:          Phrase length.
  *  - font:            Figlet font.
  *
  * @param array  $options     An array of options
  * @param array  $attributes  An array of default HTML attributes
  *
  * @see sfWidgetFormInputText
  */
 public function __construct($options = array(), $attributes = array())
 {
     $this->addOption('output', 'html');
     $this->addOption('width', 200);
     $this->addOption('length', 6);
     $this->addOption('font', 'ours/standard.flf');
     parent::__construct($options, $attributes);
 }
 /**
  * Constructor.
  *
  * Available options:
  *
  *  - template: Captcha description template
  *  - length:   Phrase length.
  *  - mode:     Numbers_Words mode. 'single' or 'multiple'
  *  - locale:   Locale
  *
  * @param array  $options     An array of options
  * @param array  $attributes  An array of default HTML attributes
  *
  * @see sfWidgetFormInputText
  */
 public function __construct($options = array(), $attributes = array())
 {
     $this->addOption('template', 'Type a number: "%%captcha%%"');
     $this->addOption('length', 4);
     $this->addOption('mode', 'single');
     $this->addOption('locale', sfContext::getInstance()->getUser()->getCulture());
     parent::__construct($options, $attributes);
 }
 /**
  * Constructor.
  *
  * Available options:
  *
  *  - template:        Captcha description template
  *  - min:             Minimal number to use in an equation.
  *  - max:             Maximum number to use in an equation.
  *  - numbers_to_text: Whether numbers shall be converted to text
  *  - severity:        Complexity of the generated equations. 1 - simple ones such as "1 + 10", 2 - harder ones such as "(3-2)*(min(5,6))"
  *
  * @param array  $options     An array of options
  * @param array  $attributes  An array of default HTML attributes
  *
  * @see sfWidgetFormInputText
  */
 public function __construct($options = array(), $attributes = array())
 {
     $this->addOption('template', 'Give me the answer to "%%captcha%%" to prove that you are human.');
     $this->addOption('min', 1);
     $this->addOption('max', 10);
     $this->addOption('numbers_to_text', false);
     $this->addOption('severity', 1);
     parent::__construct($options, $attributes);
 }
 /**
  * Constructor.
  *
  * Available options:
  *
  *  - width:            Width of CAPTCHA.
  *  - height:           Height of CAPTCHA.
  *  - output:           CAPTCHA output format: 'resource', 'png', 'jpg', 'jpeg', 'gif'
  *  - font_size:        Font size.
  *  - font_file:        Font file name. The file must be located in the directory sfConfig::get('sf_data_dir') . '/font' or you must specify the full path.
  *  - text_color:       Captcha color.
  *  - lines_color:      Lines color.
  *  - background_color: Background color.
  *  - antialias:        Antialiasing on/off.
  *
  * @param array  $options     An array of options
  * @param array  $attributes  An array of default HTML attributes
  *
  * @see sfWidgetFormInputText
  */
 public function __construct($options = array(), $attributes = array())
 {
     $this->addRequiredOption('font_file');
     $this->addOption('width', 200);
     $this->addOption('height', 80);
     $this->addOption('output', 'resource');
     $this->addOption('font_size', 24);
     $this->addOption('text_color', '#000000');
     $this->addOption('lines_color', '#CACACA');
     $this->addOption('background_color', '#555555');
     $this->addOption('antialias', false);
     parent::__construct($options, $attributes);
 }
 public function __construct($options = array(), $attributes = array())
 {
     $attributes = array_merge_recursive($this->jfPDDefaultAttibutes, $attributes);
     parent::__construct($options, $attributes);
 }