getTitle() public method

public getTitle ( ) : string
return string
Beispiel #1
0
 /**
  * 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();
 }
Beispiel #2
0
 /**
  * @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();
 }