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

Class: AmpacheRSS

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

Class Overview


AmpacheRSS Class


Variables

Methods



Class Details

[line 28]
AmpacheRSS Class

This is not currently used by the stable version of ampache, really here for future use and due to the fact it was back-ported from /trunk




[ Top ]


Class Variables

$data =

[line 31]



Tags:

access:  public

Type:   mixed


[ Top ]



Class Methods


static method get_display [line 111]

static void get_display( [ $type = 'now_playing'])

get_display

This dumps out some html and an icon for the type of rss that we specify




Tags:

access:  public


Parameters:

   $type  

[ Top ]

static method load_now_playing [line 129]

static void load_now_playing( )

load_now_playing

This loads in the now playing information. This is just the raw data with key=>value pairs that could be turned into an xml document if we so wished




Tags:

access:  public


[ Top ]

static method load_recently_played [line 171]

static void load_recently_played( )

load_recently_played

This loads in the recently played information and formats it up real nice like




Tags:

access:  public


[ Top ]

static method pubdate_now_playing [line 156]

static void pubdate_now_playing( )

pubdate_now_playing

this is the pub date we should use for the now playing information, this is a little specific as it uses the 'newest' expire we can find




Tags:

access:  public


[ Top ]

static method pubdate_recently_played [line 229]

static void pubdate_recently_played( )

pubdate_recently_played

This just returns the 'newest' recently played entry




Tags:

access:  public


[ Top ]

static method validate_type [line 94]

static void validate_type( $type)

validate_type

this returns a valid type for an rss feed, if the specified type is invalid it returns a default value




Tags:

access:  public


Parameters:

   $type  

[ Top ]

constructor __construct [line 37]

AmpacheRSS __construct( $type)

Constructor

This takes a flagged.id and then pulls in the information for said flag entry




Tags:

access:  public


Parameters:

   $type  

[ Top ]

method get_description [line 83]

void get_description( )

get_description

This returns the standardized description for the rss feed based on this->type




Tags:

access:  public


[ Top ]

method get_title [line 68]

void get_title( )

get_title

This returns the standardized title for the rss feed based on this->type




Tags:

access:  public


[ Top ]

method get_xml [line 48]

void get_xml( )

get_xml

This returns the xmldocument for the current rss type, it calls a sub function that gathers the data and then uses the xmlDATA class to build the document




Tags:

access:  public


[ Top ]


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