Ampache
[ class tree: Ampache ] [ index: Ampache ] [ all elements ]

Class: Artist

Source Location: /lib/class/artist.class.php

Class Overview

database_object
   |
   --Artist

Artist Class


Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 25]
Artist Class



[ Top ]


Class Variables

$albums =

[line 31]



Tags:

access:  public

Type:   mixed


[ Top ]

$id =

[line 28]



Tags:

access:  public

Type:   mixed


[ Top ]

$name =

[line 29]



Tags:

access:  public

Type:   mixed


[ Top ]

$prefix =

[line 32]



Tags:

access:  public

Type:   mixed


[ Top ]

$songs =

[line 30]



Tags:

access:  public

Type:   mixed


[ Top ]

$_fake =  false

[line 35]



Tags:

access:  public

Type:   mixed


[ Top ]



Class Methods


static method build_cache [line 80]

static void build_cache( $ids, [ $extra = false])

this attempts to build a cache of the data from the passed albums all in one query



Tags:

access:  public


Parameters:

   $ids  
   $extra  

[ Top ]

static method construct_from_array [line 63]

static void construct_from_array( $data)

construct_from_array

This is used by the metadata class specifically but fills out a Artist object based on a key'd array, it sets $_fake to true




Tags:

access:  public


Parameters:

   $data  

[ Top ]

static method get_from_name [line 112]

static void get_from_name( $name)

get_from_name

This gets an artist object based on the artist name




Tags:

access:  public


Parameters:

   $name  

[ Top ]

constructor __construct [line 42]

Artist __construct( [ $id = ''])

Artist

Artist class, for modifing a artist Takes the ID of the artist and pulls the info from the db




Tags:

access:  public


Parameters:

   $id  

[ Top ]

method format [line 218]

void format( )

format

this function takes an array of artist information and reformats the relevent values so they can be displayed in a table for example it changes the title into a full link.




Tags:

access:  public


[ Top ]

method get_albums [line 131]

void get_albums( )

get_albums

gets the album ids that this artist is a part of




Tags:

access:  public


[ Top ]

method get_random_songs [line 168]

void get_random_songs( )

get_random_songs

Gets the songs from this artist in a random order




Tags:

access:  public


[ Top ]

method get_songs [line 151]

void get_songs( )

get_songs

gets the songs for this artist




Tags:

access:  public


[ Top ]

method update [line 255]

void update( $data)

update

This takes a key'd array of data and updates the current artist it will flag songs as neeed




Tags:

access:  public


Parameters:

   $data  

[ Top ]


Documentation generated on Thu, 12 Feb 2009 07:59:50 +0900 by phpDocumentor 1.4.2