GroupsService
in package
Service used to do all kinds of stuff with groups and teams.
Table of Contents
- $cacheBackend : CacheBackendInterface
- The cache backend.
- $currentUser : AccountInterface
- The current user.
- $getTeamsEndpoint : string
- The default endpoint for getting a list of teams.
- $o365Graph : GraphService
- The o365.graph service.
- $teams : array<string|int, mixed>
- List of all teams.
- __construct() : mixed
- Constructs a GroupsService object.
- getGroupsFromTeams() : array<string|int, mixed>
- Get all the available groups from teams.
- getTeamsFromGraph() : mixed
- Get a list of all groups in Office 365.
Properties
$cacheBackend
The cache backend.
protected
CacheBackendInterface
$cacheBackend
$currentUser
The current user.
protected
AccountInterface
$currentUser
$getTeamsEndpoint
The default endpoint for getting a list of teams.
protected
string
$getTeamsEndpoint
= "/me/joinedTeams"
$o365Graph
The o365.graph service.
protected
GraphService
$o365Graph
$teams
List of all teams.
protected
array<string|int, mixed>
$teams
= []
Methods
__construct()
Constructs a GroupsService object.
public
__construct(GraphService $o365_graph, CacheBackendInterface $cacheBackend, AccountProxyInterface $accountProxy) : mixed
Parameters
- $o365_graph : GraphService
-
The o365.graph service.
- $cacheBackend : CacheBackendInterface
-
The cache backend.
- $accountProxy : AccountProxyInterface
-
The account proxy.
Return values
mixed —getGroupsFromTeams()
Get all the available groups from teams.
public
getGroupsFromTeams() : array<string|int, mixed>
Return values
array<string|int, mixed> —The list of available teams.
getTeamsFromGraph()
Get a list of all groups in Office 365.
protected
getTeamsFromGraph([false|string $endpoint = FALSE ]) : mixed
Parameters
- $endpoint : false|string = FALSE
-
The endpoint string containing the skipToken or FALSE for default.