PHP Class App\services\Download

Afficher le fichier Open project: phanan/koel Class Usage Examples

Méthodes publiques

Méthode Description
from ( Song | Collection | Album | Artist | Playlist $mixed ) : string Generic method to generate a download archive from various source types.

Méthodes protégées

Méthode Description
fromAlbum ( Album $album )
fromArtist ( Artist $artist )
fromMultipleSongs ( Collection $songs ) : string Generate a downloadable path of multiple songs in zip format.
fromPlaylist ( Playlist $playlist )
fromSong ( Song $song ) : string Generate the downloadable path for a song.

Method Details

from() public méthode

Generic method to generate a download archive from various source types.
public from ( Song | Collection | Album | Artist | Playlist $mixed ) : string
$mixed app\models\Song | Collection | app\models\Album | app\models\Artist | app\models\Playlist
Résultat string Full path to the generated archive

fromAlbum() protected méthode

protected fromAlbum ( Album $album )
$album app\models\Album

fromArtist() protected méthode

protected fromArtist ( Artist $artist )
$artist app\models\Artist

fromMultipleSongs() protected méthode

Generate a downloadable path of multiple songs in zip format.
protected fromMultipleSongs ( Collection $songs ) : string
$songs Illuminate\Support\Collection
Résultat string

fromPlaylist() protected méthode

protected fromPlaylist ( Playlist $playlist )
$playlist app\models\Playlist

fromSong() protected méthode

Generate the downloadable path for a song.
protected fromSong ( Song $song ) : string
$song app\models\Song
Résultat string