Author: as Date: Thu Nov 15 18:49:36 2007 New Revision: 6746 Log: - Added parsing of 'content' ATOM feed entry sub-element. # Support for generating 'content' will follow later.
Added: trunk/Feed/tests/atom/regression/parse/entry/content/ trunk/Feed/tests/atom/regression/parse/entry/content/content_empty.in trunk/Feed/tests/atom/regression/parse/entry/content/content_empty.out trunk/Feed/tests/atom/regression/parse/entry/content/content_src.in trunk/Feed/tests/atom/regression/parse/entry/content/content_src.out trunk/Feed/tests/atom/regression/parse/entry/content/content_src_type_zip.in trunk/Feed/tests/atom/regression/parse/entry/content/content_src_type_zip.out trunk/Feed/tests/atom/regression/parse/entry/content/content_type_absent.in trunk/Feed/tests/atom/regression/parse/entry/content/content_type_absent.out trunk/Feed/tests/atom/regression/parse/entry/content/content_type_atom+xml.in trunk/Feed/tests/atom/regression/parse/entry/content/content_type_atom+xml.out trunk/Feed/tests/atom/regression/parse/entry/content/content_type_html.in trunk/Feed/tests/atom/regression/parse/entry/content/content_type_html.out trunk/Feed/tests/atom/regression/parse/entry/content/content_type_png.in trunk/Feed/tests/atom/regression/parse/entry/content/content_type_png.out trunk/Feed/tests/atom/regression/parse/entry/content/content_type_png_split_lines.in trunk/Feed/tests/atom/regression/parse/entry/content/content_type_png_split_lines.out trunk/Feed/tests/atom/regression/parse/entry/content/content_type_text.in trunk/Feed/tests/atom/regression/parse/entry/content/content_type_text.out trunk/Feed/tests/atom/regression/parse/entry/content/content_type_text_other.in trunk/Feed/tests/atom/regression/parse/entry/content/content_type_text_other.out trunk/Feed/tests/atom/regression/parse/entry/content/content_type_xhtml.in trunk/Feed/tests/atom/regression/parse/entry/content/content_type_xhtml.out trunk/Feed/tests/atom/regression/parse/entry/content/content_type_xml.in trunk/Feed/tests/atom/regression/parse/entry/content/content_type_xml.out trunk/Feed/tests/atom/regression/parse/entry/content/powered-by-141x32-white.png (with props) Modified: trunk/Feed/src/processors/atom.php Modified: trunk/Feed/src/processors/atom.php ============================================================================== --- trunk/Feed/src/processors/atom.php [iso-8859-1] (original) +++ trunk/Feed/src/processors/atom.php [iso-8859-1] Thu Nov 15 18:49:36 2007 @@ -116,7 +116,8 @@ 'MULTI' => 'authors' ), 'content' => array( '#' => 'string', - 'ATTRIBUTES' => array( 'type' => 'string' ), ), + 'ATTRIBUTES' => array( 'type' => 'string', + 'src' => 'string' ), ), 'link' => array( '#' => 'none', 'ATTRIBUTES' => array( 'href' => 'string', @@ -783,6 +784,73 @@ } break; + case 'content': + $type = ezcFeedTools::getAttribute( $itemChild, 'type' ); + $src = ezcFeedTools::getAttribute( $itemChild, 'src' ); + + switch ( $type ) + { + case 'xhtml': + $nodes = $itemChild->childNodes; + if ( $nodes instanceof DOMNodeList ) + { + $contentNode = $nodes->item( 1 ); + $element->$tagName = $contentNode->nodeValue; + } + $element->$tagName->type = $type; + break; + + case 'html': + $element->$tagName = $itemChild->textContent; + $element->$tagName->type = $type; + break; + + case 'text': + $element->$tagName = $itemChild->textContent; + $element->$tagName->type = $type; + break; + + case null: + $element->$tagName = $itemChild->textContent; + break; + + default: + if ( substr_compare( $type, '+xml', -4, 4, true ) === 0 + || substr_compare( $type, '/xml', -4, 4, true ) === 0 ) + { + foreach ( $itemChild->childNodes as $node ) + { + if ( $node->nodeType === XML_ELEMENT_NODE ) + { + $doc = new DOMDocument( '1.0', 'UTF-8' ); + $copyNode = $doc->importNode( $node, true ); + $doc->appendChild( $copyNode ); + $element->$tagName = $doc->saveXML(); + $element->$tagName->type = $type; + break; + } + } + } + else if ( substr_compare( $type, 'text/', 0, 5, true ) === 0 ) + { + $element->$tagName = $itemChild->textContent; + $element->$tagName->type = $type; + break; + } + else // base64 + { + $element->$tagName = base64_decode( $itemChild->textContent ); + $element->$tagName->type = $type; + } + break; + } + + if ( $src !== null ) + { + $element->$tagName->src = $src; + } + break; + case 'link': $subElement = $element->add( $tagName ); foreach ( ezcFeedTools::getAttributes( $itemChild ) as $key => $value ) Added: trunk/Feed/tests/atom/regression/parse/entry/content/content_empty.in ============================================================================== --- trunk/Feed/tests/atom/regression/parse/entry/content/content_empty.in (added) +++ trunk/Feed/tests/atom/regression/parse/entry/content/content_empty.in [iso-8859-1] Thu Nov 15 18:49:36 2007 @@ -1,0 +1,12 @@ +<?xml version="1.0" encoding="utf-8"?> +<feed xmlns="http://www.w3.org/2005/Atom"> + <id>Feed id</id> + <title type="text">Feed title</title> + <updated>Feed updated</updated> + <entry> + <id>Entry id</id> + <title>Entry title</title> + <updated>2007-11-14T16:23:40+01:00</updated> + <content/> + </entry> +</feed> Added: trunk/Feed/tests/atom/regression/parse/entry/content/content_empty.out ============================================================================== --- trunk/Feed/tests/atom/regression/parse/entry/content/content_empty.out (added) +++ trunk/Feed/tests/atom/regression/parse/entry/content/content_empty.out [iso-8859-1] Thu Nov 15 18:49:36 2007 @@ -1,0 +1,17 @@ +<?php +$feed = new ezcFeed( 'atom' ); + +$feed->id = 'Feed id'; +$feed->title = 'Feed title'; +$feed->title->type = 'text'; +$feed->updated = 'Feed updated'; + +$entry = $feed->add( 'entry' ); +$entry->id = 'Entry id'; +$entry->title = 'Entry title'; +$entry->updated = 1195053820; + +$entry->content = ''; + +return $feed; +?> Added: trunk/Feed/tests/atom/regression/parse/entry/content/content_src.in ============================================================================== --- trunk/Feed/tests/atom/regression/parse/entry/content/content_src.in (added) +++ trunk/Feed/tests/atom/regression/parse/entry/content/content_src.in [iso-8859-1] Thu Nov 15 18:49:36 2007 @@ -1,0 +1,12 @@ +<?xml version="1.0" encoding="utf-8"?> +<feed xmlns="http://www.w3.org/2005/Atom"> + <id>Feed id</id> + <title type="text">Feed title</title> + <updated>Feed updated</updated> + <entry> + <id>Entry id</id> + <title>Entry title</title> + <updated>2007-11-14T16:23:40+01:00</updated> + <content src="http://ezcomponents.org/files/downloads/ezcomponents-1.0.zip"/> + </entry> +</feed> Added: trunk/Feed/tests/atom/regression/parse/entry/content/content_src.out ============================================================================== --- trunk/Feed/tests/atom/regression/parse/entry/content/content_src.out (added) +++ trunk/Feed/tests/atom/regression/parse/entry/content/content_src.out [iso-8859-1] Thu Nov 15 18:49:36 2007 @@ -1,0 +1,18 @@ +<?php +$feed = new ezcFeed( 'atom' ); + +$feed->id = 'Feed id'; +$feed->title = 'Feed title'; +$feed->title->type = 'text'; +$feed->updated = 'Feed updated'; + +$entry = $feed->add( 'entry' ); +$entry->id = 'Entry id'; +$entry->title = 'Entry title'; +$entry->updated = 1195053820; + +$entry->content = ''; +$entry->content->src = 'http://ezcomponents.org/files/downloads/ezcomponents-1.0.zip'; + +return $feed; +?> Added: trunk/Feed/tests/atom/regression/parse/entry/content/content_src_type_zip.in ============================================================================== --- trunk/Feed/tests/atom/regression/parse/entry/content/content_src_type_zip.in (added) +++ trunk/Feed/tests/atom/regression/parse/entry/content/content_src_type_zip.in [iso-8859-1] Thu Nov 15 18:49:36 2007 @@ -1,0 +1,12 @@ +<?xml version="1.0" encoding="utf-8"?> +<feed xmlns="http://www.w3.org/2005/Atom"> + <id>Feed id</id> + <title type="text">Feed title</title> + <updated>Feed updated</updated> + <entry> + <id>Entry id</id> + <title>Entry title</title> + <updated>2007-11-14T16:23:40+01:00</updated> + <content type="application/x-zip" src="http://ezcomponents.org/files/downloads/ezcomponents-1.0.zip"/> + </entry> +</feed> Added: trunk/Feed/tests/atom/regression/parse/entry/content/content_src_type_zip.out ============================================================================== --- trunk/Feed/tests/atom/regression/parse/entry/content/content_src_type_zip.out (added) +++ trunk/Feed/tests/atom/regression/parse/entry/content/content_src_type_zip.out [iso-8859-1] Thu Nov 15 18:49:36 2007 @@ -1,0 +1,19 @@ +<?php +$feed = new ezcFeed( 'atom' ); + +$feed->id = 'Feed id'; +$feed->title = 'Feed title'; +$feed->title->type = 'text'; +$feed->updated = 'Feed updated'; + +$entry = $feed->add( 'entry' ); +$entry->id = 'Entry id'; +$entry->title = 'Entry title'; +$entry->updated = 1195053820; + +$entry->content = ''; +$entry->content->type = 'application/x-zip'; +$entry->content->src = 'http://ezcomponents.org/files/downloads/ezcomponents-1.0.zip'; + +return $feed; +?> Added: trunk/Feed/tests/atom/regression/parse/entry/content/content_type_absent.in ============================================================================== --- trunk/Feed/tests/atom/regression/parse/entry/content/content_type_absent.in (added) +++ trunk/Feed/tests/atom/regression/parse/entry/content/content_type_absent.in [iso-8859-1] Thu Nov 15 18:49:36 2007 @@ -1,0 +1,12 @@ +<?xml version="1.0" encoding="utf-8"?> +<feed xmlns="http://www.w3.org/2005/Atom"> + <id>Feed id</id> + <title type="text">Feed title</title> + <updated>Feed updated</updated> + <entry> + <id>Entry id</id> + <title>Entry title</title> + <updated>2007-11-14T16:23:40+01:00</updated> + <content>Entry content</content> + </entry> +</feed> Added: trunk/Feed/tests/atom/regression/parse/entry/content/content_type_absent.out ============================================================================== --- trunk/Feed/tests/atom/regression/parse/entry/content/content_type_absent.out (added) +++ trunk/Feed/tests/atom/regression/parse/entry/content/content_type_absent.out [iso-8859-1] Thu Nov 15 18:49:36 2007 @@ -1,0 +1,17 @@ +<?php +$feed = new ezcFeed( 'atom' ); + +$feed->id = 'Feed id'; +$feed->title = 'Feed title'; +$feed->title->type = 'text'; +$feed->updated = 'Feed updated'; + +$entry = $feed->add( 'entry' ); +$entry->id = 'Entry id'; +$entry->title = 'Entry title'; +$entry->updated = 1195053820; + +$entry->content = 'Entry content'; + +return $feed; +?> Added: trunk/Feed/tests/atom/regression/parse/entry/content/content_type_atom+xml.in ============================================================================== --- trunk/Feed/tests/atom/regression/parse/entry/content/content_type_atom+xml.in (added) +++ trunk/Feed/tests/atom/regression/parse/entry/content/content_type_atom+xml.in [iso-8859-1] Thu Nov 15 18:49:36 2007 @@ -1,0 +1,14 @@ +<?xml version="1.0" encoding="utf-8"?> +<feed xmlns="http://www.w3.org/2005/Atom"> + <id>Feed id</id> + <title type="text">Feed title</title> + <updated>Feed updated</updated> + <entry> + <id>Entry id</id> + <title>Entry title</title> + <updated>2007-11-14T16:23:40+01:00</updated> + <content type="application/atom+xml"> + <root>Entry content</root> + </content> + </entry> +</feed> Added: trunk/Feed/tests/atom/regression/parse/entry/content/content_type_atom+xml.out ============================================================================== --- trunk/Feed/tests/atom/regression/parse/entry/content/content_type_atom+xml.out (added) +++ trunk/Feed/tests/atom/regression/parse/entry/content/content_type_atom+xml.out [iso-8859-1] Thu Nov 15 18:49:36 2007 @@ -1,0 +1,20 @@ +<?php +$feed = new ezcFeed( 'atom' ); + +$feed->id = 'Feed id'; +$feed->title = 'Feed title'; +$feed->title->type = 'text'; +$feed->updated = 'Feed updated'; + +$entry = $feed->add( 'entry' ); +$entry->id = 'Entry id'; +$entry->title = 'Entry title'; +$entry->updated = 1195053820; + +$entry->content = '<?xml version="1.0" encoding="UTF-8"?> +<root xmlns="http://www.w3.org/2005/Atom">Entry content</root> +'; +$entry->content->type = 'application/atom+xml'; + +return $feed; +?> Added: trunk/Feed/tests/atom/regression/parse/entry/content/content_type_html.in ============================================================================== --- trunk/Feed/tests/atom/regression/parse/entry/content/content_type_html.in (added) +++ trunk/Feed/tests/atom/regression/parse/entry/content/content_type_html.in [iso-8859-1] Thu Nov 15 18:49:36 2007 @@ -1,0 +1,12 @@ +<?xml version="1.0" encoding="utf-8"?> +<feed xmlns="http://www.w3.org/2005/Atom"> + <id>Feed id</id> + <title type="text">Feed title</title> + <updated>Feed updated</updated> + <entry> + <id>Entry id</id> + <title>Entry title</title> + <updated>2007-11-14T16:23:40+01:00</updated> + <content type="html">Entry content</content> + </entry> +</feed> Added: trunk/Feed/tests/atom/regression/parse/entry/content/content_type_html.out ============================================================================== --- trunk/Feed/tests/atom/regression/parse/entry/content/content_type_html.out (added) +++ trunk/Feed/tests/atom/regression/parse/entry/content/content_type_html.out [iso-8859-1] Thu Nov 15 18:49:36 2007 @@ -1,0 +1,18 @@ +<?php +$feed = new ezcFeed( 'atom' ); + +$feed->id = 'Feed id'; +$feed->title = 'Feed title'; +$feed->title->type = 'text'; +$feed->updated = 'Feed updated'; + +$entry = $feed->add( 'entry' ); +$entry->id = 'Entry id'; +$entry->title = 'Entry title'; +$entry->updated = 1195053820; + +$entry->content = 'Entry content'; +$entry->content->type = 'html'; + +return $feed; +?> Added: trunk/Feed/tests/atom/regression/parse/entry/content/content_type_png.in ============================================================================== --- trunk/Feed/tests/atom/regression/parse/entry/content/content_type_png.in (added) +++ trunk/Feed/tests/atom/regression/parse/entry/content/content_type_png.in [iso-8859-1] Thu Nov 15 18:49:36 2007 @@ -1,0 +1,12 @@ +<?xml version="1.0" encoding="utf-8"?> +<feed xmlns="http://www.w3.org/2005/Atom"> + <id>Feed id</id> + <title type="text">Feed title</title> + <updated>Feed updated</updated> + <entry> + <id>Entry id</id> + <title>Entry title</title> + <updated>2007-11-14T16:23:40+01:00</updated> + <content type="image/png">iVBORw0KGgoAAAANSUhEUgAAAI0AAAAgCAYAAAAv3PuVAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAG6AAABugB4Yi/JwAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAA4zSURBVHic7Zx5UJRXtsB/3YCACIJhERTS0qIIcQE7IEEWJQLiMAHX4G6W0TjxPTVl8mQ0UWtMJJvmJVMy2cRSY0jElIAGkEQEUUkTYoCnGEBAFhHZDcra9/3Bo8dOd6OOM8G88Kv6qvjuOd+5p2+f795zl0YCCAYZ5D4wBBBiMG4GuTckEgnSgXZikN8eg0EzyH0zGDSD3DeGA1VxaWkpRUVFAFhaWuLj44NU+nDEcEtLC5cvX8bLy0tLlpWVxeOPP46JickAePbgfJOey82bbTplvr6TsLG1uquNAQuaXbt2kZ+fj4ODAzdv3qShoYGYmBiCg4MHyiU1n332GTk5OTqDZuPGjXz88cdMnjx5ADx7MH78sZi/7/1Kr/zSxQo2/2X5Xe0MWNBIJBLmzZvHyy+/DMC2bdtITk4mODiY6upqjh49ilQqZcGCBdja2pKdnY21tTXjx4+nsrISExMTbGxsOHv2LJaWlri5udHV1cXhw4dpa2tj2bJlDBs2DIAzZ86Ql5dHQEAAkydPprm5mUOHDmFlZcXixYvVPpWWlnLs2DHy8vIwNNTdNEIIUlJSyMjIY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c7Ojh07dqBUKtXXtm3bcHFxAXoPLYWGhuLi4kJ8fHy/AWNlZUV3d7d6E/JOOjo68PPzo729HZlMRnV1tZZOTU0N48f3fzjoXiksLMTe3h4AGxsbdQD1UV5ejrm5+T3ZkslkyOVyjTZSKpVMmTIFV1fXe7IxYsQI6urqNMqEEJw7d46kpCQKCwspKCigoKAANzc3Dh06dE92+zAyMmTlqjlUVNSSmpKjU6ejo5MD+7/GZZwj/gEeOnX66LeniYiIIDo6mtjYWHVOc/36dfWBo7lz53L79m0uXrxIZGSkxrP+/v5s2LBBfW9sbExgYCA+Pj44OjreOTZSWVnJ1KlTMTExITQ0lJiYGJ544gl1MlpbW8vw4cPx9vYmKytLa0r4y/tflu3du5f4+HigN6epqKhg9erVADz11FOsW7eO7OxszM3NUalUlJeXM3fuXLWd/uyHhoaya9cuDX/r6uowMzPD2dmZmpoavc/3lc+fP58FCxZQXFzMiBEj6OnpYevWrchkMoKCgnB2dkYqldLW1kZVVZXenqY/pipc8fAczxefp/PooyO1DmJlZV6gqekmm15Z0m+yDPewjdDZ2cnp06fp7OzEzMwMPz8/DAwMAEhLS6OrS3fiJZfLdb5pjY2NnD9/XqMhp02bxiOPPKKhd+fB88cee4xHH30U6B0OCwsL8fb+R5KWm5uLXC7HyspKXUdFRQUeHh5ERkYybtw4dWJuZGREQECAenZFbwOQk5NDQ0MDBgYG+Pn5YWZmBvQmvT09PVqzpbNnz+Lp6ak+fnGnv+7u7shkMr3+AhQXF2NsbKxO3lUqFVlZWTQ2NgK9u/EWFhY0NTVx/vx5VCoVVlZWeHl5/dOnAmtrG3hp/X/T1dWtUz4zSMGatZE6ZX1IJJL//3tP4eHhLFmyhKeffnqgXXkoKC2p4ubNWzplLi6OmOmZZvfxuwia8vJybGxs1D3HIA/G7yJoBvnXMvhb7kH+KSQM/quRQe6T/wVxbgvu8Q7LOgAAAABJRU5ErkJggg==</content> + </entry> +</feed> Added: trunk/Feed/tests/atom/regression/parse/entry/content/content_type_png.out ============================================================================== --- trunk/Feed/tests/atom/regression/parse/entry/content/content_type_png.out (added) +++ trunk/Feed/tests/atom/regression/parse/entry/content/content_type_png.out [iso-8859-1] Thu Nov 15 18:49:36 2007 @@ -1,0 +1,18 @@ +<?php +$feed = new ezcFeed( 'atom' ); + +$feed->id = 'Feed id'; +$feed->title = 'Feed title'; +$feed->title->type = 'text'; +$feed->updated = 'Feed updated'; + +$entry = $feed->add( 'entry' ); +$entry->id = 'Entry id'; +$entry->title = 'Entry title'; +$entry->updated = 1195053820; + +$entry->content = file_get_contents( dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'powered-by-141x32-white.png' ); +$entry->content->type = 'image/png'; + +return $feed; +?> Added: trunk/Feed/tests/atom/regression/parse/entry/content/content_type_png_split_lines.in ============================================================================== --- trunk/Feed/tests/atom/regression/parse/entry/content/content_type_png_split_lines.in (added) +++ trunk/Feed/tests/atom/regression/parse/entry/content/content_type_png_split_lines.in [iso-8859-1] Thu Nov 15 18:49:36 2007 @@ -1,0 +1,79 @@ +<?xml version="1.0" encoding="utf-8"?> +<feed xmlns="http://www.w3.org/2005/Atom"> + <id>Feed id</id> + <title type="text">Feed title</title> + <updated>Feed updated</updated> + <entry> + <id>Entry id</id> + <title>Entry title</title> + <updated>2007-11-14T16:23:40+01:00</updated> + <content type="image/png">iVBORw0KGgoAAAANSUhEUgAAAI0AAAAgCAYAAAAv3PuVAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz + AAAG6AAABugB4Yi/JwAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAA4zSURB + VHic7Zx5UJRXtsB/3YCACIJhERTS0qIIcQE7IEEWJQLiMAHX4G6W0TjxPTVl8mQ0UWtMJJvmJVMy + 2cRSY0jElIAGkEQEUUkTYoCnGEBAFhHZDcra9/3Bo8dOd6OOM8G88Kv6qvjuOd+5p2+f795zl0YC + CAYZ5D4wBBBiMG4GuTckEgnSgXZikN8eg0EzyH0zGDSD3DeGA1VxaWk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D9/XqMhp02bxiOPPKKhd+fB88cee4xHH30U6B0OCwsL8fb+R5KWm5uLXC7HyspKXUdFRQUeHh5E + RkYybtw4dWJuZGREQECAenZFbwOQk5NDQ0MDBgYG+Pn5YWZmBvQmvT09PVqzpbNnz+Lp6ak+fnGn + v+7u7shkMr3+AhQXF2NsbKxO3lUqFVlZWTQ2NgK9u/EWFhY0NTVx/vx5VCoVVlZWeHl5/dOnAmtr + G3hp/X/T1dWtUz4zSMGatZE6ZX1IJJL//3tP4eHhLFmyhKeffnqgXXkoKC2p4ubNWzplLi6OmOmZ + Zvfxuwia8vJybGxs1D3HIA/G7yJoBvnXMvhb7kH+KSQM/quRQe6T/wVxbgvu8Q7LOgAAAABJRU5E + rkJggg== + </content> + </entry> +</feed> Added: trunk/Feed/tests/atom/regression/parse/entry/content/content_type_png_split_lines.out ============================================================================== --- trunk/Feed/tests/atom/regression/parse/entry/content/content_type_png_split_lines.out (added) +++ trunk/Feed/tests/atom/regression/parse/entry/content/content_type_png_split_lines.out [iso-8859-1] Thu Nov 15 18:49:36 2007 @@ -1,0 +1,18 @@ +<?php +$feed = new ezcFeed( 'atom' ); + +$feed->id = 'Feed id'; +$feed->title = 'Feed title'; +$feed->title->type = 'text'; +$feed->updated = 'Feed updated'; + +$entry = $feed->add( 'entry' ); +$entry->id = 'Entry id'; +$entry->title = 'Entry title'; +$entry->updated = 1195053820; + +$entry->content = file_get_contents( dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'powered-by-141x32-white.png' ); +$entry->content->type = 'image/png'; + +return $feed; +?> Added: trunk/Feed/tests/atom/regression/parse/entry/content/content_type_text.in ============================================================================== --- trunk/Feed/tests/atom/regression/parse/entry/content/content_type_text.in (added) +++ trunk/Feed/tests/atom/regression/parse/entry/content/content_type_text.in [iso-8859-1] Thu Nov 15 18:49:36 2007 @@ -1,0 +1,12 @@ +<?xml version="1.0" encoding="utf-8"?> +<feed xmlns="http://www.w3.org/2005/Atom"> + <id>Feed id</id> + <title type="text">Feed title</title> + <updated>Feed updated</updated> + <entry> + <id>Entry id</id> + <title>Entry title</title> + <updated>2007-11-14T16:23:40+01:00</updated> + <content type="text">Entry content</content> + </entry> +</feed> Added: trunk/Feed/tests/atom/regression/parse/entry/content/content_type_text.out ============================================================================== --- trunk/Feed/tests/atom/regression/parse/entry/content/content_type_text.out (added) +++ trunk/Feed/tests/atom/regression/parse/entry/content/content_type_text.out [iso-8859-1] Thu Nov 15 18:49:36 2007 @@ -1,0 +1,18 @@ +<?php +$feed = new ezcFeed( 'atom' ); + +$feed->id = 'Feed id'; +$feed->title = 'Feed title'; +$feed->title->type = 'text'; +$feed->updated = 'Feed updated'; + +$entry = $feed->add( 'entry' ); +$entry->id = 'Entry id'; +$entry->title = 'Entry title'; +$entry->updated = 1195053820; + +$entry->content = 'Entry content'; +$entry->content->type = 'text'; + +return $feed; +?> Added: trunk/Feed/tests/atom/regression/parse/entry/content/content_type_text_other.in ============================================================================== --- trunk/Feed/tests/atom/regression/parse/entry/content/content_type_text_other.in (added) +++ trunk/Feed/tests/atom/regression/parse/entry/content/content_type_text_other.in [iso-8859-1] Thu Nov 15 18:49:36 2007 @@ -1,0 +1,30 @@ +<?xml version="1.0" encoding="utf-8"?> +<feed xmlns="http://www.w3.org/2005/Atom"> + <id>Feed id</id> + <title type="text">Feed title</title> + <updated>Feed updated</updated> + <entry> + <id>Entry id</id> + <title>Entry title</title> + <updated>2007-11-14T16:23:40+01:00</updated> + <content type="text/x-tex"> +\documentclass[12pt]{article} +\title{\LaTeX} +\date{} +\begin{document} + \maketitle \LaTeX{} is a document preparation system for the \TeX{} + typesetting program. It offers programmable desktop publishing + features and extensive facilities for automating most aspects of + typesetting and desktop publishing, including numbering and + cross-referencing, tables and figures, page layout, bibliographies, + and much more. \LaTeX{} was originally written in 1984 by Leslie + Lamport and has become the dominant method for using \TeX; few + people write in plain \TeX{} anymore. The current version is + \LaTeXe. + \newline + % This is a comment, it is not shown in the final output. + % The following shows a little of the typesetting power of LaTeX +\end{document} +</content> + </entry> +</feed> Added: trunk/Feed/tests/atom/regression/parse/entry/content/content_type_text_other.out ============================================================================== --- trunk/Feed/tests/atom/regression/parse/entry/content/content_type_text_other.out (added) +++ trunk/Feed/tests/atom/regression/parse/entry/content/content_type_text_other.out [iso-8859-1] Thu Nov 15 18:49:36 2007 @@ -1,0 +1,36 @@ +<?php +$feed = new ezcFeed( 'atom' ); + +$feed->id = 'Feed id'; +$feed->title = 'Feed title'; +$feed->title->type = 'text'; +$feed->updated = 'Feed updated'; + +$entry = $feed->add( 'entry' ); +$entry->id = 'Entry id'; +$entry->title = 'Entry title'; +$entry->updated = 1195053820; + +$entry->content = ' +\documentclass[12pt]{article} +\title{\LaTeX} +\date{} +\begin{document} + \maketitle \LaTeX{} is a document preparation system for the \TeX{} + typesetting program. It offers programmable desktop publishing + features and extensive facilities for automating most aspects of + typesetting and desktop publishing, including numbering and + cross-referencing, tables and figures, page layout, bibliographies, + and much more. \LaTeX{} was originally written in 1984 by Leslie + Lamport and has become the dominant method for using \TeX; few + people write in plain \TeX{} anymore. The current version is + \LaTeXe. + \newline + % This is a comment, it is not shown in the final output. + % The following shows a little of the typesetting power of LaTeX +\end{document} +'; +$entry->content->type = 'text/x-tex'; + +return $feed; +?> Added: trunk/Feed/tests/atom/regression/parse/entry/content/content_type_xhtml.in ============================================================================== --- trunk/Feed/tests/atom/regression/parse/entry/content/content_type_xhtml.in (added) +++ trunk/Feed/tests/atom/regression/parse/entry/content/content_type_xhtml.in [iso-8859-1] Thu Nov 15 18:49:36 2007 @@ -1,0 +1,14 @@ +<?xml version="1.0" encoding="utf-8"?> +<feed xmlns="http://www.w3.org/2005/Atom"> + <id>Feed id</id> + <title type="text">Feed title</title> + <updated>Feed updated</updated> + <entry> + <id>Entry id</id> + <title>Entry title</title> + <updated>2007-11-14T16:23:40+01:00</updated> + <content type="xhtml" xmlns:xhtml="http://www.w3.org/1999/xhtml"> + <xhtml:div>Entry content</xhtml:div> + </content> + </entry> +</feed> Added: trunk/Feed/tests/atom/regression/parse/entry/content/content_type_xhtml.out ============================================================================== --- trunk/Feed/tests/atom/regression/parse/entry/content/content_type_xhtml.out (added) +++ trunk/Feed/tests/atom/regression/parse/entry/content/content_type_xhtml.out [iso-8859-1] Thu Nov 15 18:49:36 2007 @@ -1,0 +1,18 @@ +<?php +$feed = new ezcFeed( 'atom' ); + +$feed->id = 'Feed id'; +$feed->title = 'Feed title'; +$feed->title->type = 'text'; +$feed->updated = 'Feed updated'; + +$entry = $feed->add( 'entry' ); +$entry->id = 'Entry id'; +$entry->title = 'Entry title'; +$entry->updated = 1195053820; + +$entry->content = 'Entry content'; +$entry->content->type = 'xhtml'; + +return $feed; +?> Added: trunk/Feed/tests/atom/regression/parse/entry/content/content_type_xml.in ============================================================================== --- trunk/Feed/tests/atom/regression/parse/entry/content/content_type_xml.in (added) +++ trunk/Feed/tests/atom/regression/parse/entry/content/content_type_xml.in [iso-8859-1] Thu Nov 15 18:49:36 2007 @@ -1,0 +1,14 @@ +<?xml version="1.0" encoding="utf-8"?> +<feed xmlns="http://www.w3.org/2005/Atom"> + <id>Feed id</id> + <title type="text">Feed title</title> + <updated>Feed updated</updated> + <entry> + <id>Entry id</id> + <title>Entry title</title> + <updated>2007-11-14T16:23:40+01:00</updated> + <content type="application/xml"> + <root>Entry content</root> + </content> + </entry> +</feed> Added: trunk/Feed/tests/atom/regression/parse/entry/content/content_type_xml.out ============================================================================== --- trunk/Feed/tests/atom/regression/parse/entry/content/content_type_xml.out (added) +++ trunk/Feed/tests/atom/regression/parse/entry/content/content_type_xml.out [iso-8859-1] Thu Nov 15 18:49:36 2007 @@ -1,0 +1,20 @@ +<?php +$feed = new ezcFeed( 'atom' ); + +$feed->id = 'Feed id'; +$feed->title = 'Feed title'; +$feed->title->type = 'text'; +$feed->updated = 'Feed updated'; + +$entry = $feed->add( 'entry' ); +$entry->id = 'Entry id'; +$entry->title = 'Entry title'; +$entry->updated = 1195053820; + +$entry->content = '<?xml version="1.0" encoding="UTF-8"?> +<root xmlns="http://www.w3.org/2005/Atom">Entry content</root> +'; +$entry->content->type = 'application/xml'; + +return $feed; +?> Added: trunk/Feed/tests/atom/regression/parse/entry/content/powered-by-141x32-white.png ============================================================================== Binary file - no diff available. Propchange: trunk/Feed/tests/atom/regression/parse/entry/content/powered-by-141x32-white.png ------------------------------------------------------------------------------ svn:mime-type = image/png -- svn-components mailing list svn-components@lists.ez.no http://lists.ez.no/mailman/listinfo/svn-components