PHP class for generating semester names