summaryrefslogtreecommitdiff
path: root/modules/atom/libraries
diff options
context:
space:
mode:
authorJozef Selesi <jozefs@users.sourceforge.net>2008-11-23 00:24:56 +0000
committerJozef Selesi <jozefs@users.sourceforge.net>2008-11-23 00:24:56 +0000
commitd14d312d0699677a00c71e38b9d3ce26d6629597 (patch)
tree088bb2333e878b96ab4d17cc959440189a118d90 /modules/atom/libraries
parentd93d37a10c289d9ffe99e765c45f47209686c893 (diff)
* Individual comment views now output valid Atom 1.0 entries:
http://example.gallery.com/index.php/comments/{comment_id}?_format=atom * Changed Content-Type of Atom feeds and entries to XML for easier debugging. * Added an Atom helper class with some common functions and cleaned up entry and feed generation code a bit in the comment helper. * Style fixes.
Diffstat (limited to 'modules/atom/libraries')
-rw-r--r--modules/atom/libraries/Atom_Author.php1
-rw-r--r--modules/atom/libraries/Atom_Base.php1
-rw-r--r--modules/atom/libraries/Atom_Entry.php1
-rw-r--r--modules/atom/libraries/Atom_Feed.php1
-rw-r--r--modules/atom/libraries/Atom_Link.php1
5 files changed, 5 insertions, 0 deletions
diff --git a/modules/atom/libraries/Atom_Author.php b/modules/atom/libraries/Atom_Author.php
index ec3c61aa..3ee4df41 100644
--- a/modules/atom/libraries/Atom_Author.php
+++ b/modules/atom/libraries/Atom_Author.php
@@ -17,6 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
*/
+
class Atom_Author_Core extends Atom_Base {
public function name($name) {
$this->element->appendChild($this->dom->createElement("name", $name));
diff --git a/modules/atom/libraries/Atom_Base.php b/modules/atom/libraries/Atom_Base.php
index bf115033..0cb33b0b 100644
--- a/modules/atom/libraries/Atom_Base.php
+++ b/modules/atom/libraries/Atom_Base.php
@@ -17,6 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
*/
+
class Atom_Base_Core {
protected $dom;
protected $element;
diff --git a/modules/atom/libraries/Atom_Entry.php b/modules/atom/libraries/Atom_Entry.php
index d566f49b..345755c2 100644
--- a/modules/atom/libraries/Atom_Entry.php
+++ b/modules/atom/libraries/Atom_Entry.php
@@ -17,6 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
*/
+
class Atom_Entry_Core extends Atom_Base {
public function id($id) {
$this->element->appendChild($this->dom->createElement("id", $id));
diff --git a/modules/atom/libraries/Atom_Feed.php b/modules/atom/libraries/Atom_Feed.php
index 0b667e88..8efeb4f2 100644
--- a/modules/atom/libraries/Atom_Feed.php
+++ b/modules/atom/libraries/Atom_Feed.php
@@ -17,6 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
*/
+
class Atom_Feed_Core extends Atom_Base {
public function id($id) {
$this->element->appendChild($this->dom->createElement("id", $id));
diff --git a/modules/atom/libraries/Atom_Link.php b/modules/atom/libraries/Atom_Link.php
index 5fff30f2..723675c1 100644
--- a/modules/atom/libraries/Atom_Link.php
+++ b/modules/atom/libraries/Atom_Link.php
@@ -17,6 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
*/
+
class Atom_Link_Core extends Atom_Base {
public function rel($rel) {
$this->element->setAttribute("rel", $rel);