Documentation

ModelAccountUser extends Model
in package

ModelAccountUser

The model for working with the user entity.

Table of Contents

Methods

__get()  : object
A magic method for referring to objects.
addUser()  : bool
Adding a new user
getUserByEmail()  : array<string|int, mixed>|bool
Gets a user object by Email
getUserById()  : array<string|int, mixed>|bool
Gets a user object by ID

Methods

__get()

A magic method for referring to objects.

public __get(string $property) : object

Made for more convenient access to objects from the model, as well as for more convenient replacement of objects, if necessary, so that you do not have to change all calls to objects in the entire code.

Parameters
$property : string
Return values
object

addUser()

Adding a new user

public addUser(array<string|int, mixed> $data) : bool
Parameters
$data : array<string|int, mixed>
Return values
bool

getUserByEmail()

Gets a user object by Email

public getUserByEmail(string $email) : array<string|int, mixed>|bool
Parameters
$email : string
Return values
array<string|int, mixed>|bool

returns false on request error

getUserById()

Gets a user object by ID

public getUserById(int $id) : array<string|int, mixed>|bool
Parameters
$id : int
Return values
array<string|int, mixed>|bool

returns false on request error


        
On this page

Search results