*/ class Mage_Paypal_Block_Adminhtml_Settlement_Report extends Mage_Adminhtml_Block_Widget_Grid_Container { /** * Prepare grid container, add additional buttons */ public function __construct() { $this->_blockGroup = 'paypal'; $this->_controller = 'adminhtml_settlement_report'; $this->_headerText = Mage::helper('paypal')->__('PayPal Settlement Reports'); parent::__construct(); $this->_removeButton('add'); $confirmationMessage = Mage::helper('core')->jsQuoteEscape( Mage::helper('paypal') ->__('Connecting to PayPal SFTP server to fetch new reports. Are you sure you want to proceed?') ); $this->_addButton('fetch', array( 'label' => Mage::helper('paypal')->__('Fetch Updates'), 'onclick' => "confirmSetLocation('{$confirmationMessage}', '{$this->getUrl('*/*/fetch')}')", 'class' => 'task' )); } }