Nextcloud PHP API (master)

Template
in package
implements JsonSerializable

FinalYes
Tags
since
21.0.0

Table of Contents

Interfaces

JsonSerializable

Properties

$fields  : array<int, Field>
$file  : File
$hasPreview  : bool
$previewUrl  : string|null
$templateId  : string
$templateType  : string

Methods

__construct()  : mixed
jsonSerialize()  : array{templateType: string, templateId: string, basename: string, etag: string, fileid: int, filename: string, lastmod: int, mime: string, size: int|float, type: string, hasPreview: bool, previewUrl: ?string, fields: list}
setCustomPreviewUrl()  : void
setFields()  : 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{templateType: string, templateId: string, basename: string, etag: string, fileid: int, filename: string, lastmod: int, mime: string, size: int|float, type: string, hasPreview: bool, previewUrl: ?string, fields: list}
Tags
since
21.0.0
Return values
array{templateType: string, templateId: string, basename: string, etag: string, fileid: int, filename: string, lastmod: int, mime: string, size: int|float, type: string, hasPreview: bool, previewUrl: ?string, fields: list}

setCustomPreviewUrl()

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

setFields()

public setFields(array<int, Field$fields) : void
Parameters
$fields : array<int, Field>
Tags
since
30.0.0

setHasPreview()

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

        
On this page

Search results