NaverCaptcha
class NaverCaptcha implements CaptchaInterface
Class NaverCaptcha
Properties
| protected string | $clientId | Api client id | |
| protected string | $clientSecret | Api client secret | |
| protected Request | $request | Http Request instance | |
| protected FrontendHandler | $frontend | FrontendHandler instance | |
| protected Factory | $view | View Factory instance | |
| protected int | $timeout | Api request timeout | |
| protected string | $urlPrefix | Request url prefix | |
| protected array | $errors | Error messages |
Methods
__construct(string $clientId, string $clientSecret, Request $request, FrontendHandler $frontend, Factory $view, int $timeout)
NaverCaptcha constructor.
bool
verify()
Verify captcha
mixed
available()
Determine if captcha is available
array
errors()
Message of fails
string
render()
For UI object display
string
issue()
Issued the captcha key
string
getInputName()
Captcha input name
string
getImgSrc(string $key)
Returns image source by key
Client
createClient()
Create client for api request
Details
at line 101
__construct(string $clientId, string $clientSecret, Request $request, FrontendHandler $frontend, Factory $view, int $timeout)
NaverCaptcha constructor.
at line 122
bool
verify()
Verify captcha
at line 154
mixed
available()
Determine if captcha is available
at line 164
array
errors()
Message of fails
at line 174
string
render()
For UI object display
at line 193
string
issue()
Issued the captcha key
at line 217
string
getInputName()
Captcha input name
at line 228
string
getImgSrc(string $key)
Returns image source by key
at line 238
protected Client
createClient()
Create client for api request