PHP Class Pantheon\Terminus\Models\OrganizationUserMembership

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

Méthodes publiques

Свойство Type Description
$organization Organization
$user User

Protected Properties

Свойство Type Description
$user_data stdClass

Méthodes publiques

Méthode Description
__construct ( object $attributes = null, array $options = [] ) Object constructor
delete ( ) : Workflow Removes a user from this organization
getOrganization ( ) : Organization
getUser ( ) : User Get the user for this membership
serialize ( )
setRole ( string $role ) : Workflow Sets the user's role within this organization

Method Details

__construct() public méthode

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

delete() public méthode

Removes a user from this organization
public delete ( ) : Workflow
Résultat Workflow

getOrganization() public méthode

public getOrganization ( ) : Organization
Résultat Organization

getUser() public méthode

Get the user for this membership
public getUser ( ) : User
Résultat User

serialize() public méthode

public serialize ( )

setRole() public méthode

Sets the user's role within this organization
public setRole ( string $role ) : Workflow
$role string Role for this user to take in the organization
Résultat Workflow

Property Details

$organization public_oe property

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

$user public_oe property

public User,Pantheon\Terminus\Models $user
Résultat User

$user_data protected_oe property

protected stdClass $user_data
Résultat stdClass