/** * Gets the date. * Returns an empty string if the seminar record is a topic record. * Otherwise will return the date or a localized string "will be * announced" if there's no date set. * * Returns just one day if we take place on only one day. * Returns a date range if we take several days. * * @param string $dash the character or HTML entity used to separate start date and end date * * @return string the seminar date (or an empty string or a * localized message) */ public function getDate($dash = '–') { $result = ''; if ($this->getRecordPropertyInteger('object_type') != tx_seminars_Model_Event::TYPE_TOPIC) { $result = parent::getDate($dash); } return $result; }