ZF-4509: Missing Function setArtist()
Description
Ahh we are missing the function to set artist
Line 438 has the doc but no code. /** * Public functions for retrieveing artist-specific information * */
PHP Fatal error: Call to undefined method Zend_Service_Audioscrobbler::setArtist()
Comments
Posted by Jaimie Garner (jaimie) on 2008-10-07T06:17:22.000+0000
According to the Docs:
Example 40.13. Retrieving Related Artists
$as = new Zend_Service_Audioscrobbler(); $as->setArtist('LCD Soundsystem'); // Set the artist for whom you would like to retrieve related artists $relatedArtists = $as->artistGetRelatedArtists(); // Retrieve the related artists foreach ($relatedArtists as $artist) { print '' . $artist->name . '
'; // Display the related artists }
Posted by Ronald van Zuijlen (ronaldvz) on 2008-11-16T10:35:08.000+0000
Setting the artist can be done with the set($field, $value) method that is implemented in Zend_Service_Audioscrobbler. The actual setArtist method is not available. I've implemented a this convenience method that reuses the set($field, $value) method proved by Zend_Service_Audioscrobbler to comply with the information provided in the documentation.
Posted by Benjamin Eberlei (beberlei) on 2009-01-11T06:20:54.000+0000
Not only does setArtist() not exist, but also setAlbum, setUser, setTag and so on.
They were all be added by a __call intercept that proxies to set($name, $field)
Posted by Benjamin Eberlei (beberlei) on 2009-01-14T13:06:48.000+0000
Merged fix into 1.7 release branch, due to possible 1.7.3 release