PHP 클래스 App\services\Download

파일 보기 프로젝트 열기: phanan/koel 1 사용 예제들

공개 메소드들

메소드 설명
from ( Song | Collection | Album | Artist | Playlist $mixed ) : string Generic method to generate a download archive from various source types.

보호된 메소드들

메소드 설명
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.

메소드 상세

from() 공개 메소드

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
리턴 string Full path to the generated archive

fromAlbum() 보호된 메소드

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

fromArtist() 보호된 메소드

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

fromMultipleSongs() 보호된 메소드

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

fromPlaylist() 보호된 메소드

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

fromSong() 보호된 메소드

Generate the downloadable path for a song.
protected fromSong ( Song $song ) : string
$song app\models\Song
리턴 string