ZF-4509: Missing Function setArtist()

Issue Type: Bug Created: 2008-10-07T06:12:45.000+0000 Last Updated: 2009-01-14T13:34:15.000+0000 Status: Resolved Fix version(s): - 1.7.3 (19/Jan/09)

Reporter: Jaimie Garner (jaimie) Assignee: Benjamin Eberlei (beberlei) Tags: - Zend_Service_Audioscrobbler

Related issues: Attachments: - fix.patch


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()


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

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.