当前位置: 首页>>代码示例>>PHP>>正文


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怎么用?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();
 }
开发者ID:QiuLihua83,项目名称:magento-enterprise-1.13.1.0,代码行数:10,代码来源:Sitemap.php

示例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();
 }
开发者ID:nemphys,项目名称:magento2,代码行数:7,代码来源:Customer.php

示例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'));
 }
开发者ID:barneydesmond,项目名称:propitious-octo-tribble,代码行数:10,代码来源:Variable.php

示例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'));
     // ---------------------------------------
 }
开发者ID:giuseppemorelli,项目名称:magento-extension,代码行数:30,代码来源:Other.php

示例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();
 }
开发者ID:ronseigel,项目名称:agent-ohm,代码行数:7,代码来源:Catalog_Product_Attribute.php

示例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'));
     //------------------------------
 }
开发者ID:xiaoguizhidao,项目名称:bb,代码行数:31,代码来源:Feedback.php

示例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();
 }
开发者ID:cewolf2002,项目名称:magento,代码行数:10,代码来源:Block.php

示例8: __construct

 public function __construct()
 {
     $this->_controller = 'adminhtml_registries';
     $this->_blockGroup = 'webengage_coup';
     $this->_headerText = Mage::helper('webengage_coup')->__('Webengage coup');
     parent::__construct();
 }
开发者ID:rakesh007007,项目名称:rakesh_wb_magento_coup,代码行数:7,代码来源:Registries.php

示例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'));
     //------------------------------
 }
开发者ID:par-orillonsoft,项目名称:app,代码行数:27,代码来源:ManageDbTable.php

示例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'));
     //------------------------------
 }
开发者ID:technomagegithub,项目名称:magento,代码行数:33,代码来源:View.php

示例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');
         }
     }
 }
开发者ID:evinw,项目名称:project_bloom_magento,代码行数:28,代码来源:Main.php

示例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()"));
     // ---------------------------------------
 }
开发者ID:giuseppemorelli,项目名称:magento-extension,代码行数:30,代码来源:Category.php

示例13: __construct

 public function __construct()
 {
     $this->_controller = 'report_product_ordered';
     $this->_headerText = Mage::helper('reports')->__('Bestsellers');
     parent::__construct();
     $this->_removeButton('add');
 }
开发者ID:quyip8818,项目名称:Mag,代码行数:7,代码来源:Ordered.php

示例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');
     // ---------------------------------------
 }
开发者ID:ReeceCrossland,项目名称:essua-m2epro,代码行数:27,代码来源:Category.php

示例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();
 }
开发者ID:hazaeluz,项目名称:magento_connect,代码行数:11,代码来源:Group.php


注:本文中的Mage_Adminhtml_Block_Widget_Grid_Container::__construct方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。