@@ -240,24 +240,36 @@ public function getWidth()
240
240
{
241
241
return $ this ->_width ;
242
242
}
243
+
243
244
/**
245
+ * Set start image
246
+ *
244
247
* @param string $startImage
248
+ * @return Zend_Captcha_Image
245
249
*/
246
250
public function setStartImage ($ startImage )
247
251
{
248
252
$ this ->_startImage = $ startImage ;
249
253
return $ this ;
250
254
}
255
+
251
256
/**
257
+ * Set dot noise level
258
+ *
252
259
* @param int $dotNoiseLevel
260
+ * @return Zend_Captcha_Image
253
261
*/
254
262
public function setDotNoiseLevel ($ dotNoiseLevel )
255
263
{
256
264
$ this ->_dotNoiseLevel = $ dotNoiseLevel ;
257
265
return $ this ;
258
266
}
259
- /**
267
+
268
+ /**
269
+ * Set line noise level
270
+ *
260
271
* @param int $lineNoiseLevel
272
+ * @return Zend_Captcha_Image
261
273
*/
262
274
public function setLineNoiseLevel ($ lineNoiseLevel )
263
275
{
@@ -348,8 +360,12 @@ public function setImgUrl($imgUrl)
348
360
$ this ->_imgUrl = rtrim ($ imgUrl , "/ \\" ) . '/ ' ;
349
361
return $ this ;
350
362
}
363
+
351
364
/**
365
+ * Set image alternative text
366
+ *
352
367
* @param string $imgAlt
368
+ * @return Zend_Captcha_Image
353
369
*/
354
370
public function setImgAlt ($ imgAlt )
355
371
{
@@ -440,8 +456,9 @@ public function generate()
440
456
* Override this function if you want different image generator
441
457
* Wave transform from http://www.captcha.ru/captchas/multiwave/
442
458
*
443
- * @param string $id Captcha ID
459
+ * @param string $id Captcha ID
444
460
* @param string $word Captcha word
461
+ * @throws Zend_Captcha_Exception
445
462
*/
446
463
protected function _generateImage ($ id , $ word )
447
464
{
@@ -567,7 +584,6 @@ protected function _generateImage($id, $word)
567
584
568
585
/**
569
586
* Remove old files from image directory
570
- *
571
587
*/
572
588
protected function _gc ()
573
589
{
0 commit comments