PHP Класс app\models\Artist

User: davidtang Date: 2/1/16 Time: 10:18 PM
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$guarded
$hidden

Открытые методы

Метод Описание
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 ( )

Описание методов

albums() публичный Метод

public albums ( )

get() публичный статический Метод

If such is not found, a new artist will be created.
public static get ( string $name ) : Artist
$name string
Результат Artist

getContributedSongs() публичный Метод

Get songs *contributed* (in compilation albums) by the artist.
public getContributedSongs ( ) : Illuminate\Database\Eloquent\Collection
Результат Illuminate\Database\Eloquent\Collection

getImageAttribute() публичный Метод

Turn the image name into its absolute URL.
public getImageAttribute ( mixed $value ) : string | null
$value mixed
Результат string | null

getInfo() публичный Метод

Get extra information about the artist from Last.fm.
public getInfo ( ) : array | false
Результат array | false

getNameAttribute() публичный Метод

This makes sure they are always sane.
public getNameAttribute ( $value ) : string
$value
Результат string

getVarious() публичный статический Метод

Get the "Various Artists" object.
public static getVarious ( ) : Artist
Результат Artist

isUnknown() публичный Метод

public isUnknown ( )

isVarious() публичный Метод

public isVarious ( )

songs() публичный Метод

public songs ( )

Описание свойств

$guarded защищенное свойство

protected $guarded

$hidden защищенное свойство

protected $hidden