|
| delete () |
| Delete an atom entry.
|
|
| save ($postUri=null) |
| Save a new or updated Atom entry.
|
|
| link ($rel=null) |
| Easy access to <link> tags keyed by "rel" attributes.
|
|
| __construct ($uri=null, $element=null) |
| Zend_Feed_Entry_Abstract constructor.
|
|
| __construct ($element=null) |
| Zend_Feed_Element constructor.
|
|
| getDOM () |
| Get a DOM representation of the element.
|
|
| setDOM (DOMElement $element) |
| Update the object from a DOM element.
|
|
| setParent (Zend_Feed_Element $element) |
| Set the parent element of this object to another Zend_Feed_Element.
|
|
| saveXml () |
| Get an XML string representation of this element.
|
|
| saveXmlFragment () |
| Get the XML for only this element.
|
|
| getEncoding () |
| Get encoding.
|
|
| setEncoding ($value) |
| Set encoding.
|
|
| __get ($var) |
| Map variable access onto the underlying entry representation.
|
|
| __set ($var, $val) |
| Map variable sets onto the underlying entry representation.
|
|
| __isset ($var) |
| Map isset calls onto the underlying entry representation.
|
|
| __call ($var, $unused) |
| Get the value of an element with method syntax.
|
|
| __unset ($var) |
| Remove all children matching $var.
|
|
| __toString () |
| Returns the nodeValue of this element when this object is used in a string context.
|
|
| offsetExists ($offset) |
| Required by the ArrayAccess interface.
|
|
| offsetGet ($offset) |
| Required by the ArrayAccess interface.
|
|
| offsetSet ($offset, $value) |
| Required by the ArrayAccess interface.
|
|
| offsetUnset ($offset) |
| Required by the ArrayAccess interface.
|
|
Easy access to <link> tags keyed by "rel" attributes.
If $elt->link() is called with no arguments, we will attempt to return the value of the <link> tag(s) like all other method-syntax attribute access. If an argument is passed to link(), however, then we will return the "href" value of the first <link> tag that has a "rel" attribute matching $rel:
$elt->link(): returns the value of the link tag. $elt->link('self'): returns the href from the first <link rel="self"> in the entry.
- Parameters
-
string | $rel | The "rel" attribute to look for. |
- Returns
- mixed
Save a new or updated Atom entry.
Save is used to either create new entries or to save changes to existing ones. If we have a link rel="edit", we are changing an existing entry. In this case we re-serialize the entry and PUT it to the edit URI, checking for a 200 OK result.
For posting new entries, you must specify the $postUri parameter to save() to tell the object where to post itself. We use $postUri and POST the serialized entry there, checking for a 201 Created response. If the insert is successful, we then parse the response from the POST to get any values that the server has generated: an id, an updated time, and its new link rel="edit".
- Parameters
-
string | $postUri | Location to POST for creating new entries. |
- Returns
- void
- Exceptions
-
- See Also
- Zend_Feed_Exception
-
Zend_Feed_Exception
-
Zend_Feed_Exception
-
Zend_Feed_Exception
-
Zend_Feed_Exception
-
Zend_Feed_Exception