Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(45)

Issue 20089: Adding support for additional attributes of yt:statistics (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
15 years, 1 month ago by api.jhartmann-google
Modified:
14 years, 8 months ago
Base URL:
http://framework.zend.com/svn/framework/standard/trunk
Visibility:
Public.

Description

As per http://framework.zend.com/issues/browse/ZF-5275

Patch Set 1 #

Patch Set 2 : Updated #

Patch Set 3 : Updated #

Unified diffs Side-by-side diffs Delta from patch set Stats (+170 lines, -19 lines) Patch
Statistics.php View 1 2 8 chunks +170 lines, -19 lines 0 comments Download

Messages

Total messages: 3
api.jhartmann-google
Adding some additional attributes: http://code.google.com/apis/youtube/2.0/reference.html#youtube_data_api_tag_yt:statistics (also present in v1 apparently...)
15 years, 1 month ago (2009-02-27 02:17:56 UTC) #1
Trevor Johns (Google)
I'm still getting errors, so I'm doing this review manually. Search for lines that stat ...
15 years, 1 month ago (2009-02-27 03:03:56 UTC) #2
api.jhartmann-google
15 years, 1 month ago (2009-02-27 19:24:53 UTC) #3
Updated (had to cut out your comments since I was running into message size
limits):


On 2009/02/27 03:03:56, Trevor Johns (Google) wrote:
> I'm still getting errors, so I'm doing this review manually.

SVN seems to be down. I am going to respond to your comments here:

> 
> Index: Statistics.php
> ===================================================================
> --- Statistics.php	(revision 14089)
> +++ Statistics.php	(working copy)
> @@ -16,7 +16,7 @@
>   * @category   Zend
>   * @package    Zend_Gdata
> +     * @var integer
> +     */
>      protected $_viewCount = null;
> -    protected $_watchCount = null;
>  
>      /**
> +     * The videoWatchCount attribute specifies the number of videos
> +     * that a user has watched on YouTube. The videoWatchCount attribute
> +     * is only specified when the <yt:statistics> tag appears within a
> +     * user profile entry.
> +     *
> +     * @var integer
> 
> ! Just to check, this is actually an integer and not an object, right? It
> ! looks like this should be an object. (Also applies for other doc comments
> ! below.)

I looked into this a bit and it seems like we are OK with just using integers.
That's how the old 'viewCount' attribute worked as well. Note these are just XML
attributes so I don't think they need to become objects.

> 
> +     */
> +    protected $_videoWatchCount = null;
> +
> +    /**
>       * Constructs a new Zend_Gdata_YouTube_Extension_Statistics object.
>       * @param string $viewCount(optional) The viewCount value
>       * @param string $watchCount(optional) The watchCount value
>       
> ! Add extra @params here.
Done (see patch 3)
> 
>       */
> -    public function __construct($viewCount = null, $watchCount = null)
> +    public function __construct($viewCount = null, $videoWatchCount = null,
> +        $subscriberCount = null, $lastWebAccess = null,
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b