Nextcloud PHP API (master)

ICloudIdManager

Interface for resolving federated cloud ids

Tags
since
12.0.0

Table of Contents

Methods

getCloudId()  : ICloudId
Get the cloud id for a remote user
isValidCloudId()  : bool
Check if the input is a correctly formatted cloud id
removeProtocolFromUrl()  : string
remove scheme/protocol from an url
resolveCloudId()  : ICloudId

Methods

getCloudId()

Get the cloud id for a remote user

public getCloudId(string $user, string|null $remote) : ICloudId
Parameters
$user : string
$remote : string|null

(optional since 23.0.0 for local users)

Tags
since
12.0.0
Return values
ICloudId

isValidCloudId()

Check if the input is a correctly formatted cloud id

public isValidCloudId(string $cloudId) : bool
Parameters
$cloudId : string
Tags
since
12.0.0
Return values
bool

removeProtocolFromUrl()

remove scheme/protocol from an url

public removeProtocolFromUrl(string $url) : string
Parameters
$url : string
Tags
since
28.0.0
Return values
string

resolveCloudId()

public resolveCloudId(string $cloudId) : ICloudId
Parameters
$cloudId : string
Tags
throws
InvalidArgumentException
since
12.0.0
Return values
ICloudId

        
On this page

Search results