You can do this without edit names in the database simply by using SELECT whatever FROM edit WHERE type IN (SELECT DISTINCT type FROM edit), and calling the stat edit.count.{type-number}. For the display, you just use the EditRegistry to look up the edit type and it has an "edit_name" function.
Oliver Charles added a comment - 14/Feb/12 11:04 AM You can do this without edit names in the database simply by using SELECT whatever FROM edit WHERE type IN (SELECT DISTINCT type FROM edit), and calling the stat edit.count.{type-number}. For the display, you just use the EditRegistry to look up the edit type and it has an "edit_name" function.
Ian McEwen added a comment - 14/Feb/12 12:21 PM Already doing the former for collection; the concern was figuring out the names for display. I'll look into this EditRegistry thing, then, thanks.
You can do this without edit names in the database simply by using SELECT whatever FROM edit WHERE type IN (SELECT DISTINCT type FROM edit), and calling the stat edit.count.{type-number}. For the display, you just use the EditRegistry to look up the edit type and it has an "edit_name" function.