Пример #1
0
 protected function startBlock(Block $block)
 {
     $type = $block->getType();
     if (!array_key_exists($type, $this->fonts)) {
         $type = 'standard';
     }
     $this->setFont($type);
     return $this;
 }
Пример #2
0
 protected function startBlock(Block $block)
 {
     $this->output[] = '<p class="' . htmlspecialchars($block->getType()) . '">';
     return $this;
 }