<?php
/**
 * @copyright (c) Kufer Software GmbH, Loisachstrasse 4, D-84453 Mühldorf
 */


namespace Kufer\KuferTools\Ausgaben\SammelEMail\EmailTasks;

class EMailSenderAnTeilnehmer extends EmailSender
{
 
  
  public function isUploadFault() {
    if (isset($this->uploadFiles)) {
      return \KontaktUserAPI::checkUploadStatus($this->uploadFiles) != '';
    } 
    return false;
  }
  

  
  public function getAttachStrategy($pToolId = '', $pIsTnListAnhang = false) {
   
    if (isset($this->uploadFiles))
      return new \FileAttachmentStrategy($this->uploadFiles);
  } 
  
 
  public function deleteAnhangFiles() {
    if (isset($this->uploadFiles))
      \UploadOperations::delUploadedFiles($this->uploadFiles);
  }
  

  
  protected function getUserBez(){
    return 'Teilnehmer';
  }
}