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


PHP Mage_Adminhtml_Block_Widget_Container::__construct方法代码示例

本文整理汇总了PHP中Mage_Adminhtml_Block_Widget_Container::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Mage_Adminhtml_Block_Widget_Container::__construct方法的具体用法?PHP Mage_Adminhtml_Block_Widget_Container::__construct怎么用?PHP Mage_Adminhtml_Block_Widget_Container::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Mage_Adminhtml_Block_Widget_Container的用法示例。


在下文中一共展示了Mage_Adminhtml_Block_Widget_Container::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __construct

 public function __construct()
 {
     parent::__construct();
     // Initialization block
     //------------------------------
     $this->setId('ebayListingCategoryMode');
     //------------------------------
     //------------------------------
     $listingId = $this->getRequest()->getParam('listing_id');
     $listing = Mage::helper('M2ePro/Component_Ebay')->getCachedObject('Listing', $listingId);
     $listingAdditionalData = $listing->getData('additional_data');
     $listingAdditionalData = json_decode($listingAdditionalData, true);
     //------------------------------
     $this->_headerText = Mage::helper('M2ePro')->__('Set Your eBay Categories');
     $url = $this->getUrl('*/adminhtml_ebay_listing_productAdd', array('step' => 2, '_current' => true));
     if (Mage::helper('M2ePro/View_Ebay')->isSimpleMode()) {
         $url = $this->getUrl('*/adminhtml_ebay_listing_productAdd/deleteAll', array('_current' => true));
     }
     $productAddSessionData = Mage::helper('M2ePro/Data_Session')->getValue('ebay_listing_product_add');
     if (isset($productAddSessionData['show_settings_step'])) {
         !(bool) $productAddSessionData['show_settings_step'] && ($url = $this->getUrl('*/adminhtml_ebay_listing_productAdd/deleteAll', array('_current' => true)));
     } elseif (isset($listingAdditionalData['show_settings_step'])) {
         !(bool) $listingAdditionalData['show_settings_step'] && ($url = $this->getUrl('*/adminhtml_ebay_listing_productAdd/deleteAll', array('_current' => true)));
     }
     $this->_addButton('back', array('label' => Mage::helper('M2ePro')->__('Back'), 'class' => 'back', 'onclick' => 'setLocation(\'' . $url . '\');'));
     $this->_addButton('next', array('label' => Mage::helper('M2ePro')->__('Continue'), 'class' => 'scalable next', 'onclick' => "\$('categories_mode_form').submit();"));
     $this->setTemplate('M2ePro/ebay/listing/category/mode.phtml');
 }
开发者ID:xiaoguizhidao,项目名称:ecommerce,代码行数:28,代码来源:Mode.php

示例2: __construct

 public function __construct()
 {
     parent::__construct();
     // Initialization block
     //------------------------------
     $this->setId('orderLog');
     $this->_blockGroup = 'M2ePro';
     $this->_controller = 'adminhtml_order_log';
     //------------------------------
     //------------------------------
     $this->setTemplate('M2ePro/common/log/log.phtml');
     //------------------------------
     // Set header text
     //------------------------------
     $this->_headerText = Mage::helper('M2ePro')->__('Orders Log');
     //------------------------------
     // Set buttons actions
     //------------------------------
     $this->removeButton('back');
     $this->removeButton('reset');
     $this->removeButton('delete');
     $this->removeButton('add');
     $this->removeButton('save');
     $this->removeButton('edit');
     //------------------------------
     if (!is_null($this->getRequest()->getParam('back'))) {
         $backUrl = Mage::helper('M2ePro')->getBackUrl('*/adminhtml_common_order/index');
         $this->_addButton('back', array('label' => Mage::helper('M2ePro')->__('Back'), 'onclick' => 'CommonHandlerObj.back_click(\'' . $backUrl . '\')', 'class' => 'back'));
     }
     $this->_addButton('goto_orders', array('label' => Mage::helper('M2ePro')->__('Orders'), 'onclick' => 'setLocation(\'' . $this->getUrl('*/adminhtml_common_order/index') . '\')', 'class' => 'button_link'));
     //------------------------------
 }
