--- a/web/lib/Zend/Captcha/Dumb.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Captcha/Dumb.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,13 +30,36 @@
* @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: Dumb.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Dumb.php 24747 2012-05-05 00:21:56Z adamlundrigan $
*/
class Zend_Captcha_Dumb extends Zend_Captcha_Word
{
/**
+ * CAPTCHA label
+ * @type string
+ */
+ protected $_label = 'Please type this word backwards';
+
+ /**
+ * Set the label for the CAPTCHA
+ * @param string $label
+ */
+ public function setLabel($label)
+ {
+ $this->_label = $label;
+ }
+
+ /**
+ * Retrieve the label for the CAPTCHA
+ * @return string
+ */
+ public function getLabel()
+ {
+ return $this->_label;
+ }
+ /**
* Render the captcha
*
* @param Zend_View_Interface $view
@@ -45,7 +68,7 @@
*/
public function render(Zend_View_Interface $view = null, $element = null)
{
- return 'Please type this word backwards: <b>'
+ return $this->getLabel() . ': <b>'
. strrev($this->getWord())
. '</b>';
}