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.
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:
Language | lang-code |
---|---|
English | en |
Deutsch | de |
Francais | fr |
italian | it |
polish | pl |
Japanese | ja |
Spanish | es |
Pt | pt |
Swedish | se |
Pt/br | pt-br |
zh, China, Zh/cn | zh-cn |
Honkong, Taiwan, Zh/tw | zh-tw |
int getNum()
- get the status id
following status codes may be returned
ID | Status | this means |
---|---|---|
0 | UNKNOWN | Not opted in or no data available. |
1 | OFFLINE | The user is Offline |
2 | ONLINE | The user is Online |
3 | AWAY | The user is Away |
4 | NOT AVAILABLE | The user is Not Available |
5 | DO NOT DISTURB | The user is Do Not Disturb (DND) |
6 | INVISIBLE | The user is Invisible or appears Offline |
7 | SKYPE ME | The 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
type | image style |
---|---|
balloon | Balloon style |
bigclassic | Big Classic Style |
smallclassic | Small Classic Style |
smallicon | Small Icon (transparent background) |
mediumicon | Medium Icon |
dropdown-white | Dropdown White Background |
dropdown-trans | Dropdown Transparent Background |
void getImagePNG($type)
- outputs the statusimage as png to browser (defaults to smallicon)
- see getImageRessource($type) for options