Просмотр исходного кода

ZF-10855
Zend_Captcha
Documentation
Document argument format of isValid() method of Zend_Captcha_ReCaptcha


git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@24024 44c647ce-9c0f-0410-b52a-842ac1e357ba

adamlundrigan 14 лет назад
Родитель
Сommit
4909abf302
1 измененных файлов с 22 добавлено и 0 удалено
  1. 22 0
      documentation/manual/en/module_specs/Zend_Captcha-Adapters.xml

+ 22 - 0
documentation/manual/en/module_specs/Zend_Captcha-Adapters.xml

@@ -300,6 +300,28 @@
                     the ReCaptcha service object.
                 </para>
             </listitem>
+            
+            <listitem>
+                <para>
+                    <methodname>isValid($value, $context = null)</methodname> validates the user's
+                    input against the ReCaptcha service.  $value is an array with the following
+                    keys:  
+                    <itemizedlist>
+                        <listitem>
+                            <para>
+                                recaptcha_challenge_field - Value of the ReCaptcha widget's 
+                                challenge field (hidden)
+                            </para>
+                        </listitem>
+                        <listitem>                        
+                            <para>
+                                recaptcha_response_field - Value of the ReCaptcha widget's
+                                user input field
+                            </para>
+                        </listitem>
+                    </itemizedlist>
+                </para>
+            </listitem>
         </itemizedlist>
     </sect2>
 </sect1>