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.
Abstract class for common functionality in entries and feeds
$_author = 'array'
$_category = 'array'
$_contributor = 'array'
string|null $_etag = 'NULL'
The HTTP ETag associated with this entry. Used for optimistic concurrency in protoco v2 or greater.
$_id = 'null'
$_link = 'array'
$_majorProtocolVersion = '1'
Indicates the major protocol version that should be used.
At present, recognized values are either 1 or 2. However, any integer value >= 1 is considered valid.
$_minorProtocolVersion = 'null'
Indicates the minor protocol version that should be used. Can be set to either an integer >= 0, or NULL if no minor version should be sent to the server.
$_rights = 'null'
$_service = 'null'
Service instance used to make network requests.
$_title = 'null'
$_updated = 'null'
__construct(
$element
=
null
)
:
Constructs a Feed or Entry
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'.
getCategory(
)
:
array
Returns the array of categories that classify this feed/entry. Each category is represented in an atom feed by an atom:category element.
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
getDOM(
$doc
=
null, $majorVersion
=
1, $minorVersion
=
null
)
:
getEditLink(
)
:
Zend_Gdata_App_Extension_Link
Returns the Zend_Gdata_App_Extension_Link element which represents the URL used to edit this resource. This link is in the atom feed/entry as an atom:link with a rel attribute value of 'edit'.
getEtag(
)
:
string|null
Return the Etag for the current entry, or null if not set.
getHttpClient(
)
:
Zend_Http_Client_Abstract
Gets the HTTP client object. If none is set, a new Zend_Http_Client will be used.
getLicenseLink(
)
:
Zend_Gdata_App_Extension_Link
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'.
getMajorProtocolVersion(
)
:
(int|NULL)
Get the major protocol version that is in use.
getMinorProtocolVersion(
)
:
(int|NULL)
Get the minor protocol version that is in use.
getNextLink(
)
:
Zend_Gdata_App_Extension_Link
Returns the Zend_Gdata_App_Extension_Link element which represents the URL used to retrieve the next chunk of results when paging through a feed. This link is in the atom feed as an atom:link with a rel attribute value of 'next'.
getPreviousLink(
)
:
Zend_Gdata_App_Extension_Link
Returns the Zend_Gdata_App_Extension_Link element which represents the URL used to retrieve the previous chunk of results when paging through a feed. This link is in the atom feed as an atom:link with a rel attribute value of 'previous'.
getRights(
)
:
Zend_Gdata_AppExtension_Rights
getSelfLink(
)
:
Zend_Gdata_App_Extension_Link
Returns the Zend_Gdata_App_Extension_Link element which represents the URL used to retrieve the entry or feed represented by this object This link is in the atom feed/entry as an atom:link with a rel attribute value of 'self'.
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().
getTitle(
)
:
Zend_Gdata_App_Extension_Title
Returns 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
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
lookupNamespace(
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.
setAuthor(
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
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.
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
setEtag(
string|null $value
)
:
Zend_Gdata_App_Entry
Set the Etag for the current entry to $value. Setting $value to null unsets the Etag.
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.
setId(
Zend_Gdata_App_Extension_Id $value
)
:
Zend_Gdata_App_FeedEntryParent
setLink(
array $value
)
:
Zend_Gdata_App_FeedEntryParent
setMajorProtocolVersion(
(int|NULL) $value
)
:
Set the major protocol version that should be used. Values < 1 (excluding NULL) will cause a Zend_Gdata_App_InvalidArgumentException to be thrown.
setMinorProtocolVersion(
(int|NULL) $value
)
:
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.
setRights(
Zend_Gdata_App_Extension_Rights $value
)
:
Zend_Gdata_App_FeedEntryParent
setService(
Zend_Gdata_App $instance
)
:
Zend_Gdata_App_FeedEntryParent
Set the active service instance for this object. This will be used to perform network requests, such as when calling save() and delete().
setTitle(
Zend_Gdata_App_Extension_Title $value
)
:
Zend_Gdata_App_FeedEntryParent
Returns 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
setUpdated(
Zend_Gdata_App_Extension_Updated $value
)
:
Zend_Gdata_App_FeedEntryParent
takeChildFromDOM(
$child
)
: