本文整理汇总了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');
}
示例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'));
//------------------------------
}
示例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');
//------------------------------
}
示例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));
}
}
示例5: __construct
public function __construct()
{
$this->_controller = 'adminhtml_printbarcode';
$this->_blockGroup = 'inventorybarcode';
$this->_headerText = Mage::helper('inventorybarcode')->__('Print Barcodes');
parent::__construct();
}
示例6: __construct
/**
* Initializes the block
*/
public function __construct()
{
parent::__construct();
$this->_controller = 'adminhtml_productattributes';
$this->_removeButton('add');
$this->setTemplate('listrak/remarketing/productattributes.phtml');
}
示例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'));
//------------------------------
}
示例8: __construct
public function __construct()
{
parent::__construct();
$this->setTemplate('searchindex/validation/container.phtml');
$this->_controller = 'adminhtml_validation';
$this->_headerText = $this->__('Search Validation');
}
示例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');
}
示例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');
}
示例11: __construct
public function __construct()
{
$this->_controller = "adminhtml_chart";
$this->_blockGroup = "watchlog";
parent::__construct();
$this->setTemplate('watchlog/chart.phtml');
}
示例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);
}
示例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'));
//------------------------------
}
示例14: __construct
public function __construct()
{
$this->_controller = 'system_store';
$this->_headerText = Mage::helper('adminhtml')->__('Manage Stores');
$this->setTemplate('system/store/container.phtml');
parent::__construct();
}
示例15: __construct
public function __construct()
{
parent::__construct();
$this->_objectId = 'moderator_id';
$this->_blockGroup = 'moderator';
$this->_controller = 'adminhtml_moderators';
}