HumHub Documentation (unofficial)

FormatList
in package

Holds a list of image formats.

Tags
since
1.3.0

Table of Contents

Properties

$formats  : array<string|int, Format>

Methods

__construct()  : mixed
find()  : Format|null
Get a format given its ID.
getAll()  : array<string|int, Format>
getAllIDs()  : array<string|int, string>

Properties

Methods

__construct()

public __construct(array<string|int, mixed> $formats) : mixed
Parameters
$formats : array<string|int, mixed>

find()

Get a format given its ID.

public find(Format|string $format) : Format|null
Parameters
$format : Format|string

the format (a Format instance of a format ID)

Return values
Format|null

getAllIDs()

public getAllIDs() : array<string|int, string>
Return values
array<string|int, string>

        
On this page

Search results