A Generic PHP Class to handle calendar structures with events