/** * Parse the content block and the revisions */ protected function parse() { parent::parse(); $this->tpl->assign('id', $this->contentBlock->getId()); $this->tpl->assign('title', $this->contentBlock->getTitle()); $this->tpl->assign('revision_id', $this->contentBlock->getRevisionId()); $this->parseRevisionsDataGrid(); }
/** * @param ContentBlock $contentBlock */ public function __construct(ContentBlock $contentBlock) { $this->contentBlock = $contentBlock; $this->isVisible = !$contentBlock->isHidden(); $this->title = $contentBlock->getTitle(); $this->text = $contentBlock->getText(); $this->template = $contentBlock->getTemplate(); }