Basic
extends Basic
in package
Basic authorization class.
Table of Contents
- $api : Controller
- authenticate() : bool
- Authenticate function.
- setApi() : void
- Set api controller.
- setServer() : self
- Set server data.
- validatePwd() : bool
- Validate pwd.
Properties
$api
protected
Controller
$api
Controller instance
Methods
authenticate()
Authenticate function.
public
authenticate(string $realm) : bool
Parameters
- $realm : string
Return values
bool —setApi()
Set api controller.
public
setApi(Controller $api) : void
Parameters
- $api : Controller
Return values
void —setServer()
Set server data.
public
setServer() : self
Return values
self —validatePwd()
Validate pwd.
public
validatePwd(string $password) : bool
Parameters
- $password : string