示例#1
0
 /**
  * Register the CSS classes for this block
  *
  * @return string
  */
 protected function getBlockClasses()
 {
     return parent::getBlockClasses() . ' block-featured-products';
 }
示例#2
0
 /**
  * Get cache parameters
  *
  * @return array
  */
 protected function getCacheParameters()
 {
     $list = parent::getCacheParameters();
     $list[] = md5(serialize($this->getParam(self::PARAM_FILTER)));
     return $list;
 }
示例#3
0
 /**
  * Cache allowed
  *
  * @param string $template Template
  *
  * @return boolean
  */
 protected function isCacheAllowed($template)
 {
     return parent::isCacheAllowed($template) && !isset($template) && $this->isStaticProductList();
 }