UserGroup
class UserGroup (View source)
A user group as stored in user_groups.
Represents a group of users with shared permissions via a permission template
Methods
__construct(int|null $id, string $name, string|null $description, int $permTemplId, int|null $createdBy = null, string|null $createdAt = null, string|null $updatedAt = null, int|null $maxZones = null)
No description
int|null
getId()
No description
string
getName()
No description
string|null
getDescription()
No description
int
getPermTemplId()
No description
int|null
getCreatedBy()
No description
string|null
getCreatedAt()
No description
string|null
getUpdatedAt()
No description
int|null
getMaxZones()
The group's own zone limit: null when none is set, 0 when it may own no zones
Details
__construct(int|null $id, string $name, string|null $description, int $permTemplId, int|null $createdBy = null, string|null $createdAt = null, string|null $updatedAt = null, int|null $maxZones = null)
No description
int|null
getId()
No description
string
getName()
No description
string|null
getDescription()
No description
int
getPermTemplId()
No description
int|null
getCreatedBy()
No description
string|null
getCreatedAt()
No description
string|null
getUpdatedAt()
No description
int|null
getMaxZones()
The group's own zone limit: null when none is set, 0 when it may own no zones
static UserGroup
create(string $name, int $permTemplId, string|null $description = null, int|null $createdBy = null)
Create a new UserGroup instance
UserGroup
update(string|null $name = null, string|null $description = null, int|null $permTemplId = null)
Update group properties