From 7485740d9741021b2016df80b225ae4d82b892d0 Mon Sep 17 00:00:00 2001 From: Jozef Selesi Date: Sun, 23 Nov 2008 12:41:41 +0000 Subject: Changed and extended the Atom library a little so that the code for creating entries and feeds has been considerably simplified and reduced. --- modules/atom/libraries/Gallery_Atom_Feed.php | 39 ++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 modules/atom/libraries/Gallery_Atom_Feed.php (limited to 'modules/atom/libraries/Gallery_Atom_Feed.php') diff --git a/modules/atom/libraries/Gallery_Atom_Feed.php b/modules/atom/libraries/Gallery_Atom_Feed.php new file mode 100644 index 00000000..31f93ec6 --- /dev/null +++ b/modules/atom/libraries/Gallery_Atom_Feed.php @@ -0,0 +1,39 @@ +id(atom::get_absolute_url()); + $this->link() + ->rel("self") + ->href(atom::get_absolute_url()); + } + + public function link() { + return $this->add_child("Gallery_Atom_Link", "link"); + } +} -- cgit v1.2.3