1: <?php
2: /**
3: * Magento
4: *
5: * NOTICE OF LICENSE
6: *
7: * This source file is subject to the Open Software License (OSL 3.0)
8: * that is bundled with this package in the file LICENSE.txt.
9: * It is also available through the world-wide-web at this URL:
10: * http://opensource.org/licenses/osl-3.0.php
11: * If you did not receive a copy of the license and are unable to
12: * obtain it through the world-wide-web, please send an email
13: * to license@magentocommerce.com so we can send you a copy immediately.
14: *
15: * DISCLAIMER
16: *
17: * Do not edit or add to this file if you wish to upgrade Magento to newer
18: * versions in the future. If you wish to customize Magento for your
19: * needs please refer to http://www.magentocommerce.com for more information.
20: *
21: * @category Mage
22: * @package Mage_Connect
23: * @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
24: * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25: */
26:
27: /**
28: * Magento Connect View Local extensions Tab block
29: *
30: * @category Mage
31: * @package Mage_Connect
32: * @author Magento Core Team <core@magentocommerce.com>
33: */
34: class Mage_Connect_Block_Adminhtml_Extension_Custom_Edit_Tab_Local
35: extends Mage_Adminhtml_Block_Abstract
36: implements Mage_Adminhtml_Block_Widget_Tab_Interface
37: {
38: /**
39: * Retrieve Tab load URL
40: *
41: * @return string
42: */
43: public function getTabUrl()
44: {
45: return $this->getUrl('*/*/loadtab', array('_current' => true));
46: }
47:
48: /**
49: * Retrieve class for load by ajax
50: *
51: * @return string
52: */
53: public function getTabClass()
54: {
55: return 'ajax';
56: }
57:
58: /**
59: * Retrieve class for load by ajax
60: *
61: * @return string
62: */
63: public function getClass()
64: {
65: return 'ajax';
66: }
67:
68: /**
69: * Get Tab Label
70: *
71: * @return string
72: */
73: public function getTabLabel()
74: {
75: return Mage::helper('connect')->__('Load Local Package');
76: }
77:
78: /**
79: * Get Tab Title
80: *
81: * @return string
82: */
83: public function getTabTitle()
84: {
85: return Mage::helper('connect')->__('Load Local Package');
86: }
87:
88: /**
89: * Is can show tab
90: *
91: * @return bool
92: */
93: public function canShowTab()
94: {
95: return true;
96: }
97:
98: /**
99: * Is hidden tab
100: *
101: * @return bool
102: */
103: public function isHidden()
104: {
105: return false;
106: }
107: }
108: