PHP Class app\models\Artist

User: davidtang Date: 2/1/16 Time: 10:18 PM
Afficher le fichier Open project: phanan/koel Class Usage Examples

Protected Properties

Свойство Type Description
$guarded
$hidden

Méthodes publiques

Méthode Description
albums ( )
get ( string $name ) : Artist Get an Artist object from their name.
getContributedSongs ( ) : Illuminate\Database\Eloquent\Collection Get songs *contributed* (in compilation albums) by the artist.
getImageAttribute ( mixed $value ) : string | null Turn the image name into its absolute URL.
getInfo ( ) : array | false Get extra information about the artist from Last.fm.
getNameAttribute ( $value ) : string Sometimes the tags extracted from getID3 are HTML entity encoded.
getVarious ( ) : Artist Get the "Various Artists" object.
isUnknown ( )
isVarious ( )
songs ( )

Method Details

albums() public méthode

public albums ( )

get() public static méthode

If such is not found, a new artist will be created.
public static get ( string $name ) : Artist
$name string
Résultat Artist

getContributedSongs() public méthode

Get songs *contributed* (in compilation albums) by the artist.
public getContributedSongs ( ) : Illuminate\Database\Eloquent\Collection
Résultat Illuminate\Database\Eloquent\Collection

getImageAttribute() public méthode

Turn the image name into its absolute URL.
public getImageAttribute ( mixed $value ) : string | null
$value mixed
Résultat string | null

getInfo() public méthode

Get extra information about the artist from Last.fm.
public getInfo ( ) : array | false
Résultat array | false

getNameAttribute() public méthode

This makes sure they are always sane.
public getNameAttribute ( $value ) : string
$value
Résultat string

getVarious() public static méthode

Get the "Various Artists" object.
public static getVarious ( ) : Artist
Résultat Artist

isUnknown() public méthode

public isUnknown ( )

isVarious() public méthode

public isVarious ( )

songs() public méthode

public songs ( )

Property Details

$guarded protected_oe property

protected $guarded

$hidden protected_oe property

protected $hidden