本文整理汇总了PHP中Mage_Adminhtml_Block_Store_Switcher::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Mage_Adminhtml_Block_Store_Switcher::__construct方法的具体用法?PHP Mage_Adminhtml_Block_Store_Switcher::__construct怎么用?PHP Mage_Adminhtml_Block_Store_Switcher::__construct使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Mage_Adminhtml_Block_Store_Switcher
的用法示例。
在下文中一共展示了Mage_Adminhtml_Block_Store_Switcher::__construct方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __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'));
}
示例2: __construct
/**
* Add website filter
*/
public function __construct()
{
parent::__construct();
$this->setUseConfirm(false);
if ($this->_getCustomer()->getSharingConfig()->isWebsiteScope()) {
$this->setWebsiteIds($this->_getCustomer()->getSharedWebsiteIds());
}
}
示例3: __construct
public function __construct()
{
parent::__construct();
$role = Mage::getSingleton('aitpermissions/role');
if ($role->isScopeStore()) {
$this->hasDefaultOption(false);
}
if ($role->isScopeWebsite()) {
$this->setWebsiteIds($role->getAllowedWebsiteIds());
}
}
示例4: __construct
/**
* Set overriden params
*/
public function __construct()
{
parent::__construct();
$this->setUseConfirm(false)->setSwitchUrl($this->getUrl('*/*/*', array('store' => null)));
}
示例5: __construct
/**
* Constructor
*/
public function __construct()
{
parent::__construct();
$this->setTemplate('catalog/product/edit/websites.phtml');
}
示例6: __construct
public function __construct()
{
parent::__construct();
$this->setId('sc_store_select');
}
示例7: __construct
public function __construct()
{
parent::__construct();
$this->setDefaultStoreName($this->__('Default Store (%s)', AO::app()->getDefaultStoreView()->getName()))->setUseConfirm(false)->setSwitchUrl($this->getUrl('*/*/*', array('store' => null)));
}
示例8: __construct
public function __construct()
{
parent::__construct();
$this->setId('sc_store_select');
$this->setTemplate('sales/order/create/store/select.phtml');
}
示例9: __construct
public function __construct()
{
parent::__construct();
$this->setTemplate('styla/connect/adminhtml/hint/summary.phtml');
}
示例10: __construct
/**
* Set overriden params
*/
public function __construct()
{
parent::__construct();
$this->setTemplate('hideprice/store/switcher.phtml');
$this->setUseConfirm(false);
}