/** * Counts clips * * @param string $type * @return int */ public function findClipsCount($type) { if ($type == 'toprated') { return BOL_RateService::getInstance()->findMostRatedEntityCount('video'); } return $this->clipDao->countClips($type); }
/** * Counts clips * * @param string $type * @return int */ public function findClipsCount($type) { if ($type == 'toprated') { return BOL_RateService::getInstance()->findMostRatedEntityCount(self::RATES_ENTITY_TYPE); } return $this->clipDao->countClips($type); }