Class Provider
Generic class for hosting / PaaS Providers.
Direct known subclasses
Fluxsauce\Switchboard\ProviderAcquia
,
Fluxsauce\Switchboard\ProviderPantheon
Abstract
Namespace: Fluxsauce\Switchboard
Package: Fluxsauce\Switchboard
Located at library/fluxsauce/switchboard/src/Provider.php
Namespace: Fluxsauce\Switchboard
Package: Fluxsauce\Switchboard
Located at library/fluxsauce/switchboard/src/Provider.php
Methods summary
public static
mixed
|
|
protected
|
|
public
mixed
|
|
abstract public
|
|
public
|
|
public
|
|
public
boolean
|
|
abstract public
string
|
#
siteGetField( string $site_name, string $field )
A mapping function that calls the appropriate API to populate a field. |
abstract public
|
|
abstract public
|
|
abstract public
|
#
apiGetSiteEnvDbs( string $site_name, string $env_name )
Get and populate list of Databases for a particular Environment. |
abstract public
array
|
|
abstract public
boolean
|
|
abstract public
array
|
#
apiGetSiteEnvDbBackups( string $site_name, string $env_name )
Get a list of database backups for a particular Site Environment. |
abstract public
string
|
|
public
array
|
#
getSiteEnvDbBackupLatest( string $site_name, string $env_name )
Helper function to get the latest database backup. |
public
string
|
|
public
|
|
abstract public
boolean
|
|
abstract public
string
|
#
getFilesPath( string $site_name, string $env_name )
Get the remote path to files for a particular Site Environment. |
public
array
|
#
requestsOptions( array $options = array() )
Get all Provider specific and custom options for the Requests library. |
Magic methods summary
Properties summary
protected
string
|
$name |
#
Machine name of the Provider. |
protected
string
|
$label |
#
Human readable label for the Provider. |
protected
string
|
$homepage |
#
Homepage URL for the provider. |
protected
string
|
$endpoint |
#
Endpoint URL for the provider. |
protected
array
|
$sites |
#
Contains instances of Fluxsauce\Switchboard\Site |