A group entity.
Note: When delete() is called all descendants of this group will also be deleted.
Properties:
- int $this->guid The GUID of the group.
- string $this->groupname The group's groupname.
- string $this->name The group's name.
- string $this->email The group's email address.
- string $this->avatar The group's avatar URL. (Use getAvatar() to support Gravatar.)
- string $this->phone The group's telephone number.
- string $this->addressType The group's address type. "us" or "international".
- string $this->addressStreet The group's address line 1 for US addresses.
- string $this->addressStreet2 The group's address line 2 for US addresses.
- string $this->addressCity The group's city for US addresses.
- string $this->addressState The group's state abbreviation for US addresses.
- string $this->addressZip The group's ZIP code for US addresses.
- string $this->addressInternational The group's full address for international addresses.
- Group $this->parent The group's parent.
- User|null $this->user If generate_primary is on, this will be the user who generated this group.
- Author
- Hunter Perrin hperr.nosp@m.in@g.nosp@m.mail..nosp@m.com
- Copyright
- SciActive.com
- See also
- http://tilmeld.org/
Definition at line 49 of file Group.php.
Tilmeld\Entities\Group::getLevel |
( |
| ) |
|
Get the number of parents the group has.
If the group is a top level group, this will return 0. If it is a child of a top level group, this will return 1. If it is a grandchild of a top level group, this will return 2, and so on.
- Returns
- int The level of the group.
Definition at line 337 of file Group.php.