开发者ID:ppkowalski,项目名称:M2E,代码行数:32,代码来源:Log.php

示例3: __construct

 public function __construct()
 {
     parent::__construct();
     // Initialization block
     //------------------------------
     $this->setId('config');
     $this->_blockGroup = 'M2ePro';
     $this->_controller = 'adminhtml_config';
     //------------------------------
     // Set header text
     //------------------------------
     if (Mage::helper('M2ePro')->getGlobalValue('config_mode') == 'ess') {
         $this->_headerText = Mage::helper('M2ePro')->__('ESS Config Data');
     } else {
         $this->_headerText = Mage::helper('M2ePro')->__('M2ePro Config Data');
     }
     //------------------------------
     // Set buttons actions
     //------------------------------
     $this->removeButton('back');
     $this->removeButton('reset');
     $this->removeButton('delete');
     $this->removeButton('add');
     $this->removeButton('save');
     $this->removeButton('edit');
     //------------------------------
 }
开发者ID:xiaoguizhidao,项目名称:beut,代码行数:27,代码来源:Config.php

示例4: __construct

 public function __construct()
 {
     $this->_setHeaderText();
     $block_module_groupname = "ReverbSync";
     $this->_objectId = 'reverb_product_sync_container';
     $this->setTemplate('widget/view/container.phtml');
     parent::__construct();
     $bulk_sync_process_button = array('action_url' => Mage::getModel('adminhtml/url')->getUrl('adminhtml/ReverbSync_listings_sync/bulkSync'), 'label' => 'Bulk Product Sync');
     $clear_all_tasks_button = array('action_url' => Mage::getModel('adminhtml/url')->getUrl('adminhtml/ReverbSync_listings_sync/clearAllTasks'), 'label' => 'Clear All Sync Tasks');
     $clear_successful_tasks_button = array('action_url' => Mage::getModel('adminhtml/url')->getUrl('adminhtml/ReverbSync_listings_sync/clearSuccessfulTasks'), 'label' => 'Clear Successful Sync Tasks');
     $action_buttons_array['bulk_product_sync'] = $bulk_sync_process_button;
     $action_buttons_array['clear_all_sync_tasks'] = $clear_all_tasks_button;
     $action_buttons_array['clear_successful_sync_tasks'] = $clear_successful_tasks_button;
     foreach ($action_buttons_array as $button_id => $button_data) {
         $button_action_url = isset($button_data['action_url']) ? $button_data['action_url'] : '';
         if (empty($button_action_url)) {
             // Require label to be defined
             continue;
         }
         $button_label = isset($button_data['label']) ? $button_data['label'] : '';
         if (empty($button_label)) {
             // Require label to be defined
             continue;
         }
         $this->_addButton($button_id, array('label' => Mage::helper($block_module_groupname)->__($button_label), 'onclick' => "document.location='" . $button_action_url . "'", 'level' => -1));
     }
 }
开发者ID:zztimur,项目名称:reverb-magento,代码行数:27,代码来源:Index.php

示例5: __construct

 public function __construct()
 {
     $this->_controller = 'adminhtml_printbarcode';
     $this->_blockGroup = 'inventorybarcode';
     $this->_headerText = Mage::helper('inventorybarcode')->__('Print Barcodes');
     parent::__construct();
 }
开发者ID:cabrerabywaters,项目名称:magentoSunshine,代码行数:7,代码来源:Printbarcode.php

示例6: __construct

 /**
  * Initializes the block
  */
 public function __construct()
 {
     parent::__construct();
     $this->_controller = 'adminhtml_productattributes';
     $this->_removeButton('add');
     $this->setTemplate('listrak/remarketing/productattributes.phtml');
 }
