示例#1
0
 /**
  * Add section to tab
  *
  * @param string $code
  * @param string $tabCode
  * @param array $config
  * @return Mage_Backend_Block_System_Config_Tabs
  */
 public function addSection($code, $tabCode, $config)
 {
     if ($tab = $this->getTab($tabCode)) {
         if (!$tab->getSections()) {
             $tab->setSections($this->_collectionFactory->create());
         }
         $section = $this->_objectFactory->create($config);
         $section->setId($code);
         $tab->getSections()->addItem($section);
     }
     return $this;
 }
示例#2
0
 /**
  * Get totals as object
  *
  * @return Varien_Object
  */
 public function getTotals()
 {
     return $this->_factory->create($this->_totals);
 }