Exemplo n.º 1
0
 public function prependTo(Element $container)
 {
     $container->prepend($this);
     return $this;
 }
Exemplo n.º 2
0
 public function __construct($html)
 {
     parent::__construct('', ['innerHtml' => $html]);
 }
Exemplo n.º 3
0
 private function _processBlock(TextReader $reader, Element $container, $blockType, $langType)
 {
     $langType = $blockType == 'SRC' ? $langType : 'plain';
     $block = new CodeBlockElement(['lang' => $langType]);
     $container->append($block);
     $blockContent = $this->_readBlock($reader, $blockType);
     $block->setCode($blockContent);
 }
Exemplo n.º 4
0
 public function __construct($text)
 {
     parent::__construct('', ['text' => $text]);
 }