Exemple #1
0
 /**
  * Converts Opus_Date into string depending on current language.
  * @param Opus_Date $date Date
  * @return Date string for current language
  */
 public function getDateString($date)
 {
     // Protect against invalid dates
     if (!is_null($date) && $date->isValid()) {
         $dateFormat = $this->__validator->getDateFormat();
         $zendDate = $date->getZendDate();
         return $zendDate->get($dateFormat);
     } else {
         return null;
     }
 }