Class AdminContext
Context for administrator functions.
- Omines\DirectAdmin\Context\BaseContext
- Omines\DirectAdmin\Context\UserContext
- Omines\DirectAdmin\Context\ResellerContext
- Omines\DirectAdmin\Context\AdminContext
Namespace: Omines\DirectAdmin\Context
Author: Niels Keurentjes niels.keurentjes@omines.com
Located at DirectAdmin/Context/AdminContext.php
Author: Niels Keurentjes niels.keurentjes@omines.com
Located at DirectAdmin/Context/AdminContext.php
Methods summary
public
|
#
createAdmin( string $username, string $password, string $email )
Creates a new Admin level account. |
public
|
#
createReseller( string $username, string $password, string $email, string $domain, string|array $package = [], string $ip = 'shared' )
Creates a new Reseller level account. |
public
|
|
public
|
|
public
|
|
public
null|
|
#
getReseller( string $username )
Returns a specific reseller by name, or NULL if there is no reseller by this name. |
public
|
|
public
|
#
impersonateAdmin( string $username, boolean $validate = false )
Returns a new AdminContext acting as the specified admin. |
public
|
#
impersonateReseller( string $username, boolean $validate = false )
Returns a new ResellerContext acting as the specified reseller. |
Methods inherited from Omines\DirectAdmin\Context\ResellerContext
createAccount()
,
createUser()
,
deleteAccount()
,
deleteAccounts()
,
getIPs()
,
getUser()
,
getUsers()
,
impersonateUser()
,
suspendAccount()
,
suspendAccounts()
,
unsuspendAccount()
,
unsuspendAccounts()
Methods inherited from Omines\DirectAdmin\Context\UserContext
__construct()
,
getContextUser()
,
getDomain()
,
getDomains()
,
getType()
,
getUsername()