WoWClass is my second useful PHP class. It retrieves information from the new Armory part of the WoW site.
It has many functions to retrieve character data.
Heres a list of functions:
http://www.files.uk.to/uploads/21989list.txt
To initialise it you would use
So it would be like this for example:PHP Code:<?php
include(PATH TO PHP FILE);
$wow = new WoWClass(COUNTRY, REALM, NAME);
?>
The country part is either eu or usPHP Code:<?php
include('WoWClass.php');
$wow = new WoWClass('eu', 'Deathwing', 'Tyber');
?>
Then to use a function you would do something like this:
That would output the race of your character (Human, Troll, etc.)PHP Code:<?php
include('WoWClass.php');
$wow = new WoWClass('eu', 'Deathwing', 'Tyber');
echo $wow->charRace();
?>
Another function is the charActive() function, it checks to see if the character is active so it can retrieve the data.
Here is something I made using this:PHP Code:if($wow->charActive()){
//Do things
}else{
//Do things
}
http://www.thomas.uk.to/wow
(NOTE: Hunteer and Tyber are not my chars, I am just using them as an example)
If you want things added to WoWClass or if you do not understand post here please.
Download:
http://www.files.uk.to/uploads/11649WoWClass.zip






Reply With Quote
well done


