PHP 클래스 Pantheon\Terminus\Collections\OrganizationSiteMemberships

상속: extends TerminusCollection
파일 보기 프로젝트 열기: pantheon-systems/terminus 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$organization Pantheon\Terminus\Models\Organization

보호된 프로퍼티들

프로퍼티 타입 설명
$collected_class string
$paged boolean

공개 메소드들

메소드 설명
__construct ( array $options = [] ) : OrganizationSiteMemberships Instantiates the collection
create ( Site $site ) : Workflow Adds a site to this organization
get ( string $id ) : OrganizationSiteMembership Retrieves the model with site of the given UUID or name
getOrganization ( ) : Organization
getSite ( string $site_id ) : Site Retrieves the matching site from model members
siteIsMember ( Site $site ) : boolean Determines whether a site is a member of this collection

메소드 상세

__construct() 공개 메소드

Instantiates the collection
public __construct ( array $options = [] ) : OrganizationSiteMemberships
$options array To be set
리턴 OrganizationSiteMemberships

create() 공개 메소드

Adds a site to this organization
public create ( Site $site ) : Workflow
$site Site Site object of site to add to this organization
리턴 Workflow

get() 공개 메소드

Retrieves the model with site of the given UUID or name
public get ( string $id ) : OrganizationSiteMembership
$id string UUID or name of desired site membership instance
리턴 OrganizationSiteMembership

getOrganization() 공개 메소드

public getOrganization ( ) : Organization
리턴 Pantheon\Terminus\Models\Organization

getSite() 공개 메소드

Retrieves the matching site from model members
public getSite ( string $site_id ) : Site
$site_id string ID or name of desired site
리턴 Site $membership->site

siteIsMember() 공개 메소드

Determines whether a site is a member of this collection
public siteIsMember ( Site $site ) : boolean
$site Site Site to determine membership of
리턴 boolean

프로퍼티 상세

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

protected string $collected_class
리턴 string

$organization 공개적으로 프로퍼티

public Organization,Pantheon\Terminus\Models $organization
리턴 Pantheon\Terminus\Models\Organization

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

protected bool $paged
리턴 boolean