Nextcloud PHP API (master)

FileShaped
in package

FinalYes

Data object for file-shaped output entries

Tags
since
35.0.0
Attributes
#[Consumable]
$since: '35.0.0'

Table of Contents

Properties

$data  : string
$extension  : string
$shapeType  : EShapeType

Methods

__construct()  : mixed
getData()  : string
getExtension()  : string
getShapeType()  : EShapeType
sanitizeExtension()  : string

Properties

Methods

__construct()

public __construct(EShapeType $shapeType, string $data[, string $extension = '' ]) : mixed
Parameters
$shapeType : EShapeType
$data : string
$extension : string = ''

(optional)

Tags
since
35.0.0

getData()

public getData() : string
Tags
since
35.0.0
Return values
string

getExtension()

public getExtension() : string
Tags
since
35.0.0
Return values
string

sanitizeExtension()

public static sanitizeExtension(string $ext) : string
Parameters
$ext : string
Tags
since
35.0.0
Return values
string
On this page

Search results