Class ResellerContext
Context for reseller functions.
- Omines\DirectAdmin\Context\BaseContext
-
Omines\DirectAdmin\Context\UserContext
-
Omines\DirectAdmin\Context\ResellerContext
Direct known subclasses
Namespace: Omines\DirectAdmin\Context
Author: Niels Keurentjes niels.keurentjes@omines.com
Located at DirectAdmin/Context/ResellerContext.php
Author: Niels Keurentjes niels.keurentjes@omines.com
Located at DirectAdmin/Context/ResellerContext.php
Methods summary
public
|
#
createUser( string $username, string $password, string $email, string $domain, string $ip, string|array $package = [] )
Creates a new user on the server. |
protected
object
|
#
createAccount( string $username, string $password, string $email, array $options, string $endpoint, string $returnType )
Internal helper function for creating new accounts. |
public
|
|
public
|
|
public
|
|
public
|
|
public
|
#
suspendAccounts( array $usernames, boolean $suspend = true )
Suspends (or unsuspends) multiple accounts. |
public
|
|
public
array
|
|
public
|
|
public
|
|
public
|
#
impersonateUser( string $username, boolean $validate = false )
Impersonates a user, allowing the reseller/admin to act on their behalf. |
Methods inherited from Omines\DirectAdmin\Context\UserContext
__construct()
,
getContextUser()
,
getDomain()
,
getDomains()
,
getType()
,
getUsername()