コード例 #1
0
 /**
  * In transaction mails the store is passed by template definition and processing
  * 
  * @param type $storeId Store ID
  * 
  * @return Mage_Core_Model_Store
  */
 protected function _getStore($storeId = null)
 {
     if ($this->hasData('store')) {
         return $this->getData('store');
     } else {
         return parent::_getStore($storeId);
     }
 }
コード例 #2
0
 /**
  * Additional validation if displaying in shop frontend is allowed
  *
  * @return bool
  */
 public function isActive()
 {
     return parent::isActive() && Mage::getStoreConfig(Symmetrics_TrustedRating_Model_Trustedrating::XML_PATH_RATEUS_SHOW_IN_FRONTEND, $this->_getStore());
 }