PHP 클래스 Pantheon\Terminus\Models\User

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

보호된 프로퍼티들

프로퍼티 타입 설명
$aliases stdClass
$machine_tokens Pantheon\Terminus\Collections\PaymentMethods
$org_memberships Pantheon\Terminus\Collections\UserOrganizationMemberships
$payment_methods Pantheon\Terminus\Collections\PaymentMethods
$site_memberships Pantheon\Terminus\Collections\UserSiteMemberships
$ssh_keys Pantheon\Terminus\Collections\SSHKeys
$workflows Pantheon\Terminus\Collections\Workflows

공개 메소드들

메소드 설명
__construct ( object $attributes = null, array $options = [] ) Object constructor
dashboardUrl ( ) : string Provides Pantheon Dashboard URL for this user
getAliases ( ) : string Retrieves Drush aliases for this user
getMachineTokens ( ) : Terminus\Collections\PaymentMethods
getName ( ) : string Get the user's full name.
getOrgMemberships ( ) : Terminus\Collections\UserOrganizationMemberships
getOrganizations ( ) : Organization[] Retrieves organization data for this user
getPaymentMethods ( ) : PaymentMethods
getProfile ( ) : object
getSSHKeys ( ) : Terminus\Collections\SSHKeys
getSiteMemberships ( ) : Terminus\Collections\UserSiteMemberships
getSites ( ) : Site[] Requests API data and returns an object of user site data
getUpstreams ( ) : Workflows
getWorkflows ( ) : Workflows
serialize ( ) : array Formats User object into an associative array for output

비공개 메소드들

메소드 설명
fetchAliases ( ) Requests API data and populates $this->aliases

메소드 상세

__construct() 공개 메소드

Object constructor
public __construct ( object $attributes = null, array $options = [] )
$attributes object Attributes of this model
$options array Options with which to configure this model

dashboardUrl() 공개 메소드

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

getAliases() 공개 메소드

Retrieves Drush aliases for this user
public getAliases ( ) : string
리턴 string

getMachineTokens() 공개 메소드

public getMachineTokens ( ) : Terminus\Collections\PaymentMethods
리턴 Terminus\Collections\PaymentMethods

getName() 공개 메소드

Get the user's full name.
public getName ( ) : string
리턴 string

getOrgMemberships() 공개 메소드

public getOrgMemberships ( ) : Terminus\Collections\UserOrganizationMemberships
리턴 Terminus\Collections\UserOrganizationMemberships

getOrganizations() 공개 메소드

Retrieves organization data for this user
public getOrganizations ( ) : Organization[]
리턴 Organization[]

getPaymentMethods() 공개 메소드

public getPaymentMethods ( ) : PaymentMethods
리턴 Pantheon\Terminus\Collections\PaymentMethods

getProfile() 공개 메소드

public getProfile ( ) : object
리턴 object

getSSHKeys() 공개 메소드

public getSSHKeys ( ) : Terminus\Collections\SSHKeys
리턴 Terminus\Collections\SSHKeys

getSiteMemberships() 공개 메소드

public getSiteMemberships ( ) : Terminus\Collections\UserSiteMemberships
리턴 Terminus\Collections\UserSiteMemberships

getSites() 공개 메소드

Requests API data and returns an object of user site data
public getSites ( ) : Site[]
리턴 Site[]

getUpstreams() 공개 메소드

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

getWorkflows() 공개 메소드

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

serialize() 공개 메소드

Formats User object into an associative array for output
public serialize ( ) : array
리턴 array $data associative array of data for output

프로퍼티 상세

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

protected stdClass $aliases
리턴 stdClass

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

protected PaymentMethods,Pantheon\Terminus\Collections $machine_tokens
리턴 Pantheon\Terminus\Collections\PaymentMethods

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

protected UserOrganizationMemberships,Pantheon\Terminus\Collections $org_memberships
리턴 Pantheon\Terminus\Collections\UserOrganizationMemberships

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

protected PaymentMethods,Pantheon\Terminus\Collections $payment_methods
리턴 Pantheon\Terminus\Collections\PaymentMethods

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

protected UserSiteMemberships,Pantheon\Terminus\Collections $site_memberships
리턴 Pantheon\Terminus\Collections\UserSiteMemberships

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

protected SSHKeys,Pantheon\Terminus\Collections $ssh_keys
리턴 Pantheon\Terminus\Collections\SSHKeys

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

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