Nextcloud PHP API (master)

IManager

Interface IManager

Tags
since
18.0.0

Table of Contents

Methods

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
getEditors()  : array<string|int, IEditor>
getToken()  : IToken
Get the token details for a given token
isEnabled()  : bool
Check if direct editing is enabled
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

getEditors()

public getEditors() : array<string|int, IEditor>
Tags
since
24.0.0
Return values
array<string|int, IEditor>

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

isEnabled()

Check if direct editing is enabled

public isEnabled() : bool
Tags
since
20.0.0
Return values
bool

registerDirectEditor()

Register a new editor

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

        
On this page

Search results