| Methods Summary | ||
|---|---|---|
| 
                 public 
                
                
         | ||
| 
                 public 
                
                
         | ||
| 
                 public 
                
                
         | 
            #
             user_service_enabled(  string $user ,  string $svc  )
                User capability is enabled for web service
Possible values subdomain, cgi
             | |
| 
                 public 
                
                
         | ||
| 
                 public 
                
                
         | ||
| 
                 public 
                
                
         | ||
| 
                 public 
                
                
         | ||
| 
                 public 
                
                
         | 
            #
             get_sys_user( )
                Get HTTP system user
HTTP user has limited requirements except read.
In a PHP-FPM environment, no write access is permitted by this user.
             | |
| 
                 public 
                
                
         | 
            #
             normalize_path(  string $hostname ,  string $path = '' )
                Retrieve document root for given host
Doubly useful to evaluate where documents
will be served given a particular domain
             | |
| 
                 public 
                
                
         | ||
| 
                 public 
                
                
         | ||
| 
                 public 
                
                
         | 
            #
             list_subdomains(  string $filter = '',  string|array $domains = array ( ) )
                List subdomains on the account
Array format- subdomain => path
             | |
| 
                 public 
                
                
         | 
            #
             subdomain_info(  string $subdomain  )
                Get detailed information on a subdomain
Response:
path (string): filesystem location
active (bool): subdomain references accessible directory
user (string): owner of subdomain
type (string): local, global, or fallthrough
             | |
| 
                 public 
                
                
         | 
            #
             subdomain_exists(  string $subdomain  )
                Check if named subdomain exists
Fallthrough, local, and global subdomain patterns
are valid
                     seeadd_subdomain() | |
| 
                 public 
                
                
         | ||
| 
                 public 
                
                
         | ||
| 
                 public 
                
                
         | ||
| 
                 public 
                
                
         | 
            #
             domain_info(  string $domain  )
                Get information on a domain
Info elements
  path (string): filesystem path
active (bool): domain is active and readable
user (string): owner of directory
             | |
| 
                 public 
                
                
         | 
            #
             domain_exists(  string $domain  )
                Test if domain is attached to account
aliases:list-aliases is used to check site configuration for fixed aliases
aliases:list-shared-domains checks presence in info/domain_map
                     seealiases_domain_exists() | |
| 
                 public 
                
                
         | ||
| 
                 public 
                
                
         | 
            #
             get_all_hostnames_from_path(  string $docroot  )
                Given a docroot, find all hostnames that serve from here
                     xxx | |
| 
                 public 
                
                
         | 
            #
             extract_components_from_path(  string $docroot  )
                Decompose a path into its hostname/path components
             | |
| 
                 public 
                
                
         | ||
| 
                 public 
                
                
         | ||
| 
                 public 
                
                
         | 
            #
             allow_protocol(  string $hostname ,  string $proto = 'http10' )
                Permit a disallowed protocol access to hostname
             | |
| 
                 public 
                
                
         | 
            #
             protocol_disallowed(  string $hostname ,  string $proto = 'http10' )
                Specified protocol is disallowed
             | |
| 
                 public 
                
                
         | ||
| 
                 public 
                
                
         | ||
| 
                 public 
                
                
         | ||
| 
                 public 
                
                
         | ||
| 
                 public 
                
                
         | ||
| 
                 public 
                
                
         | 
            #
             rename_subdomain(  string $subdomain ,  string $newsubdomain = NULL,  string $newpath = NULL )
                Rename a subdomain and/or change its path
             | |
| 
                 public 
                
                
         | ||
| 
                 public 
                
                
         | ||
| 
                 public 
                
                
         | 
            #
             map_subdomain(  string $mode ,  string $subdomain ,  string $path = NULL,  string $user = NULL )
                Manage subdomain symlink mapping
                     todo | |
| 
                 public 
                
                
         | 
            #
             add_subdomain(  string $subdomain ,  string $docroot  )
                Add subdomain to account
There are 3 types of subdomains:
Local- subdomain includes subdomain + domain - foo.bar.com
Fallthrough- subdomain is named after domain - bar.com
Global- subdomain excludes domain - foo
             | |
| 
                 public 
                
                
         | ||
| 
                 public 
                
                
         | ||
| 
                 public 
                
                
         | ||
| 
                 public 
                
                
         | ||
| 
                 public 
                
                
         | ||
| 
                 public 
                
                
         | ||
| 
                 public 
                
                
         | ||
| 
                 public 
                
                
         | ||
| 
                 public 
                
                
         | ||
| 
                 public 
                
                
         | ||
| 
                 public 
                
                
         | ||
| 
                 public 
                
                
         | ||
| 
                 public 
                
                
         | ||
| 
                 public 
                
                
         | ||
| 
                 public 
                
                
         | ||
| Methods inherited from Module\Skeleton\Standard | 
|---|
| __construct(),setUserParameters(),autoloadModule(),__wakeup(),_invoke(),__debugInfo(),getExportedFunctions(),_reset(),cleanUserParameters(),query() | 
| Constants Summary | ||
|---|---|---|
| 
        public
        
        
        array
         | 
            DEPENDENCY_MAP
         | 
            #
             array (
  0 => 'ipinfo',
  1 => 'ipinfo6',
  2 => 'siteinfo',
  3 => 'dns',
  4 => 'cgroup',
) | 
| 
        public
        
        
        string
         | 
            MAIN_DOC_ROOT
         | 
            #
             '/var/www/html' | 
| 
        public
        
        
        string
         | 
            WEB_USERNAME
         | 
            #
             'apache' | 
| 
        public
        
        
        int
         | 
            WEB_GROUPID
         | 
            #
             48 | 
| 
        public
        
        
        string
         | 
            PROTOCOL_MAP
         | 
            #
             '/etc/httpd/conf/http10' | 
| 
        public
        
        
        string
         | 
            SUBDOMAIN_ROOT
         | 
            #
             '/var/subdomain' | 
| Constants inherited from Module\Skeleton\Standard | 
|---|
| 
            
                DEPENDENCY_MAP
            
     | 
| Properties Summary | ||
|---|---|---|
| 
            protected 
            
         | 
            $pathCache
         | 
            #
             array (
) | 
| 
            protected 
            
         | 
            $service_cache
         | 
            #
             NULL | 
| 
            protected 
            
         | 
            $exportedFunctions
         | 
            #
             array (
  '*' => 2,
  'add_subdomain_raw' => 18,
  'host_html_dir' => 3,
  'reload' => 10,
  'status' => 8,
  'get_sys_user' => 15,
  'capture' => 18,
  'inventory_capture' => 8,
) | 
| 
            protected 
            
         | 
            $hostCache
         | 
            #
             array (
) | 
| Properties inherited from Module\Skeleton\Standard | 
|---|
| $exportedFunctions,$username,$password,$domain,$user_id,$group_id,$permission_level,$session_id,$site,$site_id |