本文整理汇总了PHP中Ess_M2ePro_Block_Adminhtml_Widget_Container::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Ess_M2ePro_Block_Adminhtml_Widget_Container::__construct方法的具体用法?PHP Ess_M2ePro_Block_Adminhtml_Widget_Container::__construct怎么用?PHP Ess_M2ePro_Block_Adminhtml_Widget_Container::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Ess_M2ePro_Block_Adminhtml_Widget_Container
的用法示例。
在下文中一共展示了Ess_M2ePro_Block_Adminhtml_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)));
}
if (!$this->getRequest()->getParam('without_back')) {
$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');
}
示例2: __construct
public function __construct()
{
parent::__construct();
// Initialization block
// ---------------------------------------
$this->setId('commonTemplate');
$this->_blockGroup = 'M2ePro';
$this->_controller = 'adminhtml_common_template';
// ---------------------------------------
// Set header text
// ---------------------------------------
$this->_headerText = '';
// ---------------------------------------
// Set buttons actions
// ---------------------------------------
$this->removeButton('back');
$this->removeButton('reset');
$this->removeButton('delete');
$this->removeButton('save');
$this->removeButton('edit');
// ---------------------------------------
// ---------------------------------------
$this->_addButton('add', array('label' => Mage::helper('M2ePro')->__('Add Policy'), 'onclick' => '', 'class' => 'add add-button-drop-down'));
// ---------------------------------------
}
示例3: __construct
public function __construct()
{
parent::__construct();
// Initialization block
//------------------------------
$this->setId('ebayListingSearch');
//------------------------------
}
示例4: __construct
public function __construct()
{
parent::__construct();
// Initialization block
//------------------------------
$this->setId('ebayListingHelp');
//------------------------------
$this->setTemplate('M2ePro/ebay/listing/help.phtml');
}
示例5: __construct
public function __construct()
{
parent::__construct();
// Initialization block
// ---------------------------------------
$this->setId('listingProductReview');
// ---------------------------------------
$this->_headerText = Mage::helper('M2ePro')->__('Congratulations');
$this->setTemplate('M2ePro/common/listing/add/review.phtml');
}
示例6: __construct
public function __construct()
{
parent::__construct();
// Initialization block
// ---------------------------------------
$this->setId('ebayMigrationToV6Breadcrumb');
// ---------------------------------------
$this->_headerText = Mage::helper('M2ePro')->__('M2E Pro Migration to v. %version%', Mage::helper('M2ePro/Module')->getVersion());
$this->setTemplate('widget/form/container.phtml');
}
示例7: __construct
public function __construct()
{
parent::__construct();
// Initialization block
// ---------------------------------------
$this->setId('ebayOrderViewForm');
$this->setTemplate('M2ePro/ebay/order.phtml');
// ---------------------------------------
$this->order = Mage::helper('M2ePro/Data_Global')->getValue('temp_data');
}
示例8: __construct
public function __construct()
{
parent::__construct();
// Initialization block
//------------------------------
$this->setId('amazonOrderViewForm');
$this->setTemplate('M2ePro/common/amazon/order.phtml');
//------------------------------
/** @var $order Ess_M2ePro_Model_Order */
$this->order = Mage::helper('M2ePro/Data_Global')->getValue('temp_data');
}
示例9: __construct
public function __construct()
{
parent::__construct();
// Initialization block
// ---------------------------------------
$this->setId('amazonListingAddNewAsin');
// ---------------------------------------
$this->_headerText = Mage::helper('M2ePro')->__('New ASIN/ISBN Creation');
$url = $this->getUrl('*/*/index', array('step' => 1, '_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' => "descriptionTemplateModeFormSubmit()"));
$this->setTemplate('M2ePro/common/amazon/listing/add/new_asin.phtml');
}
示例10: __construct
public function __construct()
{
parent::__construct();
// Initialization block
// ---------------------------------------
$this->setId('ebayListingCategorySameSpecific');
// ---------------------------------------
$this->_headerText = Mage::helper('M2ePro')->__('eBay Same Categories');
$this->setTemplate('M2ePro/ebay/listing/category/same/specific.phtml');
$this->_addButton('back', array('label' => Mage::helper('M2ePro')->__('Back'), 'class' => 'back', 'onclick' => 'setLocation(\'' . $this->getUrl('*/*/*', array('_current' => true, 'step' => 2)) . '\');'));
$saveUrl = $this->getUrl('*/*/*', array('step' => 3, '_current' => true));
$this->_addButton('save', array('label' => Mage::helper('M2ePro')->__('Continue'), 'class' => 'scalable next', 'onclick' => "EbayListingCategorySpecificHandlerObj.submitData('{$saveUrl}');"));
}
示例11: __construct
public function __construct()
{
parent::__construct();
// Initialization block
// ---------------------------------------
$this->setId('ebayListingCategorySameChooser');
// ---------------------------------------
$this->_headerText = Mage::helper('M2ePro')->__('eBay Same Categories');
$this->setTemplate('M2ePro/ebay/listing/category/same/chooser.phtml');
$this->_addButton('back', array('label' => Mage::helper('M2ePro')->__('Back'), 'class' => 'back', 'onclick' => 'setLocation(\'' . $this->getUrl('*/*/*', array('_current' => true, 'step' => 1)) . '\');'));
$onClick = <<<JS
EbayListingCategoryChooserHandlerObj.submitData(
'{$this->getUrl('*/*/*', array('step' => 2, '_current' => true))}'
);
JS;
$this->_addButton('next', array('label' => Mage::helper('M2ePro')->__('Continue'), 'class' => 'scalable next', 'onclick' => $onClick));
}
示例12: __construct
public function __construct()
{
parent::__construct();
// Initialization block
// ---------------------------------------
$this->setId('ebayListingCategorySpecificWrapper');
// ---------------------------------------
$this->_headerText = Mage::helper('M2ePro')->__('eBay Categories Specifics');
// ---------------------------------------
$this->_addButton('back', array('label' => Mage::helper('M2ePro')->__('Back'), 'class' => 'back back_category_button', 'onclick' => 'EbayListingCategorySpecificWrapperHandlerObj.renderPrevCategory();'));
// ---------------------------------------
// ---------------------------------------
$this->_addButton('continue', array('id' => 'save_button', 'label' => Mage::helper('M2ePro')->__('Continue'), 'class' => 'scalable next continue specifics_buttons', 'onclick' => "EbayListingCategorySpecificWrapperHandlerObj.save();"));
// ---------------------------------------
// ---------------------------------------
$this->_addButton('next_category_header_button', array('id' => 'next_category_header_button', 'label' => Mage::helper('M2ePro')->__('Next Category'), 'class' => 'next next_category_button specifics_buttons', 'onclick' => "EbayListingCategorySpecificWrapperHandlerObj.renderNextCategory();"));
// ---------------------------------------
$this->setTemplate('M2ePro/ebay/listing/category/specific/wrapper.phtml');
}
示例13: __construct
public function __construct()
{
parent::__construct();
// Initialization block
// ---------------------------------------
$this->setId('ebayConfigurationCategoryEditPrimary');
// ---------------------------------------
// Set header text
// ---------------------------------------
$this->_headerText = Mage::helper('M2ePro')->__('Edit eBay Primary Category');
// ---------------------------------------
$this->setTemplate('M2ePro/ebay/configuration/category/primary.phtml');
$this->removeButton('save');
$this->removeButton('reset');
$this->removeButton('back');
$backUrl = $this->getUrl('*/adminhtml_ebay_category/index');
$this->_addButton('back', array('label' => Mage::helper('M2ePro')->__('Back'), 'onclick' => 'setLocation(\'' . $backUrl . '\');', 'class' => 'back'));
$this->_addButton('save_and_continue', array('label' => Mage::helper('M2ePro')->__('Save And Continue Edit'), 'onclick' => 'EbayConfigurationCategoryHandlerObj.save_click(\'primary\', true)', 'class' => 'save'));
$this->_addButton('save', array('label' => Mage::helper('M2ePro')->__('Save'), 'onclick' => 'EbayConfigurationCategoryHandlerObj.save_click(\'primary\', false)', 'class' => 'save'));
}
示例14: __construct
public function __construct()
{
parent::__construct();
// Initialization block
// ---------------------------------------
$this->setId('amazonTemplateDescriptionCategorySpecificAdd');
// ---------------------------------------
// Set buttons actions
// ---------------------------------------
$this->removeButton('back');
$this->removeButton('reset');
$this->removeButton('delete');
$this->removeButton('add');
$this->removeButton('save');
$this->removeButton('edit');
// ---------------------------------------
// ---------------------------------------
$this->setTemplate('M2ePro/common/amazon/template/description/category/specific/add.phtml');
// ---------------------------------------
}
示例15: __construct
public function __construct()
{
parent::__construct();
// Initialization block
//------------------------------
$this->setId('commonConfiguration');
//------------------------------
// Set header text
//------------------------------
$this->_headerText = Mage::helper('M2ePro')->__('Configuration');
//------------------------------
// Set buttons actions
//------------------------------
$this->removeButton('back');
$this->removeButton('delete');
$this->removeButton('add');
$this->removeButton('save');
$this->removeButton('edit');
//------------------------------
$this->setTemplate('M2ePro/common/component/container.phtml');
//------------------------------
}