Factory
final class Factory
Methods
static
getInstance()
No description
void
setProvider(string $providerName)
Override provider name
string
getProviderName()
Getter
void
getConfig(string $key = '', bool $default = false)
Captcha config
mixed
getProviderConfig(string $key = '')
Get default captcha provider config
static
createConfigFromSample()
Create from sample if not exists
getProviderList()
No description
registerProvider(string $providerName, string $providerClass)
No description
string
getCaptcha()
Get captcha
getError()
No description
getCaptchaSection()
No description
bool
isValid()
Get validation result from provider
bool
isSectionActive()
Determine if captcha section is active or not
static void
operate()
Open factory to operate captcha
Details
at line 31
static
getInstance()
No description
at line 47
static Factory
section(string $sectionName)
Define section page
SLiMS by default have 3 section page memberarea, librarian login and forgot password
at line 59
void
setProvider(string $providerName)
Override provider name
at line 69
string
getProviderName()
Getter
at line 81
void
getConfig(string $key = '', bool $default = false)
Captcha config
at line 92
mixed
getProviderConfig(string $key = '')
Get default captcha provider config
at line 100
static
createConfigFromSample()
Create from sample if not exists
at line 134
getProviderList()
No description
at line 141
registerProvider(string $providerName, string $providerClass)
No description
at line 151
string
getCaptcha()
Get captcha
at line 156
getError()
No description
at line 161
getCaptchaSection()
No description
at line 172
bool
isValid()
Get validation result from provider
at line 183
bool
isSectionActive()
Determine if captcha section is active or not
at line 193
static void
operate()
Open factory to operate captcha