PHP Class Captcha, vanilla

Datei anzeigen Open project: vanilla/vanilla Class Usage Examples

Public Methods

Method Description
enabled ( ) : boolean Should we expect captcha submissions?
render ( Gdn_Controller $controller ) : null; Wrapper for captcha rendering.
settings ( Gdn_Controller $controller ) : null Wrapper for captcha settings.
validate ( mixed $value = null ) : boolean Validate captcha.

Method Details

enabled() public static method

Should we expect captcha submissions?
public static enabled ( ) : boolean
return boolean

render() public static method

Allows conditional ignoring of captcha rendering if skipped in the config.
public static render ( Gdn_Controller $controller ) : null;
$controller Gdn_Controller
return null;

settings() public static method

Allows conditional ignoring of captcha settings if disabled in the config.
public static settings ( Gdn_Controller $controller ) : null
$controller Gdn_Controller
return null

validate() public static method

Validate captcha.
public static validate ( mixed $value = null ) : boolean
$value mixed
return boolean validity of captcha submission