PHP 클래스 Pantheon\Terminus\Models\Site

상속: extends TerminusModel, implements Robo\Contract\ConfigAwareInterface, implements League\Container\ContainerAwareInterface, use trait Robo\Common\ConfigAwareTrait, use trait League\Container\ContainerAwareTrait
파일 보기 프로젝트 열기: pantheon-systems/terminus 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$branches Pantheon\Terminus\Collections\Branches
$environments Pantheon\Terminus\Collections\Environments
$new_relic NewRelic
$org_memberships Pantheon\Terminus\Collections\SiteOrganizationMemberships
$redis Redis
$solr Solr
$user_memberships Pantheon\Terminus\Collections\SiteUserMemberships
$workflows Pantheon\Terminus\Collections\Workflows

보호된 프로퍼티들

프로퍼티 타입 설명
$upstream_data stdClass
$url The URL at which to fetch this model's information

공개 메소드들

메소드 설명
__construct ( $attributes = null, array $options = [] )
addPaymentMethod ( string $payment_method_id ) : Workflow Add a payment method to the given site
completeMigration ( ) : Workflow Completes a site migration in progress
converge ( ) : Workflow Converges all bindings on a site
dashboardUrl ( ) : string Provides Pantheon Dashboard URL for this site
delete ( ) : Workflow Deletes the site represented by this object
deployProduct ( string $upstream_id ) : Workflow Creates a new site for migration
fetch ( array $options = [] ) : Site Fetches this object from Pantheon
getBranches ( ) : Branches
getEnvironments ( ) : Environments
getFeature ( string $feature ) : mixed | null Returns a specific site feature value
getName ( ) : mixed Get the human-readable name of the site
getNewRelic ( ) : NewRelic
getOrganizationMemberships ( ) : SiteOrganizationMemberships
getOrganizations ( ) : SiteOrganizationMembership[] Returns all organization members of this site
getRedis ( ) : Redis
getSolr ( ) : Solr
getUpstream ( ) : Upstream
getUserMemberships ( ) : SiteUserMemberships
getWorkflows ( ) : Workflows
removePaymentMethod ( ) : Workflow Remove this site's payment method
serialize ( ) : array Formats the Site object into an associative array for output
setOwner ( User $user_id ) : Workflow Sets the site owner to the indicated team member
updateServiceLevel ( string $service_level ) : Workflow Update service level

보호된 메소드들

메소드 설명
parseAttributes ( object $data ) : object Modify response data between fetch and assignment

비공개 메소드들

메소드 설명
setUpstream ( object $attributes ) Ensures the proper creation of an Upstream object

메소드 상세

__construct() 공개 메소드

public __construct ( $attributes = null, array $options = [] )
$options array

addPaymentMethod() 공개 메소드

Add a payment method to the given site
public addPaymentMethod ( string $payment_method_id ) : Workflow
$payment_method_id string UUID of new payment method
리턴 Workflow

completeMigration() 공개 메소드

Completes a site migration in progress
public completeMigration ( ) : Workflow
리턴 Workflow

converge() 공개 메소드

Converges all bindings on a site
public converge ( ) : Workflow
리턴 Workflow

dashboardUrl() 공개 메소드

Provides Pantheon Dashboard URL for this site
public dashboardUrl ( ) : string
리턴 string

delete() 공개 메소드

Deletes the site represented by this object
public delete ( ) : Workflow
리턴 Workflow

deployProduct() 공개 메소드

Creates a new site for migration
public deployProduct ( string $upstream_id ) : Workflow
$upstream_id string The UUID for the product to deploy.
리턴 Workflow

fetch() 공개 메소드

Fetches this object from Pantheon
public fetch ( array $options = [] ) : Site
$options array params to pass to url request
리턴 Site

getBranches() 공개 메소드

public getBranches ( ) : Branches
리턴 Pantheon\Terminus\Collections\Branches

getEnvironments() 공개 메소드

public getEnvironments ( ) : Environments
리턴 Pantheon\Terminus\Collections\Environments

getFeature() 공개 메소드

Returns a specific site feature value
public getFeature ( string $feature ) : mixed | null
$feature string Feature to check
리턴 mixed | null Feature value, or null if not found

getName() 공개 메소드

Get the human-readable name of the site
public getName ( ) : mixed
리턴 mixed

getNewRelic() 공개 메소드

public getNewRelic ( ) : NewRelic
리턴 NewRelic

getOrganizationMemberships() 공개 메소드

public getOrganizationMemberships ( ) : SiteOrganizationMemberships
리턴 Pantheon\Terminus\Collections\SiteOrganizationMemberships

getOrganizations() 공개 메소드

Returns all organization members of this site
public getOrganizations ( ) : SiteOrganizationMembership[]
리턴 SiteOrganizationMembership[]

getRedis() 공개 메소드

public getRedis ( ) : Redis
리턴 Redis

getSolr() 공개 메소드

public getSolr ( ) : Solr
리턴 Solr

getUpstream() 공개 메소드

public getUpstream ( ) : Upstream
리턴 Upstream

getUserMemberships() 공개 메소드

public getUserMemberships ( ) : SiteUserMemberships
리턴 Pantheon\Terminus\Collections\SiteUserMemberships

getWorkflows() 공개 메소드

public getWorkflows ( ) : Workflows
리턴 Pantheon\Terminus\Collections\Workflows

parseAttributes() 보호된 메소드

Modify response data between fetch and assignment
protected parseAttributes ( object $data ) : object
$data object attributes received from API response
리턴 object $data

removePaymentMethod() 공개 메소드

Remove this site's payment method
public removePaymentMethod ( ) : Workflow
리턴 Workflow

serialize() 공개 메소드

Formats the Site object into an associative array for output
public serialize ( ) : array
리턴 array Associative array of data for output

setOwner() 공개 메소드

Sets the site owner to the indicated team member
public setOwner ( User $user_id ) : Workflow
$user_id User UUID of new owner of site
리턴 Workflow

updateServiceLevel() 공개 메소드

Update service level
public updateServiceLevel ( string $service_level ) : Workflow
$service_level string Level to set service on site to
리턴 Workflow

프로퍼티 상세

$branches 공개적으로 프로퍼티

public Branches,Pantheon\Terminus\Collections $branches
리턴 Pantheon\Terminus\Collections\Branches

$environments 공개적으로 프로퍼티

public Environments,Pantheon\Terminus\Collections $environments
리턴 Pantheon\Terminus\Collections\Environments

$new_relic 공개적으로 프로퍼티

public NewRelic,Pantheon\Terminus\Models $new_relic
리턴 NewRelic

$org_memberships 공개적으로 프로퍼티

public SiteOrganizationMemberships,Pantheon\Terminus\Collections $org_memberships
리턴 Pantheon\Terminus\Collections\SiteOrganizationMemberships

$redis 공개적으로 프로퍼티

public Redis,Pantheon\Terminus\Models $redis
리턴 Redis

$solr 공개적으로 프로퍼티

public Solr,Pantheon\Terminus\Models $solr
리턴 Solr

$upstream_data 보호되어 있는 프로퍼티

protected stdClass $upstream_data
리턴 stdClass

$url 보호되어 있는 프로퍼티

The URL at which to fetch this model's information
protected $url

$user_memberships 공개적으로 프로퍼티

public SiteUserMemberships,Pantheon\Terminus\Collections $user_memberships
리턴 Pantheon\Terminus\Collections\SiteUserMemberships

$workflows 공개적으로 프로퍼티

public Workflows,Pantheon\Terminus\Collections $workflows
리턴 Pantheon\Terminus\Collections\Workflows