__toString()
createDefault()
isValid()
render()
renderInternal()
validateDefault()
$_rendered
Abstract base for CAPTCHA implementations.
package | XenForo_Captcha |
---|
__toString() : string
string
createDefault(boolean $alwaysCreate) : \XenForo_Captcha_Abstract | false
By default, this checks whether a CAPTCHA is needed for the visiting user. Note that you can never guarantee that this function will return an object!
boolean
If false, creates if visiting user needs; otherwise, creates the default object if configured
isValid(array $input) : boolean
array
Set of input to validate against
boolean
render(\XenForo_View $view)
renderInternal(\XenForo_View $view) : \XenForo_Template_Abstract | string
This should only render the CAPTCHA area itself. The CAPTCHA may be used in a form row or own its own.
\XenForo_View
validateDefault(array | \XenForo_Input $input, boolean $alwaysCheck) : boolean
boolean
If true, always checks; if false, checks if visiting user needs
boolean