Nextcloud PHP API (master)

TeamResource
in package
implements JsonSerializable

Tags
since
29.0.0

Table of Contents

Interfaces

JsonSerializable

Properties

$iconEmoji  : string|null
$iconSvg  : string|null
$iconURL  : string|null
$label  : string
$resourceId  : string
$teamResourceProvider  : ITeamResourceProvider
$url  : string

Methods

__construct()  : mixed
getIconEmoji()  : string|null
Emoji show next to the name for the resource
getIconSvg()  : string|null
Svg icon to show next to the name for the resource
getIconURL()  : string|null
Image url of the icon to show next to the name for the resource
getId()  : string
Unique id of the resource (e.g. primary key id)
getLabel()  : string
User visible label when listing resources
getProvider()  : ITeamResourceProvider
Returns the provider details for the current resource
getUrl()  : string
Absolute url to navigate the user to the resource
jsonSerialize()  : array<string|int, mixed>

Properties

Methods

__construct()

public __construct(ITeamResourceProvider $teamResourceProvider, string $resourceId, string $label, string $url[, string|null $iconSvg = null ][, string|null $iconURL = null ][, string|null $iconEmoji = null ]) : mixed
Parameters
$teamResourceProvider : ITeamResourceProvider
$resourceId : string
$label : string
$url : string
$iconSvg : string|null = null
$iconURL : string|null = null
$iconEmoji : string|null = null
Tags
since
29.0.0

getIconEmoji()

Emoji show next to the name for the resource

public getIconEmoji() : string|null

From all icons the first one returning not null will be picked in order: iconEmoji, iconSvg, iconUrl

Tags
since
29.0.0
Return values
string|null

getIconSvg()

Svg icon to show next to the name for the resource

public getIconSvg() : string|null

From all icons the first one returning not null will be picked in order: iconEmoji, iconSvg, iconUrl

Tags
since
29.0.0
Return values
string|null

getIconURL()

Image url of the icon to show next to the name for the resource

public getIconURL() : string|null

From all icons the first one returning not null will be picked in order: iconEmoji, iconSvg, iconUrl

Tags
since
29.0.0
Return values
string|null

getId()

Unique id of the resource (e.g. primary key id)

public getId() : string
Tags
since
29.0.0
Return values
string

getLabel()

User visible label when listing resources

public getLabel() : string
Tags
since
29.0.0
Return values
string

getUrl()

Absolute url to navigate the user to the resource

public getUrl() : string
Tags
since
29.0.0
Return values
string

jsonSerialize()

public jsonSerialize() : array<string|int, mixed>
Tags
since
29.0.0
Return values
array<string|int, mixed>

        
On this page

Search results