/**
  * Override default render object to add portions inside decorator object,
  * after that, call the overrided method
  * @return string
  */
 public function render($content)
 {
     foreach ($this->_sectionsOrder as $name) {
         $content .= (string) $this->_sections[$name];
     }
     return parent::render($content);
 }
Exemplo n.º 2
0
 /**
  * Override default render object to add portions inside decorator object,
  * after that, call the overrided method
  */
 public function render($content)
 {
     $this->setOption('block.header', (string) $this->_portion_header);
     $this->setOption('block.footer', (string) $this->_portion_footer);
     $this->setOption('block.title', (string) $this->_portion_title);
     foreach ($this->_extraPortions as $name => $portion) {
         $this->setOption("block.extra.{$name}", (string) $portion);
     }
     return parent::render($content);
 }