summaryrefslogtreecommitdiff
path: root/modules/atom/libraries/Atom_Feed.php
diff options
context:
space:
mode:
Diffstat (limited to 'modules/atom/libraries/Atom_Feed.php')
-rw-r--r--modules/atom/libraries/Atom_Feed.php11
1 files changed, 4 insertions, 7 deletions
diff --git a/modules/atom/libraries/Atom_Feed.php b/modules/atom/libraries/Atom_Feed.php
index 8efeb4f2..9625f951 100644
--- a/modules/atom/libraries/Atom_Feed.php
+++ b/modules/atom/libraries/Atom_Feed.php
@@ -25,12 +25,14 @@ class Atom_Feed_Core extends Atom_Base {
}
public function title($title) {
+ /* @todo Add optional type argument that defaults to "text" */
$this->element->appendChild($this->dom->createElement("title", $title));
return $this;
}
- public function updated($updated) {
- $this->element->appendChild($this->dom->createElement("updated", $updated));
+ public function updated($timestamp) {
+ $this->element->appendChild(
+ $this->dom->createElement("updated", atom::unix_to_internet_timestamp($timestamp)));
return $this;
}
@@ -42,9 +44,4 @@ class Atom_Feed_Core extends Atom_Base {
/* Create new empty entry. */
return $this->add_child("Atom_Entry", "entry");
}
-
- public function append_entry($atom_entry) {
- /* Append an exising entry. */
- $this->element->appendChild($atom_entry->get_element());
- }
}