*/ class Mage_XmlConnect_Block_Adminhtml_Mobile_Edit_Tabs extends Mage_Adminhtml_Block_Widget_Tabs { /** * Constructor * Setting grid_id, DOM destination element id, Title */ public function __construct() { parent::__construct(); $this->setId('mobile_app_tabs'); $this->setDestElementId('edit_form'); $this->setTitle($this->__('Manage Mobile App')); } /** * Preparing global layout * * @return Mage_Core_Block_Abstract */ protected function _prepareLayout() { if (Mage::getSingleton('adminhtml/session')->getNewApplication()) { $this->addTab('set', array( 'label' => $this->__('Settings'), 'content' => $this->getLayout() ->createBlock('xmlconnect/adminhtml_mobile_edit_tab_settings') ->toHtml(), 'active' => true )); } return parent::_prepareLayout(); } }