--- a/web/lib/Zend/Captcha/Word.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Captcha/Word.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Captcha
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -30,9 +30,9 @@
* @category Zend
* @package Zend_Captcha
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Word.php 21793 2010-04-08 00:51:31Z stas $
+ * @version $Id: Word.php 24593 2012-01-05 20:35:02Z matthew $
*/
abstract class Zend_Captcha_Word extends Zend_Captcha_Base
{
@@ -93,10 +93,10 @@
* @var integer
*/
protected $_timeout = 300;
-
+
/**
* Should generate() keep session or create a new one?
- *
+ *
* @var boolean
*/
protected $_keepSession = false;
@@ -131,7 +131,7 @@
*
* @return string
*/
- public function getSessionClass()
+ public function getSessionClass()
{
return $this->_sessionClass;
}
@@ -217,21 +217,21 @@
return $this->_timeout;
}
- /**
- * Sets if session should be preserved on generate()
- *
- * @param $keepSession Should session be kept on generate()?
- * @return Zend_Captcha_Word
- */
- public function setKeepSession($keepSession)
- {
- $this->_keepSession = $keepSession;
- return $this;
- }
+ /**
+ * Sets if session should be preserved on generate()
+ *
+ * @param bool $keepSession Should session be kept on generate()?
+ * @return Zend_Captcha_Word
+ */
+ public function setKeepSession($keepSession)
+ {
+ $this->_keepSession = $keepSession;
+ return $this;
+ }
/**
* Numbers should be included in the pattern?
- *
+ *
* @return bool
*/
public function getUseNumbers()
@@ -239,10 +239,10 @@
return $this->_useNumbers;
}
- /**
- * Set if numbers should be included in the pattern
- *
- * @param $_useNumbers numbers should be included in the pattern?
+ /**
+ * Set if numbers should be included in the pattern
+ *
+ * @param bool $_useNumbers numbers should be included in the pattern?
* @return Zend_Captcha_Word
*/
public function setUseNumbers($_useNumbers)
@@ -250,8 +250,8 @@
$this->_useNumbers = $_useNumbers;
return $this;
}
-
- /**
+
+ /**
* Get session object
*
* @return Zend_Session_Namespace
@@ -348,7 +348,7 @@
public function generate()
{
if(!$this->_keepSession) {
- $this->_session = null;
+ $this->_session = null;
}
$id = $this->_generateRandomId();
$this->_setId($id);