deblan.tv/vendor/trinity/src/Trinity/Bundle/NewsletterBundle/Newsletter/ModelTwoContent.php
2016-06-20 11:37:14 +02:00

51 lines
1.4 KiB
PHP

<?php
namespace Trinity\Bundle\NewsletterBundle\Newsletter;
use Trinity\Bundle\NewsletterBundle\Model\Block;
use Trinity\Bundle\NewsletterBundle\Model\Newsletter;
class ModelTwoContent extends Newsletter
{
public function __construct($template = null)
{
parent::__construct(null !== $template ? $template : 'TrinityNewsletterBundle:Default:index.html.twig');
}
public function getConfiguration()
{
return $this->configuration
->setBlock('subject', 'Trinity\Bundle\NewsletterBundle\Form\Type\BlockType')
->setBlock('title', 'Trinity\Bundle\NewsletterBundle\Form\Type\BlockType')
->setBlock('subtitle', 'Trinity\Bundle\NewsletterBundle\Form\Type\BlockType')
->setBlock('content1', 'Trinity\Bundle\NewsletterBundle\Form\Type\TinymceAdvancedBlockType')
->setBlock('content2', 'Trinity\Bundle\NewsletterBundle\Form\Type\TinymceAdvancedBlockType')
;
}
public function getBlockContent1()
{
return $this->getBlock('content1');
}
public function setBlockContent1(Block $block)
{
return $this->setBlock($block);
}
public function getBlockContent2()
{
return $this->getBlock('content2');
}
public function setBlockContent2(Block $block)
{
return $this->setBlock($block);
}
public function getBlockContent3()
{
return $this->getBlock('content3');
}
}