當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。