开发者ID:RxOuchy,项目名称:LDS_Client_Solutions,代码行数:10,代码来源:Productattributes.php

示例7: __construct

 public function __construct()
 {
     parent::__construct();
     // Initialization block
     //------------------------------
     $this->setId('supportContainer');
     $this->_blockGroup = 'M2ePro';
     $this->_controller = 'adminhtml';
     $this->_mode = 'support';
     //------------------------------
     // Set header text
     //------------------------------
     $this->_headerText = Mage::helper('M2ePro')->__('Support');
     //------------------------------
     // Set template
     //------------------------------
     $this->setTemplate('M2ePro/support.phtml');
     //------------------------------
     // Set buttons actions
     //------------------------------
     $this->removeButton('back');
     $this->removeButton('reset');
     $this->removeButton('delete');
     $this->removeButton('add');
     $this->removeButton('save');
     $this->removeButton('edit');
     $this->_addButton('goto_cmd', array('label' => 'CMD', 'onclick' => 'setLocation(\'' . $this->getUrl('*/adminhtml_cmd/index') . '\')', 'class' => 'button_link cmd', 'style' => is_null($this->getRequest()->getParam('show_cmd')) ? 'display: none;' : ''));
     $this->_addButton('goto_about', array('label' => Mage::helper('M2ePro')->__('About'), 'onclick' => 'setLocation(\'' . $this->getUrl('*/adminhtml_about/index') . '\')', 'class' => 'button_link'));
     $videoLink = Mage::helper('M2ePro/Module')->getConfig()->getGroupValue('/video_tutorials/', 'baseurl');
     $this->_addButton('goto_video_tutorials', array('label' => Mage::helper('M2ePro')->__('Video Tutorials'), 'onclick' => 'window.open(\'' . $videoLink . '\', \'_blank\'); return false;', 'class' => 'button_link'));
     $docsLink = Mage::helper('M2ePro/Module')->getConfig()->getGroupValue('/documentation/', 'baseurl');
     $this->_addButton('goto_docs', array('label' => Mage::helper('M2ePro')->__('Documentation'), 'onclick' => 'window.open(\'' . $docsLink . '\', \'_blank\'); return false;', 'class' => 'button_link'));
     $this->_addButton('reset', array('label' => Mage::helper('M2ePro')->__('Refresh'), 'onclick' => 'SupportHandlerObj.reset_click()', 'class' => 'reset'));
     //------------------------------
 }
开发者ID:xiaoguizhidao,项目名称:beut,代码行数:35,代码来源:Support.php

示例8: __construct

 public function __construct()
 {
     parent::__construct();
     $this->setTemplate('searchindex/validation/container.phtml');
     $this->_controller = 'adminhtml_validation';
     $this->_headerText = $this->__('Search Validation');
 }
开发者ID:vishalpatel14,项目名称:indiankalaniketan,代码行数:7,代码来源:Validation.php

示例9: __construct

 public function __construct()
 {
     parent::__construct();
     $this->_controller = 'productqa';
     $this->_headerText = Mage::helper('pws_productqa')->__('Manage Product Q&A');
     $this->setTemplate('widget/grid/container.phtml');
 }
开发者ID:kirchbergerknorr,项目名称:PWS_ProductQA,代码行数:7,代码来源:List.php

示例10: __construct

 public function __construct()
 {
     $this->_controller = 'adam_contact_form_plus';
     $this->_headerText = Mage::helper('adam_contact_form_plus')->__('Contacts');
     parent::__construct();
     $this->setTemplate('widget/grid/container.phtml');
 }
开发者ID:adam-crossland,项目名称:Magento1-ContactFormPlus,代码行数:7,代码来源:Container.php

示例11: __construct

 public function __construct()
 {
     $this->_controller = "adminhtml_chart";
     $this->_blockGroup = "watchlog";
     parent::__construct();
     $this->setTemplate('watchlog/chart.phtml');
 }
