MDL-48679 gradebook: helper methods for grade publishing