コード例 #1
0
 /**
  * get all albums
  * 
  * @return json 
  *   
  */
 public function getAllAlbums()
 {
     $albums = parent::getAllAlbums();
     if ($albums) {
         return $this->buildAnswer(true, 'Ok', $albums['albums']);
     } else {
         return $this->buildAnswer(false, 'Cannot fetch albums at this time');
     }
 }