phpvms / phpvms_v2

Virtual Airline Management (not maintained)
http://www.phpvms.net
BSD 3-Clause "New" or "Revised" License
41 stars 46 forks source link

StatsDataClass #41

Closed mark1million closed 13 years ago

mark1million commented 13 years ago

Build new queries to display for pilots active, inactive and annual leave / holiday.

nabeelio commented 13 years ago

You can do:

$pilots_list = PilotData::findPilots(array('p.retired' => VALUE OF STATUS));

All of those functions call back to the function above

nabeelio commented 13 years ago

There's also a new query function which a lot of the StatsData has been converted to use:

$pilot_count = StatsData::getTotalForCol(array(
        'table' => 'pilots',
        'column' => '*',
        'where' => array('retired' => RETIRED STATUS),
        )
    );