Kristián Valentín
048768bc02
applies PSR-1 and PSR-2 coding standards
10 years ago
Michael Robinson
2d854932d8
Whitespace
11 years ago
Michael Bemmerl
d2003c6137
Added support for attaching media to ATOM feed items.
11 years ago
Michael Bemmerl
4ba5dd9820
Added much more comments to the RSS2 example and used some more method the FeedWriter offers.
11 years ago
Michael Bemmerl
33737982af
Added support for sub-elements of the author element in ATOM feeds.
It's now possible to specify an email address and an URI.
11 years ago
Michael Bemmerl
cc62d12c2e
Built-in support for author elements in RSS2 feeds.
This was previously already possible by using the custom addElement function.
11 years ago
Michael Bemmerl
ee8d341505
Implemented function to add multiple custom link elements. This fixes #10 .
11 years ago
Brennen Bearnes
384783b5f5
add Item&setContent() for Atom feeds
- 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
11 years ago
Michael Bemmerl
81e7520894
Implemented function to add custom XML namespaces. This fixes #9 .
The namespace prefix and name can be set by invoking the addNamespace method of the Feed class.
11 years ago
Michael Bemmerl
762764ad77
Fixed warning on minimum RSS2 example: Image title didn't match channel title.
11 years ago
Michael Bemmerl
763f33f5a9
Fixed warning on RSS2 example: Image title didn't match channel title.
11 years ago
Michael Bemmerl
1581c88968
More comments
11 years ago
Michael Bemmerl
46df278a65
Added support for atom:link elements with relation=self. Fixes #5
See http://validator.w3.org/feed/docs/warning/MissingAtomSelfLink.html
11 years ago
Michael Bemmerl
bf09994e24
Use printFeed() instead of generateFeed()
11 years ago
Michael Bemmerl
631cce83eb
Examples with including files
11 years ago
Brennen Bearnes
7182691709
break out feed types; add printFeed(); namespace everything
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.
12 years ago
Michael Bemmerl
063023134e
Implemented usage of the new classes, which were introduced in 4926cd6a1b
.
12 years ago
Michael Bemmerl
7d1ddfee53
Some small changes:
* Fixed spelling mistakes
* All \n's were replaced by PHP_EOL's
12 years ago
Michael Bemmerl
ec32294a3d
Don't use a (actually not working) database for retrieving item information.
The minimal example should have minimal requirements...
13 years ago
Michael Bemmerl
4499232da8
Fixed image URL in the examples.
13 years ago
Michael Bemmerl
edb8321bd9
* Implemented function name change introduced in 3b49744b2f
13 years ago
Michael Bemmerl
c6805868fe
* Fixed include path in the examples.
13 years ago
Michael Bemmerl
6ebd01341e
Added copyright and license notices (GPL) to all files
13 years ago
Michael Bemmerl
97fee48fdb
Initial import of the changes made in the version from phpclasses.org.
13 years ago
Michael Bemmerl
7dde9536fc
Initial Import of "PHP Universal Feed Generator" made by Anis Ahmad.
The files are taken from the zip file available at Anis' website.
13 years ago