Class Session

Description

Stores information of a last.fm session.

Located in /src/Session.php (line 9)


	
			
Method Summary
static Session fromSimpleXMLElement ( $xml)
Session __construct (string $name, string $key, boolean $subscriber)
string getKey ()
string getName ()
boolean isSubscriber ()
Methods
static method fromSimpleXMLElement (line 81)

Create a Session object from a SimpleXMLElement.

  • return: A Session object.
  • access: public
static Session fromSimpleXMLElement ( $xml)
  • SimpleXMLElement $xml: A SimpleXMLElement.
Constructor __construct (line 39)

Create a Session object.

  • access: public
Session __construct (string $name, string $key, boolean $subscriber)
  • string $name: Session username.
  • string $key: Session key.
  • boolean $subscriber: User is subscriber.
getKey (line 59)

Returns the session key.

  • return: A session key.
  • access: public
string getKey ()
getName (line 50)

Returns the session username.

  • return: A last.fm username.
  • access: public
string getName ()
isSubscriber (line 68)

Returns if the user is a subscriber.

  • return: true if the user is a subscriber, otherwise false.
  • access: public
boolean isSubscriber ()

Documentation generated on Mon, 22 Dec 2008 16:57:42 +0100 by phpDocumentor 1.4.1