/** * {@inheritDoc} */ public function getDownloads() { $this->__initializer__ && $this->__initializer__->__invoke($this, 'getDownloads', array()); return parent::getDownloads(); }
/** * 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' : ''; }