*/ class Mage_XmlConnect_Block_Adminhtml_Mobile_Preview_Tabitems extends Mage_Adminhtml_Block_Template { /** * Set preview tab items template */ public function __construct() { parent::__construct(); $deviceType = Mage::helper('xmlconnect')->getDeviceType(); $this->setTemplate('xmlconnect/edit/tab/design/preview/tab_items_' . $deviceType . '.phtml'); } /** * Set active tab * * @param string $tab * @return Mage_XmlConnect_Block_Adminhtml_Mobile_Preview_Tabitems */ public function setActiveTab($tab) { Mage::helper('xmlconnect')->getPreviewModel()->setActiveTab($tab); return $this; } }