element->appendChild($this->dom->createElement("id", $id)); return $this; } 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($timestamp) { $this->element->appendChild( $this->dom->createElement("updated", atom::unix_to_internet_timestamp($timestamp))); return $this; } public function link() { return $this->add_child("Atom_Link", "link"); } public function entry() { /* Create new empty entry. */ return $this->add_child("Atom_Entry", "entry"); } }