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
$id3
private
getID3
$id3
Methods
__construct()
public
__construct() : mixed
Return values
mixed —parse()
public
parse(Upload $upload) : mixed
Parameters
- $upload : Upload
Tags
Return values
mixed —checkIfUnique()
private
checkIfUnique(Media $media) : mixed
Parameters
- $media : Media
Tags
Return values
mixed —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>