* setEnclosure: Expects an integer for length parameter greather than zero.
* setAuthor: email parameter is also used in RSS2 feeds.
* setId: The isPermaLink attribute can be set (RSS2 only).
- Make it easy to get a <content> element on Atom entries
- Also spells "enclosure" correctly - "setEncloser" -> "setEnclosure"
- Fixes Atom test file on case-sensitive filesystems
- Tack a date_default_timezone_set() on tests, to avoid warnings
A minimal set of changes to support PSR-0-style autoloading:
- rename base class to \FeedWriter\Feed and FeedItem to \FeedWriter\Item
- break types out into \FeedWriter\ATOM, \FeedWriter\RSS1, and
\FeedWriter\RSS2
- use class constants for versions
- make generateFeed() return a string rather than doing any IO itself
- add printFeed() to do output, if needed
My rationale for the last 2 items on that list is that our web framework
expects me to pass around strings, not do direct IO. I imagine needing
to grab the output and stash it in a variable or what-have-you is
a common use case, and it felt silly to have to wrap this in an
output buffer to accomplish that.
* Set the author element of the feed item
* Set a unique identifier (for RSS2 & ATOM)
(SVN import from repo. "www" @ revision 612, made by "Michi" on Oktober 17, 2010 (04:56:08))
* Passing of DateTime instances did not work
* The correct Content-Type header (depending on the feed type) is send to the browser.
* Fixed indentation
* Fixed node generation if no attributes available
* Remove last whitespace on attribute generation
(SVN import from repo. "www" @ revision 607, made by "Michi" on Oktober 4, 2010 (00:22:46))