API Documentation

Gdata/YouTube/VideoQuery.php

Includes Classes 
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Gdata
subpackage
YouTube
version
$Id: VideoQuery.php 20097 2010-01-06 15:40:27Z bate $
Classes
Zend_Gdata_YouTube_VideoQuery

Description

Zend Framework

LICENSE

This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.

Zend_Gdata_YouTube_VideoQuery

Extends from
Zend_Gdata_Query
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
link
http://code.google.com/apis/youtube/
package
Zend_Gdata
subpackage
YouTube
Methods
__construct
setFeedType
setLocation
getLocation
setLocationRadius
getLocationRadius
setTime
setUploader
setVideoQuery
setFormat
setRacy
getRacy
setSafeSearch
getSafeSearch
setOrderBy
getFormat
getVideoQuery
getTime
getOrderBy
getQueryString
getQueryUrl

Description

Assists in constructing queries for YouTube videos

Methods

__construct

__construct(  $url = null ) :

Create Gdata_YouTube_VideoQuery object

Arguments
$url
Details
visibility
public
final
false
static
false

getFormat

getFormat( ) : string|null

Return the value of the format parameter

Output
string|null
The value of format if it exists, null otherwise.
Details
visibility
public
final
false
static
false

getLocation

getLocation( ) : string|null

Get the value of the location parameter

Output
string|null
Return the location if it exists, null otherwise.
Details
visibility
public
final
false
static
false

getLocationRadius

getLocationRadius( ) : string|null

Get the value of the location-radius parameter

Output
string|null
Return the location-radius if it exists, null otherwise.
Details
visibility
public
final
false
static
false

getOrderBy

getOrderBy( ) : string|null

Return the value of the orderby parameter if it exists

Output
string|null
The value of orderby if it exists, null otherwise.
Details
visibility
public
final
false
static
false

getQueryString

getQueryString( integer $majorProtocolVersion = null, integer $minorProtocolVersion = null ) : string

Generate the query string from the URL parameters, optionally modifying them based on protocol version.

Arguments
$majorProtocolVersion
integer
The major protocol version
$minorProtocolVersion
integer
The minor protocol version
Output
string
querystring
Details
visibility
public
final
false
static
false
throws

getQueryUrl

getQueryUrl( integer $majorProtocolVersion = null, integer $minorProtocolVersion = null ) : string

Returns the generated full query URL, optionally modifying it based on the protocol version.

Arguments
$majorProtocolVersion
integer
The major protocol version
$minorProtocolVersion
integer
The minor protocol version
Output
string
The URL
Details
visibility
public
final
false
static
false

getRacy

getRacy( ) : string|null

Whether or not to include racy videos in the search results

Output
string|null
The value of racy if it exists, null otherwise.
Details
visibility
public
final
false
static
false

getSafeSearch

getSafeSearch( ) : string|null

Return the value of the safeSearch parameter

Output
string|null
The value of the safeSearch parameter if it has been set, null otherwise.
Details
visibility
public
final
false
static
false

getTime

getTime( ) : string|null

Return the value of the time parameter

Output
string|null
The time parameter if it exists, null otherwise.
Details
visibility
public
final
false
static
false

getVideoQuery

getVideoQuery( ) : string|null

Return the value of the video query that has been set

Output
string|null
The value of the video query if it exists, null otherwise.
Details
visibility
public
final
false
static
false

setFeedType

setFeedType( string $feedType, string $videoId = null, string $entry = null ) :

Sets the type of feed this query should be used to search

Arguments
$feedType
string
The type of feed
$videoId
string
The ID of the video associated with this query
$entry
string
The ID of the entry associated with this query
Details
visibility
public
final
false
static
false

setFormat

setFormat( string $value = null ) : Zend_Gdata_YouTube_VideoQuery

Sets the param to return videos of a specific format

Arguments
$value
string
Output
Zend_Gdata_YouTube_VideoQuery
Provides a fluent interface
Details
visibility
public
final
false
static
false

setLocation

setLocation( string $value ) : Zend_Gdata_YouTube_VideoQuery

Sets the location parameter for the query

Arguments
$value
string
Output
Zend_Gdata_YouTube_VideoQuery
Provides a fluent interface
Details
visibility
public
final
false
static
false
throws

setLocationRadius

setLocationRadius( string $value ) : Zend_Gdata_YouTube_VideoQuery

Sets the location-radius parameter for the query

Arguments
$value
string
Output
Zend_Gdata_YouTube_VideoQuery
Provides a fluent interface
Details
visibility
public
final
false
static
false

setOrderBy

setOrderBy( string $value ) : Zend_Gdata_YouTube_Query

Set the value of the orderby parameter

Arguments
$value
string
Output
Zend_Gdata_YouTube_Query
Provides a fluent interface
Details
visibility
public
final
false
static
false

setRacy

setRacy( string $value = null ) : Zend_Gdata_YouTube_VideoQuery

Sets whether or not to include racy videos in the search results

Arguments
$value
string
Output
Zend_Gdata_YouTube_VideoQuery
Provides a fluent interface
Details
visibility
public
final
false
static
false

setSafeSearch

setSafeSearch( string $value ) : Zend_Gdata_YouTube_VideoQuery

Set the safeSearch parameter

Arguments
$value
string
The value of the parameter, currently only 'none', 'moderate' or 'strict' are allowed values.
Output
Zend_Gdata_YouTube_VideoQuery
Provides a fluent interface
Details
visibility
public
final
false
static
false
throws

setTime

setTime( string $value = null ) : Zend_Gdata_YouTube_VideoQuery

Sets the time period over which this query should apply

Arguments
$value
string
Output
Zend_Gdata_YouTube_VideoQuery
Provides a fluent interface
Details
visibility
public
final
false
static
false
throws

setUploader

setUploader( string $value = null ) : Zend_Gdata_YouTube_VideoQuery

Sets the value of the uploader parameter

Arguments
$value
string
The value of the uploader parameter. Currently this can only be set to the value of 'partner'.
Output
Zend_Gdata_YouTube_VideoQuery
Provides a fluent interface
Details
visibility
public
final
false
static
false
throws

setVideoQuery

setVideoQuery( string $value = null ) : Zend_Gdata_YouTube_VideoQuery

Sets the formatted video query (vq) URL param value

Arguments
$value
string
Output
Zend_Gdata_YouTube_VideoQuery
Provides a fluent interface
Details
visibility
public
final
false
static
false
Documentation was generated by DocBlox.