Nextcloud PHP API (stable19)

IManager

Interface IManager

Tags
since
18.0.0

Table of Contents

cleanup()  : int
Cleanup expired tokens
create()  : string
Create a new token based on the file path and editor details
edit()  : Response
Open the editing page for a provided token
getToken()  : IToken
Get the token details for a given token
registerDirectEditor()  : void
Register a new editor

Methods

cleanup()

Cleanup expired tokens

public cleanup() : int
Tags
since
18.0.0
Return values
int

number of deleted tokens

create()

Create a new token based on the file path and editor details

public create(string $path, string $editorId, string $creatorId[, null $templateId = null ]) : string
Parameters
$path : string
$editorId : string
$creatorId : string
$templateId : null = null
Tags
since
18.0.0
throws
NotPermittedException
throws
RuntimeException
Return values
string

edit()

Open the editing page for a provided token

public edit(string $token) : Response
Parameters
$token : string
Tags
since
18.0.0
Return values
Response

getToken()

Get the token details for a given token

public getToken(string $token) : IToken
Parameters
$token : string
Tags
since
18.0.0
Return values
IToken

registerDirectEditor()

Register a new editor

public registerDirectEditor(IEditor $directEditor) : void
Parameters
$directEditor : IEditor
Tags
since
18.0.0

Search results