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

53 lines
1.6 KiB
PHP

<?php
namespace Trinity\Bundle\ContentManagerBundle\Page;
use Trinity\Bundle\ContentManagerBundle\Model\Block;
use Trinity\Bundle\ContentManagerBundle\Configuration\PageConfiguration;
class EditorialBlockPage extends DefaultPage
{
public function getConfiguration()
{
$this->configuration = new PageConfiguration();
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('editorial_blocks', 'Trinity\Bundle\EditorialBlockBundle\Form\Type\EditorialBlocksContainerBlockType')
->setBlock('slideshow', 'Trinity\Bundle\WidgetBundle\Form\Type\SlideshowItemsContainerBlockType')
;
}
public function __construct($template = null)
{
parent::__construct(null !== $template ? $template : 'TrinityContentManagerBundle::default.html.twig');
}
public function getBlockEditorialBlocks()
{
return $this->getBlock('editorial_blocks');
}
public function setBlockEditorialBlocks(Block $block)
{
return $this->setBlock($block);
}
public function setBlockFile(Block $block)
{
return $this->setBlock($block);
}
public function getBlockSlideshow()
{
return $this->getBlock('slideshow');
}
public function setBlockSlideshow(Block $block)
{
return $this->setBlock($block);
}
}