开发者ID:FranchuCorraliza,项目名称:magento,代码行数:7,代码来源:Chart.php

示例12: __construct

 /**
  * Initialize button
  */
 public function __construct()
 {
     $this->_controller = 'adminhtml_urlrewrite';
     $this->_headerText = $this->__('URL Redirect');
     parent::__construct();
     $this->_addButton('back', array('label' => $this->__('Back'), 'onclick' => sprintf("setLocation('%s')", $this->getBackUrl()), 'class' => 'back'), -1);
 }
开发者ID:QiuLihua83,项目名称:magento-enterprise-1.13.1.0,代码行数:10,代码来源:Selector.php

示例13: __construct

 public function __construct()
 {
     parent::__construct();
     // Initialization block
     //------------------------------
     $this->setId('buyListingAddStepFourCategory');
     $this->_blockGroup = 'M2ePro';
     $this->_controller = 'adminhtml_buy_listing';
     //------------------------------
     $this->setTemplate('widget/view/container.phtml');
     // Set header text
     //------------------------------
     if (count(Mage::helper('M2ePro/Component')->getActiveComponents()) > 1) {
         $componentName = ' ' . Mage::helper('M2ePro')->__(Ess_M2ePro_Helper_Component_Buy::TITLE);
     } else {
         $componentName = '';
     }
     $this->_headerText = Mage::helper('M2ePro')->__("Add%s Listing [Select Categories]", $componentName);
     //------------------------------
     // 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' => 'BuyListingCategoryHandlerObj.back_click(\'' . $this->getUrl('*/adminhtml_buy_listing/add', array('step' => '3')) . '\')', 'class' => 'back'));
     $this->_addButton('reset', array('label' => Mage::helper('M2ePro')->__('Refresh'), 'onclick' => 'BuyListingCategoryHandlerObj.reset_click()', 'class' => 'reset'));
     $this->_addButton('save_and_next', array('label' => Mage::helper('M2ePro')->__('Next'), 'onclick' => 'BuyListingCategoryHandlerObj.save_click(\'' . $this->getUrl('*/adminhtml_buy_listing/add', array('step' => '4', 'remember_categories' => 'yes')) . '\')', 'class' => 'next save_and_next_button'));
     $this->_addButton('save_and_go_to_listings_list', array('label' => Mage::helper('M2ePro')->__('Save'), 'onclick' => 'BuyListingCategoryHandlerObj.save_click(\'' . $this->getUrl('*/adminhtml_buy_listing/add', array('step' => '4', 'save' => 'yes', 'back' => 'list')) . '\')', 'class' => 'save save_and_go_to_listings_list_button'));
     $this->_addButton('save_and_go_to_listing_view', array('label' => Mage::helper('M2ePro')->__('Save And View Listing'), 'onclick' => 'BuyListingCategoryHandlerObj.save_click(\'' . $this->getUrl('*/adminhtml_buy_listing/add', array('step' => '4', 'save' => 'yes', 'back' => 'view')) . '\')', 'class' => 'save save_and_go_to_listing_view_button'));
     //------------------------------
 }
开发者ID:xiaoguizhidao,项目名称:beut,代码行数:34,代码来源:StepFourCategory.php

示例14: __construct

 public function __construct()
 {
     $this->_controller = 'system_store';
     $this->_headerText = Mage::helper('adminhtml')->__('Manage Stores');
     $this->setTemplate('system/store/container.phtml');
     parent::__construct();
 }
开发者ID:hientruong90,项目名称:ee_14_installer,代码行数:7,代码来源:Store.php

示例15: __construct

 public function __construct()
 {
     parent::__construct();
     $this->_objectId = 'moderator_id';
     $this->_blockGroup = 'moderator';
     $this->_controller = 'adminhtml_moderators';
 }
开发者ID:praxigento,项目名称:mage_app_prxgt_store,代码行数:7,代码来源:Index.php


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