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

Class: Random

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

Class Overview


Random Class


Methods



Class Details

[line 29]
Random Class

All of the 'random' type events, elements, voodoo done by ampache is done by this class, there isn't a table for this class so most of it's functions are static




[ Top ]


Class Methods


static method advanced [line 231]

static void advanced( $data)

advanced

This processes the results of a post from a form and returns an array of song items that were returned from said randomness




Tags:

access:  public


Parameters:

   $data  

[ Top ]

static method album [line 45]

static void album( )

album

This returns the ID of a random album, nothing special




Tags:

access:  public


[ Top ]

static method artist [line 60]

static void artist( )

artist

This returns the ID of a random artist, nothing special here for now




Tags:

access:  public


[ Top ]

static method get_album [line 180]

static void get_album( $limit)

get_album

This looks at the last album played by the current user and picks something else in the same album




Tags:

access:  public


Parameters:

   $limit  

[ Top ]

static method get_artist [line 206]

static void get_artist( $limit)

get_artist

This looks at the last artist played and then randomly picks a song from the same artist




Tags:

access:  public


Parameters:

   $limit  

[ Top ]

static method get_default [line 134]

static void get_default( $limit)

get_default This just randomly picks a song at whim from all catalogs nothing special here...



Tags:

access:  public


Parameters:

   $limit  

[ Top ]

static method get_genre [line 154]

static void get_genre( $limit)

get_genre This looks at the last object played by the current user and then picks a song of the same genre at random...



Tags:

access:  public


Parameters:

   $limit  

[ Top ]

static method get_single_song [line 112]

static void get_single_song( $type)

get_single_song

This returns a single song pulled based on the passed random method




Tags:

access:  public


Parameters:

   $type  

[ Top ]

static method get_type_name [line 403]

static void get_type_name( $type)

get_type_name

This returns a 'purrty' name for the differnt random types




Tags:

access:  public


Parameters:

   $type  

[ Top ]

static method playlist [line 76]

static void playlist( )

playlist

This returns a random Playlist with songs little bit of extra logic require




Tags:

access:  public


[ Top ]

static method play_url [line 94]

static void play_url( $type)

play_url

This generates a random play url based on the passed type and returns it




Tags:

access:  public


Parameters:

   $type  

[ Top ]

static method validate_type [line 426]

static void validate_type( $type)

validiate_type

this validates the random type




Tags:

access:  public


Parameters:

   $type  

[ Top ]

constructor __construct [line 35]

Random __construct( )

Constructor

nothing to see here, move along




Tags:

access:  public


[ Top ]


Documentation generated on Thu, 12 Feb 2009 08:00:06 +0900 by phpDocumentor 1.4.2