Wholesale_Customer

Controller to manage wholesale customer operations

Tags
author

Barn2 Plugins support@barn2.com

license

GPL-3.0

copyright

Barn2 Media Ltd

Table of Contents

__construct()  : mixed
Constructor.
approve()  : mixed
Approve a customer if they are pending
reject()  : mixed
Reject a customer if they are pending
regenerate_password()  : string
Regenerate the password after approval

Methods

__construct()

Constructor.

public __construct(int $id) : mixed
Parameters
$id : int
Tags
throws
InvalidArgumentException

Non-numeric user ID supplied.

throws
Exception

User does not exist.

throws
Exception

Not a wholesale user.

Return values
mixed

approve()

Approve a customer if they are pending

public approve() : mixed
Tags
Return values
mixed

reject()

Reject a customer if they are pending

public reject() : mixed
Tags
Return values
mixed

regenerate_password()

Regenerate the password after approval

private regenerate_password() : string
Tags
Return values
string

$password

Search results