Ejemplo n.º 1
0
 /**
  * get html output
  *
  * @return string
  */
 protected function _toHtml()
 {
     $output = '';
     foreach ($this->_block->getSortedChildren() as $child) {
         $block = new Mage_Devtool_Block_Layout_Block();
         if ($this->getLayout()) {
             $output .= $block->init($this->getLayout(), $child)->toHtml();
         }
     }
     return sprintf('<li id="%s"><a href= "#">%s</a><ul>%s</ul></li>', uniqid('devtool-'), $this->_block->getNameInLayout() ? $this->_block->getNameInLayout() : Mage_Devtool_Helper_Data::NO_CAPTION_LABEL, $output);
 }
Ejemplo n.º 2
0
 /**
  * get block output
  *
  * @return string
  */
 protected function getBlockDataHtml()
 {
     $output = "";
     $block = new Mage_Devtool_Block_Layout_Block();
     return $block->init($this->getLayout(), 'root')->toHtml();
 }