1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
|
<?php
/**
* Interface for Drivers
*
* PHP version 5
*
* @category Text
* @package Text_CAPTCHA
* @author Michael Cramer <michael@bigmichi1.de>
* @license http://www.opensource.org/licenses/bsd-license.php BSD License
* @link http://pear.php.net/package/Text_CAPTCHA
*/
/**
* Interface for Text_CAPTCHA drivers
*
* @category Text
* @package Text_CAPTCHA
* @author Michael Cramer <michael@bigmichi1.de>
* @license http://www.opensource.org/licenses/bsd-license.php BSD License
* @link http://pear.php.net/package/Text_CAPTCHA
*/
interface Text_CAPTCHA_Driver
{
/**
* Clear the internal state of the driver.
*
* @return void
*/
function resetDriver();
/**
* Initialize the driver with the given options.
*
* @param array $options options for the driver as array
*
* @return void
* @throws Text_CAPTCHA_Exception something went wrong during init
*/
function initDriver($options);
/**
* Generate the CAPTCHA.
*
* @return void
* @throws Text_CAPTCHA_Exception something went wrong during creation of CAPTCHA
*/
function createCAPTCHA();
/**
* Generate the phrase for the CAPTCHA.
*
* @return void
* @throws Text_CAPTCHA_Exception something went wrong during creation of phrase
*/
function createPhrase();
}
|