• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP Mage_Adminhtml_Block_Store_Switcher类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: getSwitchUrl

 public function getSwitchUrl()
 {
     if ($name = Mage::registry('aw_advancedreports_additional_name')) {
         return $this->getUrl('*/*/*', array('_current' => true, 'store' => null, 'website' => null, 'group' => null, 'name' => $name));
     }
     return parent::getSwitchUrl();
 }
开发者ID:xiaoguizhidao,项目名称:autotech_design,代码行数:7,代码来源:Switcher.php


示例2: __construct

 /**
  * Add website filter
  */
 public function __construct()
 {
     parent::__construct();
     $this->setUseConfirm(false);
     if ($this->_getCustomer()->getSharingConfig()->isWebsiteScope()) {
         $this->setWebsiteIds($this->_getCustomer()->getSharedWebsiteIds());
     }
 }
开发者ID:jpbender,项目名称:mage_virtual,代码行数:11,代码来源:Switcher.php


示例3: __construct

 public function __construct()
 {
     parent::__construct();
     $this->setTemplate('downloads/switcher_store.phtml');
     $this->setUseConfirm(true);
     $this->setUseAjax(true);
     $this->setDefaultStoreName(Mage::helper('downloads')->__('All Store Views'));
 }
开发者ID:commercekitchen,项目名称:dualeyewear-magento,代码行数:8,代码来源:Store.php


示例4: __construct

 /**
  * Set overriden params
  */
 public function __construct()
 {
     parent::__construct();
     $this->setUseConfirm(false)->setSwitchUrl($this->getUrl('*/*/*', array('store' => null)));
 }
开发者ID:quyip8818,项目名称:Mag,代码行数:8,代码来源:Switcher.php


示例5: _prepareLayout

 /**
  * Prepare sales data collection
  *
  * @return Mage_XmlConnect_Block_Adminhtml_Connect_Dashboard_SalesInfo
  */
 protected function _prepareLayout()
 {
     $this->registerStoreSwitcher();
     return parent::_prepareLayout();
 }
开发者ID:SalesOneGit,项目名称:s1_magento,代码行数:10,代码来源:StoreSwitcher.php


示例6: _toHtml

 protected function _toHtml()
 {
     if (strpos(Mage::app()->getRequest()->getControllerName(), 'report') !== false) {
         // ... and 1.3 (other) versions
         return $this->_toHtmlReports();
     }
     // the next code will work for all store selectors except reports
     $sHtml = parent::_toHtml();
     $role = Mage::getSingleton('aitpermissions/role');
     if ($role->isPermissionsEnabled()) {
         $AllowedStoreviews = $role->getAllowedStoreviewIds();
         if (!empty($AllowedStoreviews)) {
             if (!in_array(Mage::app()->getRequest()->getParam('store'), $AllowedStoreviews)) {
                 $url = Mage::getModel('adminhtml/url');
                 Mage::app()->getResponse()->setRedirect($url->getUrl('*/*/*', array('_current' => true, 'store' => $AllowedStoreviews[0])));
             }
         }
         // removing <option value="">All Store Views</option> option if have limited access
         $sHtml = preg_replace('@<option value="">(.*)</option>@', '', $sHtml);
     }
     // enhanced switcher is used on categories page
     if (preg_match('@varienStoreSwitcher@', $sHtml)) {
         $sHtml .= '
         <script type="text/javascript">
         try
         {
             Event.observe(window, "load", varienStoreSwitcher.optionOnChange);
         } catch (err) {}
         </script>
         ';
     }
     return $sHtml;
 }
开发者ID:finelinePG,项目名称:finelink-dev,代码行数:33,代码来源:AdminStoreSwitcher.php


示例7: __construct

 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct();
     $this->setTemplate('catalog/product/edit/websites.phtml');
 }
开发者ID:cewolf2002,项目名称:magento,代码行数:8,代码来源:Websites.php


示例8: __construct

 public function __construct()
 {
     parent::__construct();
     $this->setId('sc_store_select');
 }
开发者ID:jauderho,项目名称:magento-mirror,代码行数:5,代码来源:Select.php


示例9: __construct

 public function __construct()
 {
     parent::__construct();
     $this->setDefaultStoreName($this->__('Default Store (%s)', AO::app()->getDefaultStoreView()->getName()))->setUseConfirm(false)->setSwitchUrl($this->getUrl('*/*/*', array('store' => null)));
 }
开发者ID:ronseigel,项目名称:agent-ohm,代码行数:5,代码来源:Adminhtml_Store_Switcher.php


示例10: getStoreSwitcherHtml

 public function getStoreSwitcherHtml()
 {
     if ($this->_storeSwitcher) {
         return $this->_storeSwitcher->toHtml();
     }
 }
开发者ID:cesarfelip3,项目名称:clevermage_new,代码行数:6,代码来源:Container.php


示例11: __construct

 public function __construct()
 {
     parent::__construct();
     $this->setId('sc_store_select');
     $this->setTemplate('sales/order/create/store/select.phtml');
 }
开发者ID:ronseigel,项目名称:agent-ohm,代码行数:6,代码来源:Sales_Order_Create_Store_Select.php


示例12: __construct

 public function __construct()
 {
     parent::__construct();
     $this->setTemplate('styla/connect/adminhtml/hint/summary.phtml');
 }
开发者ID:styladev,项目名称:magentoStylaConnect,代码行数:5,代码来源:Summary.php


示例13: __construct

 /**
  * Set overriden params
  */
 public function __construct()
 {
     parent::__construct();
     $this->setTemplate('hideprice/store/switcher.phtml');
     $this->setUseConfirm(false);
 }
开发者ID:CE-Webmaster,项目名称:CE-Hub,代码行数:9,代码来源:Switcher.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap