ZF-11560: add getTotalUploadViews Method to Zend_Gdata_YouTube_Extension_Statistics

Issue Type: Improvement Created: 2011-07-13T14:01:21.000+0000 Last Updated: 2011-08-11T15:07:14.000+0000 Status: Open Fix version(s): Reporter: Aaron Newell (anewell) Assignee: Trevor Johns (tjohns) Tags: - Zend_Gdata

  • add

Related issues: Attachments:


There is an element inside of the node that is currently not able to be pulled by a Zend method. The element is called totalUploadViews. All other elements in the statistics node have a method except for this one.

Could this be added to the API?

Thank you for your time,


Posted by Nicolas Coze (nico_coze) on 2011-08-11T15:07:14.000+0000

The actual version looks for the attribute favoriteCount in the element . This attribute doesn't exist in the atom feed. To quickly fix this bug, edit the class Gdata/YouTube/Extension/Statistics.php and replace all variables by : - $_favoriteCount => $_totalUploadViews - _favoriteCount => _totalUploadViews - $favoriteCount => $totalUploadViews

then, at the line 142 replace : "$element->setAttribute('favoriteCount'" => "$element->setAttribute('totalUploadViews',"

and finally update the getter/setter methods by getTotalUploadViews and setTotalUploadViews

Have you found an issue?

See the Overview section for more details.


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

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