예제 #1
0
 /**
  * Get album cover - album first image URL
  *
  * @param int $albumId
  * @return string
  */
 public function getAlbumCover($albumId)
 {
     if (!$albumId) {
         return null;
     }
     $photo = $this->photoDao->getFirstPhoto($albumId);
     return $photo ? $this->photoDao->getPhotoUrl($photo->id, $photo->hash, true) : null;
 }