프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$backups | |||
$bindings | |||
$commits | |||
$domains | |||
$site | |||
$workflows |
프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$lock |
메소드 | 설명 | |
---|---|---|
__construct ( object $attributes, array $options = [] ) | Object constructor | |
applyUpstreamUpdates ( boolean $updatedb = true, boolean $xoption = false ) : |
Apply upstream updates | |
cacheserverConnectionInfo ( ) : array | Gives cacheserver connection info for this environment | |
changeConnectionMode ( string $value ) : |
Changes connection mode | |
clearCache ( ) : |
Clears an environment's cache | |
cloneDatabase ( string $from_env ) : |
Clones database from this environment to another | |
cloneFiles ( string $from_env ) : |
Clones files from this environment to another | |
commitChanges ( string $commit = null ) : array | Commits changes to code | |
connectionInfo ( ) : array | Gives connection info for this environment | |
convergeBindings ( ) : array | Converges all bindings on a site | |
countDeployableCommits ( ) : integer | Counts the number of deployable commits | |
dashboardUrl ( ) : string | Provides Pantheon Dashboard URL for this environment | |
databaseConnectionInfo ( ) : array | Gives database connection info for this environment | |
delete ( array $arg_options = [] ) : |
Delete a multidev environment | |
deploy ( array $params ) : |
Deploys the Test or Live environment | |
diffstat ( ) : array | Gets diff from multidev environment | |
disableHttpsCertificate ( ) : array | Remove a HTTPS certificate from the environment | |
domain ( ) : string | Generate environment URL | |
getBackups ( ) : |
||
getBindings ( ) : |
||
getCommits ( ) : |
||
getDomains ( ) : |
||
getDrushVersion ( ) : integer | Gets the Drush version of this environment | |
getLock ( ) : |
Returns the lock object associated with this environment | |
getName ( ) : string | Returns the environment's name | |
getParentEnvironment ( ) : |
Returns the parent environment | |
getSite ( ) : |
||
getWorkflows ( ) : |
||
gitConnectionInfo ( ) : array | Gives Git connection info for this environment | |
hasDeployableCode ( ) : boolean | Decides if the environment has changes to deploy | |
import ( string $url ) : |
Imports a site archive onto Pantheon | |
importDatabase ( string $url ) : |
Imports a database archive | |
importFiles ( string $url ) : |
Imports a file archive | |
initializeBindings ( ) : |
Initializes the test/live environments on a newly created site and clones content from previous environment (e.g. test clones dev content, live clones test content.) | |
isInitialized ( ) : boolean | Have the environment's bindings have been initialized? | |
isMultidev ( ) : boolean | Is this branch a multidev environment? | |
mergeFromDev ( array $options = [] ) : |
Merge code from the Dev Environment into this Multidev Environment | |
mergeToDev ( array $options = [] ) : |
Merge code from a multidev environment into the dev environment | |
sendCommandViaSsh ( string $command ) : string[] | Sends a command to an environment via SSH. | |
serialize ( ) : array | Formats environment object into an associative array for output | |
setHttpsCertificate ( array $certificate = [] ) | Add/replace an HTTPS certificate on the environment | |
sftpConnectionInfo ( ) : array | Gives SFTP connection info for this environment | |
wake ( ) : array | "Wake" a site | |
wipe ( ) : |
Deletes all content (files and database) from the Environment |
메소드 | 설명 | |
---|---|---|
parseAttributes ( object $data ) : object | Modify response data between fetch and assignment |
메소드 | 설명 | |
---|---|---|
settings ( string $setting = null ) : mixed | Retrieves the value of an environmental setting |
public __construct ( object $attributes, array $options = [] ) | ||
$attributes | object | Attributes of this model |
$options | array | Options with which to configure this model |
public applyUpstreamUpdates ( boolean $updatedb = true, boolean $xoption = false ) : |
||
$updatedb | boolean | True to run update.php |
$xoption | boolean | True to automatically resolve merge conflicts |
리턴 |
public cacheserverConnectionInfo ( ) : array | ||
리턴 | array |
public changeConnectionMode ( string $value ) : |
||
$value | string | Connection mode, "git" or "sftp" |
리턴 |
public cloneDatabase ( string $from_env ) : |
||
$from_env | string | Name of the environment to clone |
리턴 |
public cloneFiles ( string $from_env ) : |
||
$from_env | string | Name of the environment to clone |
리턴 |
public commitChanges ( string $commit = null ) : array | ||
$commit | string | Should be the commit message to use if committing on server changes |
리턴 | array | Response data |
public connectionInfo ( ) : array | ||
리턴 | array |
public convergeBindings ( ) : array | ||
리턴 | array |
public countDeployableCommits ( ) : integer | ||
리턴 | integer |
public dashboardUrl ( ) : string | ||
리턴 | string |
public databaseConnectionInfo ( ) : array | ||
리턴 | array |
public disableHttpsCertificate ( ) : array | ||
리턴 | array | $workflow |
public getDrushVersion ( ) : integer | ||
리턴 | integer |
public getLock ( ) : |
||
리턴 |
public getParentEnvironment ( ) : |
||
리턴 |
public getWorkflows ( ) : |
||
리턴 |
public gitConnectionInfo ( ) : array | ||
리턴 | array |
public hasDeployableCode ( ) : boolean | ||
리턴 | boolean |
public importDatabase ( string $url ) : |
||
$url | string | URL to import data from |
리턴 |
public importFiles ( string $url ) : |
||
$url | string | URL to import data from |
리턴 |
public initializeBindings ( ) : |
||
리턴 | In-progress workflow |
public isInitialized ( ) : boolean | ||
리턴 | boolean | True if environment has been instantiated |
public isMultidev ( ) : boolean | ||
리턴 | boolean | True if ths environment is a multidev environment |
public mergeFromDev ( array $options = [] ) : |
||
$options | array | Parameters to override defaults boolean updatedb True to update DB with merge |
리턴 |
public mergeToDev ( array $options = [] ) : |
||
$options | array | Parameters to override defaults string from_environment Name of the multidev environment to merge boolean updatedb True to update DB with merge |
리턴 |
protected parseAttributes ( object $data ) : object | ||
$data | object | attributes received from API response |
리턴 | object | $data |
public sendCommandViaSsh ( string $command ) : string[] | ||
$command | string | The command to be run on the platform |
리턴 | string[] | $response Elements as follow: string output The output from the command run string exit_code The status code returned by the command run |
public setHttpsCertificate ( array $certificate = [] ) | ||
$certificate | array | Certificate data elements as follow string cert Certificate string key RSA private key string intermediary CA intermediate certificate(s) |
public sftpConnectionInfo ( ) : array | ||
리턴 | array |
public wipe ( ) : |
||
리턴 |
public Backups,Pantheon\Terminus\Collections $backups | ||
리턴 |
public Bindings,Pantheon\Terminus\Collections $bindings | ||
리턴 |
public Commits,Pantheon\Terminus\Collections $commits | ||
리턴 |
public Domains,Pantheon\Terminus\Collections $domains | ||
리턴 |