本文整理汇总了PHP中Mage_Core_Block_Template::_construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Mage_Core_Block_Template::_construct方法的具体用法?PHP Mage_Core_Block_Template::_construct怎么用?PHP Mage_Core_Block_Template::_construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Mage_Core_Block_Template
的用法示例。
在下文中一共展示了Mage_Core_Block_Template::_construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _construct
protected function _construct()
{
if ($this->getConfig('enabled') != 1) {
return false;
}
parent::_construct();
}
示例2: _construct
protected function _construct()
{
$this->setTemplate('arioem/part/selector.phtml');
// here we need to let Magento independent ARI API gateway know what's the current customer cost
Mage::getSingleton('customer/session')->unsCustomerCostPercent()->setCustomerCostPercent(Mage::helper('arioem')->getCustomerCostPercent());
return parent::_construct();
}
示例3: _construct
protected function _construct()
{
parent::_construct();
$this->setData('show_amounts', true);
$this->setData('use_container', true);
$this->setTemplate('page/html/pager.phtml');
}
示例4: _construct
protected function _construct()
{
parent::_construct();
$this->clientGoogle = Mage::getSingleton('sociallogin/google_client');
$this->clientFacebook = Mage::getSingleton('sociallogin/facebook_client');
$this->clientTwitter = Mage::getSingleton('sociallogin/twitter_client');
$this->clientLinkedin = Mage::getSingleton('sociallogin/linkedin_client');
if (!$this->_googleEnabled() && !$this->_facebookEnabled() && !$this->_twitterEnabled() && !$this->_linkedinEnabled()) {
return;
}
if ($this->_googleEnabled()) {
$this->numEnabled++;
}
if ($this->_facebookEnabled()) {
$this->numEnabled++;
}
if ($this->_twitterEnabled()) {
$this->numEnabled++;
}
if ($this->_linkedinEnabled()) {
$this->numEnabled++;
}
Mage::register('ced_sociallogin_button_text', $this->__('Login'));
$this->setTemplate('ced/sociallogin/checkout.phtml');
}
示例5: _construct
protected function _construct()
{
parent::_construct();
$this->setHelper();
$this->setUniqueId();
$this->setTemplate('emerchantpay/redirect/checkout.phtml');
}
示例6: _construct
protected function _construct()
{
parent::_construct();
$this->_controller = 'customer';
$this->_blockGroup = 'rewards';
$this->setTemplate('rewards/customer/transfers/reference.phtml');
}
示例7: _construct
public function _construct()
{
parent::_construct();
$this->setTemplate('rma/return/history.phtml');
$returns = Mage::getResourceModel('enterprise_rma/rma_grid_collection')->addFieldToSelect('*')->addFieldToFilter('customer_id', Mage::getSingleton('customer/session')->getCustomer()->getId())->setOrder('date_requested', 'desc');
$this->setReturns($returns);
}
示例8: _construct
protected function _construct()
{
$path = 'magicproduct/identifier/' . $this->getIdentifier();
$data = unserialize(Mage::getStoreConfig($path));
$this->addData($data);
parent::_construct();
}
示例9: _construct
protected function _construct()
{
parent::_construct();
$account = Mage::getSingleton('affiliateplus/session')->getAccount();
$collection = Mage::getResourceModel('affiliatepluswidget/widget_collection')->addFieldToFilter('account_id', $account->getId());
$this->setCollection($collection);
}
示例10: _construct
protected function _construct()
{
parent::_construct();
$this->addData(array('cache_lifetime' => false));
// 12 hours
$this->addCacheTag(array(Mage_Catalog_Model_Category::CACHE_TAG, Mage_Catalog_Model_Category::CACHE_TAG . '_' . $this->getParentCategoryId()));
}
示例11: _construct
protected function _construct()
{
parent::_construct();
if ($this->getRequest()->getControllerName() == 'quoteproducts') {
$this->_edcType = 'quote_products';
}
}
示例12: _construct
protected function _construct()
{
parent::_construct();
$this->setTemplate('rewards/product/predictpoints.phtml');
//@nelkaake Wednesday March 10, 2010 10:04:42 PM : New caching functionality
$this->setCacheLifetime(86400);
}
示例13: _construct
/**
* initialize
*
* @access public
* @author Ultimate Module Creator
*/
public function _construct()
{
parent::_construct();
$posts = Mage::getResourceModel('tech_blog/post_collection')->addStoreFilter(Mage::app()->getStore())->addFieldToFilter('status', 1);
$posts->setOrder('title', 'asc');
$this->setPosts($posts);
}
示例14: _construct
protected function _construct()
{
$type = $this->getRequest()->getParam('type');
$this->file = Mage::getModel('devel/file_' . $type, $this->getRequest()->getParam($type));
parent::_construct();
$this->setTemplate('devel/filesystem/edit.phtml');
}
示例15: _construct
protected function _construct()
{
parent::_construct();
$accountId = Mage::getSingleton('affiliateplus/session')->getAccount()->getId();
$allTierIds = Mage::helper('affiliatepluslevel')->getAllTierIds($accountId, Mage::app()->getStore()->getId());
if (count($allTierIds)) {
$allTierIdsString = implode(',', $allTierIds);
} else {
$allTierIdsString = 0;
}
$tierTable = Mage::getModel('core/resource')->getTableName('affiliatepluslevel_tier');
$collection = Mage::getModel('affiliateplus/account')->getCollection()->setStoreId(Mage::app()->getStore()->getId())->setOrder('created_time', 'DESC');
$collection->getSelect()->joinLeft($tierTable, "{$tierTable}.tier_id = main_table.account_id", array('level' => 'level', 'toptier_id' => 'toptier_id'))->where("account_id IN ({$allTierIdsString})");
$request = $this->getRequest();
if ($request->getParam('joined') == 'desc') {
$collection->getSelect()->order('created_time DESC');
} elseif ($request->getParam('joined') == 'asc') {
$collection->getSelect()->order('created_time ASC');
} elseif ($request->getParam('level') == 'desc') {
$collection->getSelect()->order('level DESC');
} elseif ($request->getParam('level') == 'asc') {
$collection->getSelect()->order('level ASC');
} else {
$collection->getSelect()->order('account_id DESC');
}
$this->setCollection($collection);
}