Ejemplo n.º 1
0
 /**
  * Counts photos
  *
  * @param string $type
  * @param bool $checkPrivacy
  * @param null $exclude
  * @return int
  */
 public function countPhotos($type, $checkPrivacy = true, $exclude = null)
 {
     if ($type == 'toprated') {
         return BOL_RateService::getInstance()->findMostRatedEntityCount('photo_rates', $exclude);
     }
     return $this->photoDao->countPhotos($type, $checkPrivacy, $exclude);
 }