deblan.tv/vendor/trinity/src/Trinity/Bundle/ContentManagerBundle/Page/DefaultPage.php
2015-03-02 21:57:49 +01:00

57 lines
1.6 KiB
PHP

<?php
namespace Trinity\Bundle\ContentManagerBundle\Page;
use Trinity\Bundle\ContentManagerBundle\Model\Page;
use Trinity\Bundle\ContentManagerBundle\Model\SeoPageInterface;
use Trinity\Bundle\ContentManagerBundle\Model\Block;
class DefaultPage extends Page implements SeoPageInterface
{
public function __construct($template = null)
{
parent::__construct(null !== $template ? $template : 'TrinityContentManagerBundle::default.html.twig');
}
public function getConfiguration()
{
return $this->configuration
->setBlock('title', 'Trinity\Bundle\ContentManagerBundle\Form\Type\BlockType')
->setBlock('subtitle', 'Trinity\Bundle\ContentManagerBundle\Form\Type\BlockType')
->setBlock('content1', 'Trinity\Bundle\ContentManagerBundle\Form\Type\TinymceAdvancedBlockType')
->setBlock('content2', 'Trinity\Bundle\ContentManagerBundle\Form\Type\TinymceAdvancedBlockType')
->setBlock('content3', 'Trinity\Bundle\ContentManagerBundle\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');
}
public function setBlockContent3(Block $block)
{
return $this->setBlock($block);
}
}