39 lines
695 B
PHP
39 lines
695 B
PHP
<?php
|
|
|
|
namespace KupShop\DevelopmentBundle\View;
|
|
|
|
use KupShop\DevelopmentBundle\MailArchive;
|
|
use KupShop\KupShopBundle\Views\View;
|
|
|
|
class MailDetailView extends View
|
|
{
|
|
protected string $smartyFallback = 'blank';
|
|
/**
|
|
* @var MailArchive
|
|
*/
|
|
private $archive;
|
|
|
|
public function __construct(MailArchive $archive)
|
|
{
|
|
$this->archive = $archive;
|
|
}
|
|
|
|
/**
|
|
* @param string $template
|
|
*/
|
|
protected $template = 'mail/mailDetail.tpl';
|
|
private $id;
|
|
|
|
public function setId($id)
|
|
{
|
|
$this->id = $id;
|
|
}
|
|
|
|
public function getBodyVariables()
|
|
{
|
|
$body = $this->archive->getArchive($this->id);
|
|
|
|
return $body;
|
|
}
|
|
}
|