瀏覽代碼

fix ZF-9557 - add get/set for useNumbers in capthcha

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@21793 44c647ce-9c0f-0410-b52a-842ac1e357ba
stas 15 年之前
父節點
當前提交
d89f443f86
共有 1 個文件被更改,包括 23 次插入1 次删除
  1. 23 1
      library/Zend/Captcha/Word.php

+ 23 - 1
library/Zend/Captcha/Word.php

@@ -131,7 +131,7 @@ abstract class Zend_Captcha_Word extends Zend_Captcha_Base
      *
      * @return string
      */
-    public function getSessionClass()
+	public function getSessionClass()
     {
         return $this->_sessionClass;
     }
@@ -230,6 +230,28 @@ abstract class Zend_Captcha_Word extends Zend_Captcha_Base
 	}
 
     /**
+     * Numbers should be included in the pattern?
+     * 
+     * @return bool
+     */
+    public function getUseNumbers()
+    {
+        return $this->_useNumbers;
+    }
+
+	/**
+	 * Set if numbers should be included in the pattern
+	 * 
+     * @param $_useNumbers numbers should be included in the pattern?
+     * @return Zend_Captcha_Word
+     */
+    public function setUseNumbers($_useNumbers)
+    {
+        $this->_useNumbers = $_useNumbers;
+        return $this;
+    }
+	
+	/**
      * Get session object
      *
      * @return Zend_Session_Namespace