/** * Counts photos * * @param string $type * @return int */ public function countPhotosFeature($type, $checkPrivacy = true) { if ($type == 'toprated') { return BOL_RateService::getInstance()->findMostRatedEntityCount('photo'); } return $this->advancedphotoDao->countPhotosFeature($type, $checkPrivacy); }