/** * 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; }
/** * Get totals as object * * @return Varien_Object */ public function getTotals() { return $this->_factory->create($this->_totals); }