本文整理汇总了PHP中Mage_Adminhtml_Block_Widget_Grid_Container::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Mage_Adminhtml_Block_Widget_Grid_Container::__construct方法的具体用法?PHP Mage_Adminhtml_Block_Widget_Grid_Container::__construct怎么用?PHP Mage_Adminhtml_Block_Widget_Grid_Container::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Mage_Adminhtml_Block_Widget_Grid_Container
的用法示例。
在下文中一共展示了Mage_Adminhtml_Block_Widget_Grid_Container::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
/**
* Block constructor
*/
public function __construct()
{
$this->_controller = 'sitemap';
$this->_headerText = Mage::helper('sitemap')->__('Google Sitemap');
$this->_addButtonLabel = Mage::helper('sitemap')->__('Add Sitemap');
parent::__construct();
}
示例2: __construct
public function __construct()
{
$this->_controller = 'customer';
$this->_headerText = Mage::helper('Mage_Customer_Helper_Data')->__('Manage Customers');
$this->_addButtonLabel = Mage::helper('Mage_Customer_Helper_Data')->__('Add New Customer');
parent::__construct();
}
示例3: __construct
/**
* Block constructor
*/
public function __construct()
{
$this->_controller = 'system_variable';
$this->_headerText = Mage::helper('adminhtml')->__('Custom Variables');
parent::__construct();
$this->_updateButton('add', 'label', Mage::helper('adminhtml')->__('Add New Variable'));
}
示例4: __construct
public function __construct()
{
parent::__construct();
// Initialization block
// ---------------------------------------
$this->setId('ebayListingOther');
$this->_blockGroup = 'M2ePro';
$this->_controller = 'adminhtml_ebay_listing_other';
// ---------------------------------------
// Set header text
// ---------------------------------------
$this->_headerText = '';
// ---------------------------------------
// Set buttons actions
// ---------------------------------------
$this->removeButton('back');
$this->removeButton('reset');
$this->removeButton('delete');
$this->removeButton('add');
$this->removeButton('save');
$this->removeButton('edit');
// ---------------------------------------
$url = $this->getUrl('*/adminhtml_ebay_log/listingOther');
$this->_addButton('view_log', array('label' => Mage::helper('M2ePro')->__('View Log'), 'onclick' => 'window.open(\'' . $url . '\',\'_blank\')', 'class' => 'button_link'));
// ---------------------------------------
// ---------------------------------------
$url = $this->getUrl('*/adminhtml_ebay_listing_other_synchronization/edit');
$this->_addButton('goto_listing_other_synchronization', array('label' => Mage::helper('M2ePro')->__('Synchronization Settings'), 'onclick' => 'window.open(\'' . $url . '\', \'_blank\'); return false;', 'class' => 'button_link'));
// ---------------------------------------
}
示例5: __construct
public function __construct()
{
$this->_controller = 'catalog_product_attribute';
$this->_headerText = AO::helper('catalog')->__('Manage Attributes');
$this->_addButtonLabel = AO::helper('catalog')->__('Add New Attribute');
parent::__construct();
}
示例6: __construct
public function __construct()
{
parent::__construct();
// Initialization block
//------------------------------
$this->setId('ebayFeedback');
$this->_blockGroup = 'M2ePro';
$this->_controller = 'adminhtml_ebay_feedback';
//------------------------------
// Set header text
//------------------------------
$accountTitle = '';
$accountId = $this->getRequest()->getParam('account');
if (!is_null($accountId)) {
$accountTitle = Mage::getModel('M2ePro/Account')->load((int) $accountId)->getTitle();
}
$this->_headerText = Mage::helper('M2ePro')->__('Feedback for account "%s"', $accountTitle);
//------------------------------
// Set buttons actions
//------------------------------
$this->removeButton('back');
$this->removeButton('reset');
$this->removeButton('delete');
$this->removeButton('add');
$this->removeButton('save');
$this->removeButton('edit');
$this->_addButton('goto_orders', array('label' => Mage::helper('M2ePro')->__('Orders'), 'onclick' => 'setLocation(\'' . $this->getUrl('*/adminhtml_ebay_order/index') . '\')', 'class' => 'button_link'));
$this->_addButton('goto_accounts', array('label' => Mage::helper('M2ePro')->__('Accounts'), 'onclick' => 'setLocation(\'' . $this->getUrl('*/adminhtml_ebay_account/index') . '\')', 'class' => 'button_link'));
$this->_addButton('reset', array('label' => Mage::helper('M2ePro')->__('Refresh'), 'onclick' => 'EbayFeedbackHandlerObj.reset_click()', 'class' => 'reset'));
//------------------------------
}
示例7: __construct
/**
* Construct
*/
public function __construct()
{
$this->_controller = 'permissions_block';
$this->_headerText = Mage::helper('adminhtml')->__('Blocks');
$this->_addButtonLabel = Mage::helper('adminhtml')->__('Add New Block');
parent::__construct();
}
示例8: __construct
public function __construct()
{
$this->_controller = 'adminhtml_registries';
$this->_blockGroup = 'webengage_coup';
$this->_headerText = Mage::helper('webengage_coup')->__('Webengage coup');
parent::__construct();
}
示例9: __construct
public function __construct()
{
parent::__construct();
// Initialization block
//------------------------------
$this->setId('aboutManageDbTable');
$this->_blockGroup = 'M2ePro';
$this->_controller = 'adminhtml_about_ManageDbTable';
//------------------------------
// Set header text
//------------------------------
$this->_headerText = Mage::helper('M2ePro')->__('Manage DB Table "' . Mage::registry('M2ePro_data_table') . '"');
//------------------------------
// Set buttons actions
//------------------------------
$this->removeButton('back');
$this->removeButton('reset');
$this->removeButton('delete');
$this->removeButton('add');
$this->removeButton('save');
$this->removeButton('edit');
$this->_addButton('back', array('label' => Mage::helper('M2ePro')->__('Back'), 'onclick' => 'setLocation(\'' . $this->getUrl('*/*/index', array('show_manage_db_table' => true)) . '\')', 'class' => 'back'));
$this->_addButton('goto_about', array('label' => Mage::helper('M2ePro')->__('About'), 'onclick' => 'setLocation(\'' . $this->getUrl('*/*/index') . '\')', 'class' => 'button_link'));
$this->_addButton('delete_all', array('label' => Mage::helper('M2ePro')->__('Clear Table'), 'onclick' => 'deleteConfirm(\'' . Mage::helper('M2ePro')->__('Are you sure?') . '\', \'' . $this->getUrl('*/*/deleteDbTableAll', array('table' => Mage::registry('M2ePro_data_table'), 'model' => Mage::registry('M2ePro_data_model'))) . '\')', 'class' => 'delete_all'));
$this->_addButton('reset', array('label' => Mage::helper('M2ePro')->__('Refresh'), 'onclick' => 'CommonHandlersObj.reset_click()', 'class' => 'reset'));
//------------------------------
}
示例10: __construct
public function __construct()
{
parent::__construct();
$this->listing = Mage::helper('M2ePro/Data_Global')->getValue('temp_data');
// Initialization block
//------------------------------
$this->setId('ebayListingView');
$this->_blockGroup = 'M2ePro';
$this->_controller = 'adminhtml_ebay_listing_view_' . $this->getViewMode();
//------------------------------
// Set buttons actions
//------------------------------
$this->removeButton('back');
$this->removeButton('reset');
$this->removeButton('delete');
$this->removeButton('add');
$this->removeButton('save');
$this->removeButton('edit');
//------------------------------
//------------------------------
$this->_headerText = Mage::helper('M2ePro')->__('View Listing');
//------------------------------
//------------------------------
$url = $this->getUrl('*/adminhtml_ebay_log/listing', array('id' => $this->listing->getId()));
$this->_addButton('view_log', array('label' => Mage::helper('M2ePro')->__('View Log'), 'onclick' => 'window.open(\'' . $url . '\',\'_blank\')', 'class' => 'button_link'));
//------------------------------
//------------------------------
$this->_addButton('edit_templates', array('label' => Mage::helper('M2ePro')->__('Edit Listing Settings'), 'onclick' => '', 'class' => 'drop_down edit_default_settings_drop_down'));
//------------------------------
//------------------------------
$this->_addButton('add_products', array('label' => Mage::helper('M2ePro')->__('Add Products'), 'onclick' => '', 'class' => 'add drop_down add_products_drop_down'));
//------------------------------
}
示例11: __construct
public function __construct()
{
$this->_addButtonLabel = Mage::helper('review')->__('Add New Review');
parent::__construct();
$this->_controller = 'review';
// lookup customer, if id is specified
$customerId = $this->getRequest()->getParam('customerId', false);
$customerName = '';
if ($customerId) {
$customer = Mage::getModel('customer/customer')->load($customerId);
$customerName = $customer->getFirstname() . ' ' . $customer->getLastname();
$customerName = $this->escapeHtml($customerName);
}
if (Mage::registry('usePendingFilter') === true) {
if ($customerName) {
$this->_headerText = Mage::helper('review')->__('Pending Reviews of Customer `%s`', $customerName);
} else {
$this->_headerText = Mage::helper('review')->__('Pending Reviews');
}
$this->_removeButton('add');
} else {
if ($customerName) {
$this->_headerText = Mage::helper('review')->__('All Reviews of Customer `%s`', $customerName);
} else {
$this->_headerText = Mage::helper('review')->__('All Reviews');
}
}
}
示例12: __construct
public function __construct()
{
parent::__construct();
// Initialization block
// ---------------------------------------
$this->setId('ebayListingCategory');
$this->_blockGroup = 'M2ePro';
$this->_controller = 'adminhtml_ebay_listing_category_category';
// ---------------------------------------
// ---------------------------------------
// Set buttons actions
// ---------------------------------------
$this->removeButton('back');
$this->removeButton('reset');
$this->removeButton('delete');
$this->removeButton('add');
$this->removeButton('save');
$this->removeButton('edit');
// ---------------------------------------
// ---------------------------------------
$this->_headerText = Mage::helper('M2ePro')->__('Set eBay Categories (Based On Magento Categories)');
// ---------------------------------------
// ---------------------------------------
$url = $this->getUrl('*/*/', array('step' => 1, '_current' => true));
$this->_addButton('back', array('label' => Mage::helper('M2ePro')->__('Back'), 'class' => 'back', 'onclick' => 'setLocation(\'' . $url . '\');'));
// ---------------------------------------
// ---------------------------------------
$this->_addButton('next', array('id' => 'ebay_listing_category_continue_btn', 'label' => Mage::helper('M2ePro')->__('Continue'), 'class' => 'scalable next', 'onclick' => "EbayListingCategoryCategoryGridHandlerObj.validate()"));
// ---------------------------------------
}
示例13: __construct
public function __construct()
{
$this->_controller = 'report_product_ordered';
$this->_headerText = Mage::helper('reports')->__('Bestsellers');
parent::__construct();
$this->_removeButton('add');
}
示例14: __construct
public function __construct()
{
parent::__construct();
// Initialization block
// ---------------------------------------
$this->setId('ebayConfigurationCategory');
$this->_blockGroup = 'M2ePro';
$this->_controller = 'adminhtml_ebay_configuration_category';
// ---------------------------------------
// Set header text
// ---------------------------------------
$this->_headerText = '';
// ---------------------------------------
// Set buttons actions
// ---------------------------------------
$this->removeButton('back');
$this->removeButton('reset');
$this->removeButton('delete');
$this->removeButton('save');
$this->removeButton('edit');
$this->removeButton('add');
// ---------------------------------------
// Set template
// ---------------------------------------
$this->setTemplate('M2ePro/widget/grid/container/only_content.phtml');
// ---------------------------------------
}
示例15: __construct
/**
* Modify header & button labels
*
*/
public function __construct()
{
$this->_controller = 'customer_group';
$this->_headerText = Mage::helper('customer')->__('Customer Groups');
$this->_addButtonLabel = Mage::helper('customer')->__('Add New Customer Group');
parent::__construct();
}