Nextcloud PHP API (master)

ITeamManager

Tags
since
29.0.0

Table of Contents

Methods

getProvider()  : ITeamResourceProvider
Get a specific team resource provider by its id
getProviders()  : array<string|int, ITeamResourceProvider>
Get all providers that have registered as a team resource provider
getSharedWith()  : array<int, TeamResource>
Returns all team resources for a given team and user
getTeamsForResource()  : array<string|int, mixed>
Returns all teams for a given resource and user

Methods

getSharedWith()

Returns all team resources for a given team and user

public getSharedWith(string $teamId, string $userId) : array<int, TeamResource>
Parameters
$teamId : string
$userId : string
Tags
since
29.0.0
Return values
array<int, TeamResource>

getTeamsForResource()

Returns all teams for a given resource and user

public getTeamsForResource(string $providerId, string $resourceId, string $userId) : array<string|int, mixed>
Parameters
$providerId : string
$resourceId : string
$userId : string
Tags
since
29.0.0
Return values
array<string|int, mixed>

        
On this page

Search results