Sfoglia il codice sorgente

make view optional, since nobody actually uses it yet

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@16122 44c647ce-9c0f-0410-b52a-842ac1e357ba
stas 16 anni fa
parent
commit
948207c39a

+ 1 - 1
library/Zend/Captcha/Adapter.php

@@ -50,7 +50,7 @@ interface Zend_Captcha_Adapter extends Zend_Validate_Interface
      * @param  mixed $element
      * @return string
      */
-    public function render(Zend_View_Interface $view, $element = null);
+    public function render(Zend_View_Interface $view = null, $element = null);
 
     /**
      * Set captcha name

+ 1 - 1
library/Zend/Captcha/Dumb.php

@@ -43,7 +43,7 @@ class Zend_Captcha_Dumb extends Zend_Captcha_Word
      * @param  mixed $element
      * @return string
      */
-    public function render(Zend_View_Interface $view, $element = null)
+    public function render(Zend_View_Interface $view = null, $element = null)
     {
         return 'Please type this word backwards: <b>'
              . strrev($this->getWord())

+ 1 - 1
library/Zend/Captcha/Figlet.php

@@ -76,7 +76,7 @@ class Zend_Captcha_Figlet extends Zend_Captcha_Word
      * @param mixed $element
      * @return string
      */
-    public function render(Zend_View_Interface $view, $element = null)
+    public function render(Zend_View_Interface $view = null, $element = null)
     {
         return '<pre>'
              . $this->_figlet->render($this->getWord())

+ 1 - 1
library/Zend/Captcha/Image.php

@@ -593,7 +593,7 @@ class Zend_Captcha_Image extends Zend_Captcha_Word
      * @param mixed $element
      * @return string
      */
-    public function render(Zend_View_Interface $view, $element = null)
+    public function render(Zend_View_Interface $view = null, $element = null)
     {
         return '<img alt="'.$this->getImgAlt().'" src="' . $this->getImgUrl() . $this->getId() . $this->getSuffix() . '"/><br/>';
     }

+ 1 - 1
library/Zend/Captcha/ReCaptcha.php

@@ -247,7 +247,7 @@ class Zend_Captcha_ReCaptcha extends Zend_Captcha_Base
      * @param  mixed $element
      * @return string
      */
-    public function render(Zend_View_Interface $view, $element = null)
+    public function render(Zend_View_Interface $view = null, $element = null)
     {
         return $this->getService()->getHTML();
     }