BBuchanan Posted April 16, 2011 Report Posted April 16, 2011 Something that might be quick and easy: (I hope it is) Is there a way to group awards ( or add groups) to later sort them out? Quote
Moderators mark1million Posted April 16, 2011 Moderators Report Posted April 16, 2011 You can add then as group names like i have, So all event awards start with Events all flight awards start Flight all exams start Exams etc then all you need to do is order the output in the awards.dataclass.php file. /** * Get all awards * * @return mixed array of objects * */ public static function GetAllAwards() { $sql = 'SELECT * FROM ' . TABLE_PREFIX . 'awards ORDER BY name ASC'; return DB::get_results($sql); } Quote
BBuchanan Posted April 17, 2011 Author Report Posted April 17, 2011 You can add then as group names like i have, So all event awards start with Events all flight awards start Flight all exams start Exams etc then all you need to do is order the output in the awards.dataclass.php file. /** * Get all awards * * @return mixed array of objects * */ public static function GetAllAwards() { $sql = 'SELECT * FROM ' . TABLE_PREFIX . 'awards ORDER BY name ASC'; return DB::get_results($sql); } Thank you. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.