Avatar
in package
Class to handle the avatar of a user
Table of Contents
Properties
Methods
- __construct() : mixed
- Initialize the Email OTP setup
- add() : void
- Add the avatar to the user. Needs the userToken
- remove() : void
- Remove the user's avatar.
- setImagePath() : void
- Set the image for the avatar
- setUserId() : void
- Set the userid
Properties
$boundary
private
string
$boundary
$postData
private
string
$postData
$settings
private
array<string|int, mixed>
$settings
$userid
private
int
$userid
Methods
__construct()
Initialize the Email OTP setup
public
__construct(mixed $settings) : mixed
Parameters
- $settings : mixed
-
array The settings array
add()
Add the avatar to the user. Needs the userToken
public
add() : void
Tags
remove()
Remove the user's avatar.
public
remove() : void
Tags
setImagePath()
Set the image for the avatar
public
setImagePath(string $avatar) : void
Parameters
- $avatar : string
-
Path to the image file
Tags
setUserId()
Set the userid
public
setUserId(mixed $userid) : void
Parameters
- $userid : mixed
-
int User id