Gdata/App/FeedEntryParent.php
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.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Gdata
- Subpackage
- App
- Version
- $Id$
\Zend_Gdata_App_FeedEntryParent
Package: Zend_Gdata\AppAbstract class for common functionality in entries and feeds
- Parent(s)
- \Zend_Gdata_App_Base
- Children
- \Zend_Gdata_App_FeedSourceParent
- \Zend_Gdata_App_Entry
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Properties
Methods
__construct( $element = null) : void
Constructs a Feed or Entry
ParametersName | Type | Description |
---|
$element | | |
---|
getAlternateLink() : \Zend_Gdata_App_Extension_Link
Returns the Zend_Gdata_App_Extension_Link element which represents
the URL for an alternate view of the data represented by this feed or
entry. This alternate view is commonly a user-facing webpage, blog
post, etc. The MIME type for the data at the URL is available from the
returned Zend_Gdata_App_Extension_Link element.
This link is in the atom feed/entry as an atom:link with a
rel attribute value of 'self'.
ReturnsgetCategory() : array
Returns the array of categories that classify this feed/entry. Each
category is represented in an atom feed by an atom:category element.
ReturnsType | Description |
---|
array | Array of Zend_Gdata_App_Extension_Category |
getContributor() : array
Returns the array of contributors to this feed/entry. Each contributor
is represented in an atom feed by an atom:contributor XML element
ReturnsType | Description |
---|
array | An array of Zend_Gdata_App_Extension_Contributor |
getEtag() : string | null
Return the Etag for the current entry, or null if not set.
ReturnsType | Description |
---|
string | null | |
getHttpClient() : \Zend_Http_Client_Abstract
Gets the HTTP client object. If none is set, a new Zend_Http_Client
will be used.
ReturnsDetails- Deprecated
- Deprecated as of Zend Framework 1.7. Use
getService() instead.
getLink(string $rel = null) : mixed
Given a particular 'rel' value, this method returns a matching
Zend_Gdata_App_Extension_Link element. If the 'rel' value
is not provided, the full array of Zend_Gdata_App_Extension_Link
elements is returned. In an atom feed, each link is represented
by an atom:link element. The 'rel' value passed to this function
is the atom:link/@rel attribute. Example rel values include 'self',
'edit', and 'alternate'.
ParametersName | Type | Description |
---|
$rel | string | The rel value of the link to be found. If null,
the array of Zend_Gdata_App_Extension_link elements is returned |
---|
ReturnsType | Description |
---|
mixed | Either a single Zend_Gdata_App_Extension_link element,
an array of the same or null is returned depending on the rel value
supplied as the argument to this function |
getMajorProtocolVersion() : \(int | \NULL)
Get the major protocol version that is in use.
ReturnsType | Description |
---|
\(int | \NULL) | The major protocol version in use. |
Details- See
-
getMinorProtocolVersion() : \(int | \NULL)
Get the minor protocol version that is in use.
ReturnsType | Description |
---|
\(int | \NULL) | The major protocol version in use, or NULL if no
minor version is specified. |
Details- See
-
getService() : \Zend_Gdata_App | null
Get the active service instance for this object. This will be used to
perform network requests, such as when calling save() and delete().
ReturnsType | Description |
---|
\Zend_Gdata_App | null | The current service instance, or null if
not set. |
getTitleValue() : string
Returns a string representation of the title of this feed or entry.
The title is an extremely short textual representation of this
resource and is found as an atom:title element in a feed or entry
ReturnslookupNamespace(string $prefix, integer $majorVersion = null, integer $minorVersion = null) : string
Get the full version of a namespace prefix
Looks up a prefix (atom:, etc.) in the list of registered
namespaces and returns the full namespace URI if
available. Returns the prefix, unmodified, if it's not
registered.
The current entry or feed's version will be used when performing the
namespace lookup unless overridden using $majorVersion and
$minorVersion. If the entry/fee has a null version, then the latest
protocol version will be used by default.
ParametersName | Type | Description |
---|
$prefix | string | The namespace prefix to lookup. |
---|
$majorVersion | integer | The major protocol version in effect.
Defaults to null (auto-select).
|
---|
$minorVersion | integer | The minor protocol version in effect.
Defaults to null (auto-select).
|
---|
ReturnssetAuthor(array $value) : \Zend_Gdata_App_FeedEntryParent
Sets the list of the authors of this feed/entry. In an atom feed, each
author is represented by an atom:author element
ParametersName | Type | Description |
---|
$value | array | |
---|
Returns setCategory(array $value) : \Zend_Gdata_App_FeedEntryParent
Sets the array of categories that classify this feed/entry. Each
category is represented in an atom feed by an atom:category element.
ParametersName | Type | Description |
---|
$value | array | Array of Zend_Gdata_App_Extension_Category |
---|
Returns setContributor(array $value) : \Zend_Gdata_App_FeedEntryParent
Sets the array of contributors to this feed/entry. Each contributor
is represented in an atom feed by an atom:contributor XML element
ParametersName | Type | Description |
---|
$value | array | |
---|
Returns setEtag(string | null $value) : \Zend_Gdata_App_Entry
Set the Etag for the current entry to $value. Setting $value to null
unsets the Etag.
ParametersName | Type | Description |
---|
$value | string | null | |
---|
Returns setHttpClient(\Zend_Http_Client $httpClient) : \Zend_Gdata_App_FeedEntryParent
Set the HTTP client instance
Sets the HTTP client object to use for retrieving the feed.
ParametersReturnsDetails- Deprecated
- Deprecated as of Zend Framework 1.7. Use
setService() instead.
setMajorProtocolVersion(\(int | \NULL) $value) : void
Set the major protocol version that should be used. Values < 1
(excluding NULL) will cause a Zend_Gdata_App_InvalidArgumentException
to be thrown.
ParametersName | Type | Description |
---|
$value | \(int | \NULL) | The major protocol version to use. |
---|
ThrowsDetails- See
-
setMinorProtocolVersion(\(int | \NULL) $value) : void
Set the minor protocol version that should be used. If set to NULL, no
minor protocol version will be sent to the server. Values < 0 will
cause a Zend_Gdata_App_InvalidArgumentException to be thrown.
ParametersName | Type | Description |
---|
$value | \(int | \NULL) | The minor protocol version to use. |
---|
ThrowsDetails- See
-