Copyright (c) 2015, Aleksey Korzun <aleksey@webfoundation.net> All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
The views and conclusions contained in the software and documentation are those of the authors and should not be interpreted as representing official policies, either expressed or implied, of the FreeBSD Project.
Proper library for reCaptcha service
author |
Aleksey Korzun aleksey@webfoundation.net |
---|---|
see | |
throws | |
package |
library |
setPublicKey(string $key) : \Captcha\reCaptcha
string
\Captcha\reCaptcha
getPublicKey() : string
string
setPrivateKey(string $key) : \Captcha\reCaptcha
string
\Captcha\reCaptcha
getPrivateKey() : string
string
setRemoteIp(string $ip) : \Captcha\reCaptcha
string
\Captcha\reCaptcha
getRemoteIp() : string
string
setError(string $error) : \Captcha\reCaptcha
string
\Captcha\reCaptcha
getError() : string
string
html() : string
throws | |
---|---|
string
check(bool|string $captchaResponse = false) : \Captcha\Response
throws | |
---|---|
bool|string
Optional response string. If empty, value from $_POST will be used
\Captcha\Response
process(array $parameters) : string
throws | |
---|---|
array
string
isValidTheme(string $theme) : bool
string
bool
isValidSize(string $size) : bool
string
bool
isValidType(string $type) : bool
string
bool
setTheme(string $theme) : \Captcha\Captcha
setSize(string $size) : \Captcha\Captcha
setType(string $type) : \Captcha\Captcha
setTabIndex(int $tabIndex) : \Captcha\Captcha
SERVER
var | |
---|---|
VERIFY_SERVER
var | |
---|---|
remoteIp
var | |
---|---|
privateKey
var | |
---|---|
publicKey
var | |
---|---|
error
var | |
---|---|
theme
var | |
---|---|
see | |
type
var | |
---|---|
see | |
size
var | |
---|---|
see | |
tabIndex
var | |
---|---|
see | |
themes
var | |
---|---|
see | |
types
var | |
---|---|
see | |
sizes
var | |
---|---|
see | |