Ejemplo n.º 1
0
 function getTopTracks($options = '')
 {
     $options = empty($options) ? '' : '&' . $options;
     $data = parent::retrieve('artist.getTopTracks&artist=' . $this->artist);
     $topTracks = $data->toptracks->track;
     foreach ($topTracks as $track) {
         $output[$track['rank']] = array('name' => $track->name, 'mbid' => $track->mbid, 'playcount' => $track->playcount, 'listeners' => $track->listners, 'url' => $track->url, 'image' => array('small' => $track->image['small'], 'medium' => $track->image['medium'], 'large' => $track->image['large']));
     }
     return $output;
 }
Ejemplo n.º 2
0
 function getTopTags($options = '')
 {
     $options = empty($options_) ? '' : '&' . $options;
     $data = parent::retrieve('user.getTopTags&user='******'name' => $tag->name, 'count' => $tag->count, 'url' => $tag->url);
     }
     return $output;
 }