I am in process of finishng up a new class for phpVMS that details statistics for your VA. I have attached a screenie from my development server with the stats that are built so far. Anyone have any suggestions for anything else you think a VA would like to have stats for?
Total - Flights, Pilots, and Hours are already built into the phpVMS app. The rest come out of the new class I am building.
If you want, I can integrate this into the class which already exists - StatsData.class.php, for the next release. The user’s online will be included as well since there’s now session tracking.
That is returning an array of data which you then need to convert and display however you would like on your site. I use a module where for the case ‘stats’ I declare,
case 'stats':
Template::Set('toproutes', StatsData::TopRoutes(1));
Template::Set('topaircraft', StatsData::AircraftUsage(5));
Template::Show('stats_operations.tpl');
Then in my stats_operations.tpl to display the data I want to see for top aircraft ->
Cool. I’m going through the code, I will optimize it where I see, and also I’ll be returning values instead of echoing out (Any *Data classes should be returning data). I’ll post it once I do that for you to check out.
I’ve attached the latest StatsData (haven’t commited it yet). You can see some of the changes I made (mainly using the SUM() function, and using a column name on counts instead of * which is faster)
I’ll implement the pilots online, once that’s completed.