00001 <?php
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035 class Mage_Adminhtml_Block_Extensions_Local extends Mage_Adminhtml_Block_Widget_Grid_Container
00036 {
00037 public function __construct()
00038 {
00039 $this->_controller = 'extensions_local';
00040 $this->_headerText = Mage::helper('adminhtml')->__('Manage Installed Extensions');
00041
00042 parent::__construct();
00043
00044 $this->_removeButton('add');
00045
00046 $this->_addButton('upgrade_all', array(
00047 'label'=>$this->__("Upgrade all available packages"),
00048 'onclick'=>"setLocation('".$this->getUrl('*/extensions_local/upgradeAll')."')",
00049 'class'=>'add',
00050 ));
00051
00052 $this->_addButton('file', array(
00053 'label'=>$this->__("Install Package File"),
00054 'onclick'=>"setLocation('".$this->getUrl('*/extensions_file')."')",
00055 'class'=>'add',
00056 ));
00057
00058 $this->_addButton('remote', array(
00059 'label'=>$this->__("Browse Available Extensions"),
00060 'onclick'=>"setLocation('".$this->getUrl('*/extensions_remote')."')",
00061 'class'=>'add',
00062 ));
00063 }
00064 }