Source for file Base.php
Documentation is available at Base.php
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
* This file is part of the PEAR Services_ReCaptcha package.
* LICENSE: This source file is subject to the MIT license that is available
* through the world-wide-web at the following URI:
* http://opensource.org/licenses/mit-license.php
* @package Services_ReCaptcha
* @author David Jean Louis <izi@php.net>
* @copyright 2008-2009 David Jean Louis
* @license http://opensource.org/licenses/mit-license.php MIT License
* @link http://pear.php.net/package/Services_ReCaptcha
* @link http://www.recaptcha.net
* @since File available since release 0.1.0
require_once 'Services/ReCaptcha/Exception.php';
* Base class for Services_ReCaptcha and Services_ReCaptcha_MailHide.
* @package Services_ReCaptcha
* @author David Jean Louis <izi@php.net>
* @copyright 2008-2009 David Jean Louis
* @license http://opensource.org/licenses/mit-license.php MIT License
* @version Release: @package_version@
* @link http://pear.php.net/package/Services_ReCaptcha
* @link http://www.recaptcha.net
* @since Class available since release 0.1.0
* reCAPTCHA/reCAPTCHA Mailhide API URL.
* reCAPTCHA/reCAPTCHA Mailhide API public key.
* @var string $apiPublicKey
* reCAPTCHA/reCAPTCHA Mailhide API private key.
* @var string $apiPrivateKey
* Constructor, you must pass a valid public and private API key, and
* optionnaly an array of options.
* @param string $pubKey The public API key (mandatory)
* @param string $privKey The private API key (mandatory)
* @param array $options An array of options (optional)
public function __construct($pubKey, $privKey, array $options = array ())
* Returns the corresponding HTML code, this is a "magic" shortcut to the
* @return string The html code
* @see Services_ReCaptcha_Base::getHTML()
* Returns the corresponding HTML code.
abstract public function getHTML();
* Returns an option from {@link Services_ReCaptcha::$options}.
* @param string $option Name of option
* @return mixed The value of the option
* Sets an option in {@link Services_ReCaptcha::$options} and returns the
* current Services_ReCaptcha_Base instance.
* @param string $option Name of option
* @param mixed $value Value of option
* @return Services_ReCaptcha_Base
* Returns the {@link Services_ReCaptcha::$options} array.
* @return array The options array
* Sets a number of options at once in {@link Services_ReCaptcha::$options}
* and returns the current Services_ReCaptcha_Base instance.
* @param array $options Associative array of options name/value
* @return Services_ReCaptcha_Base
* @see Services_ReCaptcha::setOption()
foreach ($options as $option => $value) {
Documentation generated on Mon, 11 Mar 2019 15:43:39 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|