Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
67 changes: 67 additions & 0 deletions includes/og.membership.inc
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,73 @@
* empty functions.
*/
class OgMembership extends Entity {

/**
* The membership ID.
*
* @var integer
*/
public $id;

/**
* The membership type.
*
* @var string
*/
public $type;

/**
* The entity ID.
*
* @var integer
*/
public $etid;

/**
* The entity type.
*
* @var string
*/
public $entity_type;

/**
* The group's unique ID.
*
* @var integer
*/
public $gid;

/**
* The group's entity type (e.g. node, comment, etc).
*
* @var string
*/
public $group_type;

/**
* The state of the group content.
*
* @var string
*/
public $state;

/**
* The name of the field holding the group ID.
*
* The name of the field holding the group ID, the OG memebership is
* associated with., the OG memebership is associated with.
*
* @var string
*/
public $field_name;

/**
* The language of this membership.
*
* @var string
*/
public $language;

/**
* Implements EntityInterface::id().
*/
Expand Down
39 changes: 39 additions & 0 deletions includes/og.membership_type.inc
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,48 @@
*/
class OgMembershipType extends Entity {

/**
* Primary Key: Numeric group membership type ID.
*
* @var integer
*/
public $id;

/**
* The unified identifier for a group membership type.
*
* @var $string
*/
public $name;

/**
* Description for this group membership type.
*
* @var string
*/
public $description = '';

/**
* The name of the providing module if the entity has been defined in code.
*
* @var string
*/
public $module;

/**
* The language of this membership type.
*
* @var string
*/
public $language;

/**
* The exportable status of the entity.
*
* @var bool
*/
public $status;

public function id() {
return isset($this->id) ? $this->id : NULL;
}
Expand Down