Exemple #1
0
    public function getFirstDate($return_mode = 'string') {
        if (!$dates = SeminarDB::getFirstDate($this->id)) {
            return false;
        }

        return DateFormatter::formatDateWithAllRooms(array('termin' => $dates), $return_mode);
    }
Exemple #2
0
 /**
  * Formats one single date into a nice format.
  * @static
  * @param $date SingleDate object
  * @param string $return_mode expected values are 'int', 'string' and 'export'. The default value is 'string'.
  * @return string
  */
 public static function formatDateAndRoom($date, $return_mode = 'string')
 {
     $dates = DateFormatter::wrapDateWithArray($date);
     return DateFormatter::formatDateWithAllRooms($dates, $return_mode);
 }