PHP Class Pantheon\Terminus\Collections\OrganizationSiteMemberships

Inheritance: extends TerminusCollection
Afficher le fichier Open project: pantheon-systems/terminus Class Usage Examples

Méthodes publiques

Свойство Type Description
$organization Pantheon\Terminus\Models\Organization

Protected Properties

Свойство Type Description
$collected_class string
$paged boolean

Méthodes publiques

Méthode Description
__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

Method Details

__construct() public méthode

Instantiates the collection
public __construct ( array $options = [] ) : OrganizationSiteMemberships
$options array To be set
Résultat OrganizationSiteMemberships

create() public méthode

Adds a site to this organization
public create ( Site $site ) : Workflow
$site Site Site object of site to add to this organization
Résultat Workflow

get() public méthode

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
Résultat OrganizationSiteMembership

getOrganization() public méthode

public getOrganization ( ) : Organization
Résultat Pantheon\Terminus\Models\Organization

getSite() public méthode

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

siteIsMember() public méthode

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

Property Details

$collected_class protected_oe property

protected string $collected_class
Résultat string

$organization public_oe property

public Organization,Pantheon\Terminus\Models $organization
Résultat Pantheon\Terminus\Models\Organization

$paged protected_oe property

protected bool $paged
Résultat boolean