UserApi
in package
Implements the REST API users management API
Tags
Table of Contents
Properties
- $db : PdoDb
Methods
- __construct() : mixed
- delete() : void
- get() : void
- options() : void
- patch() : void
- put() : void
- checkUserExists() : stdClass
- prepareUserData() : object
Properties
$db
private
PdoDb
$db
Methods
__construct()
public
__construct() : mixed
delete()
public
delete(string $user) : void
Parameters
- $user : string
get()
public
get(string $user) : void
Parameters
- $user : string
options()
public
options(string $user[, int $code = 200 ]) : void
Parameters
- $user : string
- $code : int = 200
patch()
public
patch(string $user) : void
Parameters
- $user : string
put()
public
put(string $user) : void
Parameters
- $user : string
checkUserExists()
private
checkUserExists(string $user) : stdClass
Parameters
- $user : string
Return values
stdClassprepareUserData()
private
prepareUserData(object $data, string $user) : object
Parameters
- $data : object
- $user : string