PHP Class Captcha, vanilla

Afficher le fichier Open project: vanilla/vanilla Class Usage Examples

Méthodes publiques

Méthode 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 méthode

Should we expect captcha submissions?
public static enabled ( ) : boolean
Résultat boolean

render() public static méthode

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

settings() public static méthode

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

validate() public static méthode

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