--- a/web/lib/Zend/Captcha/Image.php Thu May 07 15:10:09 2015 +0200
+++ b/web/lib/Zend/Captcha/Image.php Thu May 07 15:16:02 2015 +0200
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Captcha
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Image.php 24821 2012-05-29 14:54:50Z adamlundrigan $
+ * @version $Id$
*/
/** @see Zend_Captcha_Word */
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Captcha
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Captcha_Image extends Zend_Captcha_Word
@@ -240,24 +240,36 @@
{
return $this->_width;
}
+
/**
+ * Set start image
+ *
* @param string $startImage
+ * @return Zend_Captcha_Image
*/
public function setStartImage ($startImage)
{
$this->_startImage = $startImage;
return $this;
}
+
/**
+ * Set dot noise level
+ *
* @param int $dotNoiseLevel
+ * @return Zend_Captcha_Image
*/
public function setDotNoiseLevel ($dotNoiseLevel)
{
$this->_dotNoiseLevel = $dotNoiseLevel;
return $this;
}
- /**
+
+ /**
+ * Set line noise level
+ *
* @param int $lineNoiseLevel
+ * @return Zend_Captcha_Image
*/
public function setLineNoiseLevel ($lineNoiseLevel)
{
@@ -348,8 +360,12 @@
$this->_imgUrl = rtrim($imgUrl, "/\\") . '/';
return $this;
}
+
/**
+ * Set image alternative text
+ *
* @param string $imgAlt
+ * @return Zend_Captcha_Image
*/
public function setImgAlt ($imgAlt)
{
@@ -440,8 +456,9 @@
* Override this function if you want different image generator
* Wave transform from http://www.captcha.ru/captchas/multiwave/
*
- * @param string $id Captcha ID
+ * @param string $id Captcha ID
* @param string $word Captcha word
+ * @throws Zend_Captcha_Exception
*/
protected function _generateImage($id, $word)
{
@@ -567,7 +584,6 @@
/**
* Remove old files from image directory
- *
*/
protected function _gc()
{