MIDDAG for Moodle

user_service extends facade

Facade for local_middag\framework\application\service\common\user_service.

Tags
see
user_service
mixin

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
int

delete_user()

public static delete_user(int $userid) : bool
Parameters
$userid : int
Return values
bool

get_facade_accessor()

Return the service accessor key for this facade.

public static get_facade_accessor() : string
Return values
string

update_user()

public static update_user(stdClass $userobj[, bool $updatepassword = = 'true' ][, bool $triggerevent = = 'true' ]) : bool
Parameters
$userobj : stdClass
$updatepassword : bool = = 'true'
$triggerevent : bool = = 'true'
Return values
bool

        
On this page

Search results