Ejemplo n.º 1
0
 /**
  * {@inheritDoc}
  */
 public function getDownloads()
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'getDownloads', array());
     return parent::getDownloads();
 }
Ejemplo n.º 2
0
 /**
  * Defines specific downloads CSS class if necessary
  *
  * @param \XLite\Model\Module $module
  *
  * @return string
  */
 protected function getDownloadsCSSClass(\XLite\Model\Module $module)
 {
     return $module->getDownloads() / $this->getMaximumPopularity() >= static::MAX_POPULAR_LEVEL ? ' high-popular' : '';
 }