Description for phpSkypeStatus

This class offers This class offers you all features of the SkypeWeb. You can get the status text in different languages, the status code and all status images.

for more information look at http://skype.com/share/buttons/status.html. The code is fully commented with phpDocumentor tags.

An example and API description is provided.

functions

setSkypeID($id)
- set the skypeid for a user to check

string getXML()
- returns the unprocessed xml/rdf data

string getText($lang)
- returns status text (in UTF-8 encoding) in specified language. defaults to english
supported languages:
Languagelang-code
Englishen
Deutschde
Francaisfr
italianit
polishpl
Japaneseja
Spanishes
Ptpt
Swedishse
Pt/brpt-br
zh, China, Zh/cnzh-cn
Honkong, Taiwan, Zh/twzh-tw

int getNum()
- get the status id
following status codes may be returned
IDStatusthis means
0UNKNOWNNot opted in or no data available.
1OFFLINEThe user is Offline
2ONLINEThe user is Online
3AWAYThe user is Away
4NOT AVAILABLEThe user is Not Available
5DO NOT DISTURBThe user is Do Not Disturb (DND)
6INVISIBLEThe user is Invisible or appears Offline
7SKYPE METhe user is in Skype Me mode

ressource getImageRessource($type)
- returns a php image ressource defined by type (defaults to smallicon)
- see getImagePNG($type)
- TODO at this moment, only supports english language images
typeimage style
balloonBalloon style
bigclassicBig Classic Style
smallclassicSmall Classic Style
smalliconSmall Icon (transparent background)
mediumiconMedium Icon
dropdown-whiteDropdown White Background
dropdown-transDropdown Transparent Background

void getImagePNG($type)
- outputs the statusimage as png to browser (defaults to smallicon)
- see getImageRessource($type) for options