user_service extends facade
Facade for local_middag\framework\application\service\common\user_service.
Tags
Table of Contents
Methods
- create_user() : int
- delete_user() : bool
- get_facade_accessor() : string
- Return the service accessor key for this facade.
- update_user() : bool
Methods
create_user()
public
static create_user(stdClass $userobj[, bool $updatepassword = = 'false' ][, bool $nologin = = 'false' ]) : int
Parameters
- $userobj : stdClass
- $updatepassword : bool = = 'false'
- $nologin : bool = = 'false'
Return values
intdelete_user()
public
static delete_user(int $userid) : bool
Parameters
- $userid : int
Return values
boolget_facade_accessor()
Return the service accessor key for this facade.
public
static get_facade_accessor() : string
Return values
stringupdate_user()
public
static update_user(stdClass $userobj[, bool $updatepassword = = 'true' ][, bool $triggerevent = = 'true' ]) : bool
Parameters
- $userobj : stdClass
- $updatepassword : bool = = 'true'
- $triggerevent : bool = = 'true'