PHP Class Pantheon\Terminus\Models\Organization

Inheritance: extends TerminusModel, implements League\Container\ContainerAwareInterface, use trait League\Container\ContainerAwareTrait
Exibir arquivo Open project: pantheon-systems/terminus Class Usage Examples

Public Properties

Property Type Description
$site_memberships Pantheon\Terminus\Collections\OrganizationSiteMemberships
$user_memberships Pantheon\Terminus\Collections\OrganizationUserMemberships
$workflows Pantheon\Terminus\Collections\Workflows

Public Methods

Method Description
getFeature ( string $feature ) : mixed | null Returns a specific organization feature value
getName ( ) : string Get the human-readable name of the organization.
getSiteMemberships ( ) : OrganizationSiteMemberships
getSites ( ) : Site[] Retrieves organization sites
getUserMemberships ( ) : OrganizationUserMemberships
getUsers ( ) : User[] Retrieves organization users
getWorkflows ( ) : Workflows
serialize ( ) : array Formats the Organization object into an associative array for output

Method Details

getFeature() public method

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

getName() public method

Get the human-readable name of the organization.
public getName ( ) : string
return string

getSiteMemberships() public method

public getSiteMemberships ( ) : OrganizationSiteMemberships
return Pantheon\Terminus\Collections\OrganizationSiteMemberships

getSites() public method

Retrieves organization sites
public getSites ( ) : Site[]
return Site[]

getUserMemberships() public method

public getUserMemberships ( ) : OrganizationUserMemberships
return Pantheon\Terminus\Collections\OrganizationUserMemberships

getUsers() public method

Retrieves organization users
public getUsers ( ) : User[]
return User[]

getWorkflows() public method

public getWorkflows ( ) : Workflows
return Pantheon\Terminus\Collections\Workflows

serialize() public method

Formats the Organization object into an associative array for output
public serialize ( ) : array
return array Associative array of data for output string id The UUID of the organization string name The name of the organization

Property Details

$site_memberships public_oe property

public OrganizationSiteMemberships,Pantheon\Terminus\Collections $site_memberships
return Pantheon\Terminus\Collections\OrganizationSiteMemberships

$user_memberships public_oe property

public OrganizationUserMemberships,Pantheon\Terminus\Collections $user_memberships
return Pantheon\Terminus\Collections\OrganizationUserMemberships

$workflows public_oe property

public Workflows,Pantheon\Terminus\Collections $workflows
return Pantheon\Terminus\Collections\Workflows