getData(); switch ($column->getId()) { case 'name': switch (1) { case is_a($subscription, 'IndividualSubscription'): return array('label' => $subscription->getUserFullName()); case is_a($subscription, 'InstitutionalSubscription'): return array('label' => $subscription->getInstitutionName()); } assert(false); break; case 'email': assert(is_a($subscription, 'IndividualSubscription')); return array('label' => $subscription->getUserEmail()); case 'subscriptionType': return array('label' => $subscription->getSubscriptionTypeName()); case 'status': return array('label' => $subscription->getStatusString()); case 'dateStart': return array('label' => $subscription->getDateStart()); case 'dateEnd': return array('label' => $subscription->getDateEnd()); } assert(false); } } ?>