SproutCMS

This is the code documentation for the SproutCMS project

class Captcha

Means to generate and process CAPTCHAs of various implementations

Extending this class

<?php
/**
* New class description goes here
* 
* @author Your Name, 2024-05-03
**/
class NewClassName extends Captcha {
    
    /**
    * Checks the captcha field against the submitted text
    **/
    public function check () {
        // Method code goes here
    }
    
    /**
    * Sets which library to use for CAPTCHA implementation
    **/
    public function useClass (string $class_name) {
        // Method code goes here
    }
    
    /**
    * Shows a captcha field
    **/
    public function field () {
        // Method code goes here
    }
    
    /**
    * Loads the default captcha class from config
    **/
    public function init () {
        // Method code goes here
    }
    
}
?>