Exemplo n.º 1
0
 /**
  * Returns an instance of class.
  *
  * @return PHOTO_BOL_PhotoDao
  */
 public static function getInstance()
 {
     if (self::$classInstance === null) {
         self::$classInstance = new self();
     }
     return self::$classInstance;
 }
Exemplo n.º 2
0
 /**
  * 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);
 }
Exemplo n.º 3
0
 /**
  * Class constructor
  *
  */
 private function __construct()
 {
     $this->advancedphotoAlbumDao = ADVANCEDPHOTO_BOL_PhotoAlbumDao::getInstance();
     $this->advancedphotoDao = ADVANCEDPHOTO_BOL_PhotoDao::getInstance();
     $this->albumService = PHOTO_BOL_PhotoAlbumService::getInstance();
 }