element->appendChild($this->dom->createElement("id", $id)); return $this; } public function updated($timestamp) { $this->element->appendChild( $this->dom->createElement("updated", atom::unix_to_internet_timestamp($timestamp))); return $this; } public function title($title) { $this->element->appendChild($this->dom->createElement("title", $title)); return $this; } public function content($text, $type="html") { $content = $this->dom->createElement("content", html::chars($text)); $content->setAttribute("type", $type); $this->element->appendChild($content); return $this; } public function author() { return $this->add_child("Atom_Author", "author"); } public function link() { return $this->add_child("Atom_Link", "link"); } }