Note that there are some explanatory texts on larger screens.

plurals
  1. POParameters for Zend_Gdata_YouTube_VideoQuery::setOrderBy
    primarykey
    data
    text
    <p>Been scouring the internet looking for documentation that gives a list of acceptable strings for the function setOrderBy. </p> <p><a href="http://code.google.com/apis/youtube/1.0/developers_guide_php.html" rel="nofollow">The youtube API page on google code</a> has a <a href="http://framework.zend.com/apidoc/core/Zend_Gdata/YouTube/Zend_Gdata_YouTube_VideoQuery.html#setOrderBy" rel="nofollow">link to a dead page</a> at Zend Framework docs, and the docs that I was able to find <a href="http://framework.zend.com/apidoc/1.11/" rel="nofollow">here</a> (I would give a direct link but can't find any way to deep link to specific Zend docs - on the left expand Zend_Gdata -> youTube -> Zend_Gdata_YouTube_VideoQuery), provide no more detail than could be derived from the function name: </p> <pre><code>setOrderBy( string $value ) : \Zend_Gdata_YouTube_Query Set the value of the orderby parameter Parameters Name Type Description $value string Returns Type Description \Zend_Gdata_YouTube_Query Provides a fluent interface </code></pre> <p>The function in the Zend library is defined as follows: </p> <pre><code>/** * @param string $value * @return Zend_Gdata_Gbase_ItemQuery Provides a fluent interface */ public function setOrderBy($value) { if ($value !== null) { $this-&gt;_params['orderby'] = $value; } else { unset($this-&gt;_params['orderby']); } return $this; } </code></pre> <p>So not much help there either... several google searches didn't reveal anything. Is there any reference or documentation that maps specific strings to expected output? </p> <p><em><strong></em>**EDIT*<em>*</em>*</strong></p> <p>I found <a href="http://code.google.com/apis/youtube/2.0/developers_guide_php.html" rel="nofollow">a newer version of the youtube php developer API docs</a>. There is a section below that has more information for setOrderBy(). There is a list of 4 strings it will take, but if you provide the strings UPPER_CASE as shown in this documentation (eg: VIEW_COUNT) the query will not work. An example above the setOrderBy documentation calls the function using a camelCase string, and by brute force I was able to find these 4 working parameters: </p> <pre><code>'viewCount' 'relevance' 'updated' 'rating' </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload