예제 #1
0
 /**
  * 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);
 }
예제 #2
0
 /**
  * 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);
 }