GroupsService
class GroupsService
Service used to do all kinds of stuff with groups and teams.
Properties
| protected CacheBackendInterface | $cacheBackend | The cache backend. |
|
| protected Connection | $connection | The database connection. |
|
| protected AccountInterface | $currentUser | The current user. |
|
| protected string | $getTeamsEndpoint | The default endpoint for getting a list of teams. |
|
| protected GraphService | $o365Graph | The o365.graph service. |
|
| protected array | $teams | List of all teams. |
Methods
Constructs a GroupsService object.
Generate a link to a team channel based on the ID.
Get all the available groups from teams.
Get a list of all groups in Microsoft 365.
Get the saved teams UUID from the database, or FALSE.
Save the teams UUID in the database.
Details
at line 72
__construct(GraphService $o365_graph, CacheBackendInterface $cacheBackend, AccountProxyInterface $accountProxy, Connection $connection)
Constructs a GroupsService object.
at line 167
bool|string
generateTeamChannelLink(int $gid)
Generate a link to a team channel based on the ID.
at line 89
array
getGroupsFromTeams()
Get all the available groups from teams.
at line 112
protected void
getTeamsFromGraph(bool|string $endpoint = FALSE)
Get a list of all groups in Microsoft 365.
at line 200
mixed
getTeamsUuidForGroup(int $gid, bool $onlyUuid = FALSE)
Get the saved teams UUID from the database, or FALSE.
at line 225
void
saveTeamsUuidForGroup(string $uuid, int $gid)
Save the teams UUID in the database.