Nextcloud PHP API (master)

Template
in package
implements JsonSerializable

FinalYes
Tags
since
21.0.0

Table of Contents

Interfaces

JsonSerializable

Properties

$file  : File
$hasPreview  : bool
$previewUrl  : string|null
$templateId  : string
$templateType  : string

Methods

__construct()  : mixed
jsonSerialize()  : array<string|int, mixed>
setCustomPreviewUrl()  : void
setHasPreview()  : void

Properties

$hasPreview

private bool $hasPreview = false

$previewUrl

private string|null $previewUrl = null

$templateType

private string $templateType

Methods

__construct()

public __construct(string $templateType, string $templateId, File $file) : mixed
Parameters
$templateType : string
$templateId : string
$file : File
Tags
since
21.0.0

jsonSerialize()

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

setCustomPreviewUrl()

public setCustomPreviewUrl(string $previewUrl) : void
Parameters
$previewUrl : string
Tags
since
21.0.0

setHasPreview()

public setHasPreview(bool $hasPreview) : void
Parameters
$hasPreview : bool
Tags
since
21.0.0

        
On this page

Search results