Documentation

UploadProcessor
in package

Table of Contents

$id3  : getID3
__construct()  : mixed
parse()  : mixed
checkIfUnique()  : mixed
createBaseMediaObject()  : Media
Create the base media object for the uploaded file This method only sets some default properties and does not do any saniziting or processing yet.
getDuration()  : int
Calculates the duration (in seconds) of a file
parseTags()  : array<string|int, mixed>

Properties

Methods

createBaseMediaObject()

Create the base media object for the uploaded file This method only sets some default properties and does not do any saniziting or processing yet.

private createBaseMediaObject(Upload $upload) : Media
Parameters
$upload : Upload
Return values
Media

getDuration()

Calculates the duration (in seconds) of a file

private getDuration(array<string|int, mixed> $id3info) : int
Parameters
$id3info : array<string|int, mixed>
Return values
int

parseTags()

private parseTags(array<string|int, mixed> $id3info) : array<string|int, mixed>
Parameters
$id3info : array<string|int, mixed>
Return values
array<string|int, mixed>

Search results