Admin_Module

+------------------------------------------------------------+ | apnscp | +------------------------------------------------------------+ | Copyright (c) Apis Networks | +------------------------------------------------------------+ | Licensed under Artistic License 2.0 | +------------------------------------------------------------+ | Author: Matt Saladna (msaladna@apisnetworks.com) | +------------------------------------------------------------+
extends Module\Skeleton\Standard uses ImpersonableTrait
Methods Summary
public
public
# get_domains( )
List all domains on the server
public
# get_address_from_domain( string $domain )
Get e-mail from domain
public
# get_site_id_from_domain( string $domain )
Translate domain to id
public
# get_meta_from_domain( string $domain , string $service , string $class = NULL )
Get account metadata
public
# get_email( )
Get appliance admin email
public
# set_email( string $email )
Set appliance admin email
public
protected
public
# update_webapps( array $options = array ( ) )
Force bulk update of webapps
public
# reset_webapp_failure( array $constraints = array ( ) )
Reset failed apps
public
# locate_webapps( string|array $site = NULL )
Locate webapps under site
public
# delete_site( string $site )
Delete site
public
# add_site( string $domain , string $admin , array $opts = array ( ) )
Add site
public
# edit_site( string $site , array $opts = array ( ) )
Edit site
public
# activate_site( string $site )
Activate site
public
# deactivate_site( string $site )
Deactivate site
public
# hijack( string $site , string $user = NULL )
Hijack a user account Replaces current session with new account session
public
# get_storage( )
Get server storage usage
Methods inherited from Module\Skeleton\Standard
__construct(), __wakeup(), autoloadModule(), setUserParameters(), cleanUserParameters(), setSessionId(), _invoke(), __debugInfo(), getExportedFunctions(), _reset(), getServices(), getNewServices(), getActiveServices(), getConfig(), getServiceValue(), setConfigJournal(), setConfig(), query(), _resetModule()
Methods used from ImpersonableTrait trait
impersonateRole()
Constants Summary
public string ADMIN_HOME
# '/etc/opcenter/webhost'
public string ADMIN_CONFIG
# '.config/'
public string ADMIN_CONFIG_LEGACY
# '/etc/appliance/appliance.ini'
Constants inherited from Module\Skeleton\Standard
DEPENDENCY_MAP
Properties Summary
protected $exportedFunctions
# array ( '*' => 8, )
Properties inherited from Module\Skeleton\Standard
$exportedFunctions, $username, $password, $domain, $user_id, $group_id, $permission_level, $session_id, $site, $site_id, $pgsql, $mysql
Properties used from ImpersonableTrait