Ejemplo n.º 1
0
 /**
  * Returns the requested field from the given registration. If the field is a DateTime object,
  * a formatted date string is returned
  *
  * @param \DERHANSEN\SfEventMgt\Domain\Model\Registration $registration
  * @param string $field
  * @return string
  */
 protected function getFieldValue($registration, $field)
 {
     $value = $registration->_getCleanProperty($field);
     if ($value instanceof \DateTime) {
         $value = $value->format('d.m.Y');
     }
     return $value;
 }