Nextcloud PHP API (master)

ConversionMimeProvider
in package
implements JsonSerializable

A tuple-like object representing both an original and target MIME type for a file conversion

Tags
since
31.0.0

Table of Contents

Interfaces

JsonSerializable

Properties

$displayName  : string
$extension  : string
$from  : string
$to  : string

Methods

__construct()  : mixed
getDisplayName()  : string
getExtension()  : string
getFrom()  : string
getTo()  : string
jsonSerialize()  : array{from: string, to: string, extension: string, displayName: string}

Properties

Methods

__construct()

public __construct(string $from, string $to, string $extension, string $displayName) : mixed
Parameters
$from : string

The source MIME type of a file

$to : string

The target MIME type for the file

$extension : string

The file extension for the target MIME type (e.g. 'png')

$displayName : string

The human-readable name of the target MIME type (e.g. 'Image (.png)')

Tags
since
31.0.0

jsonSerialize()

public jsonSerialize() : array{from: string, to: string, extension: string, displayName: string}
Tags
since
31.0.0
Return values
array{from: string, to: string, extension: string, displayName: string}

        
On this page

Search results