protected function getDurationTypeDropDownArray()
 {
     if ($this->model->getValueEvaluationType() == 'Date') {
         return TimeDurationUtil::getDateOnlyValueAndLabels();
     } elseif ($this->model->getValueEvaluationType() == 'DateTime') {
         return TimeDurationUtil::getValueAndLabels();
     } else {
         throw new NotSupportedException();
     }
 }
 protected static function renderExtraInfoContent(Autoresponder $autoresponder)
 {
     $operationValuesAndLabels = Autoresponder::getOperationTypeDropDownArray();
     $durationTypeValueAndLabels = TimeDurationUtil::getValueAndLabels();
     if (!isset($operationValuesAndLabels[$autoresponder->operationType])) {
         return;
     }
     if (!isset($durationTypeValueAndLabels[$autoresponder->fromOperationDurationType])) {
         return;
     }
     if ($autoresponder->fromOperationDurationInterval == 0) {
         return Zurmo::t('AutorespondersModule', 'Send immediately after {operation}', array('{operation}' => $operationValuesAndLabels[$autoresponder->operationType]));
     } else {
         $content = Zurmo::t('AutorespondersModule', 'Send {interval} {type} after {operation}', array('{interval}' => $autoresponder->fromOperationDurationInterval, '{type}' => $durationTypeValueAndLabels[$autoresponder->fromOperationDurationType], '{operation}' => $operationValuesAndLabels[$autoresponder->operationType]));
         return $content;
     }
 }
 protected function getDurationTypeDropDownArray()
 {
     return TimeDurationUtil::getValueAndLabels();
 }