Brennen Bearnes
da214d8e51
add an interface to Feed, stub some additional feed types
11 years ago
Anis uddin Ahmad
ad25133c69
Merge pull request #14 from bfontaine/multiple-enclosures
Multiple enclosures in one item
11 years ago
Baptiste Fontaine
95f27cf429
Warning about usage of 2+ enclosures per item
11 years ago
Baptiste Fontaine
4ce86fb958
Item#addEnclosure allow multiple elements.
This is better, since 'addEnclosure' means 'add one *more* enclosure'.
11 years ago
Baptiste Fontaine
3bed40d55d
Item#addEnclosure method added, to add multiple enclosures for the same item.
11 years ago
Michael Bemmerl
390a4138bd
Renamed project name due to naming conventions of Packagist.
11 years ago
Michael Bemmerl
91954675a6
Added authors to composer.josn.
11 years ago
Michael Bemmerl
30aa109e9a
Trap unparseable date strings.
11 years ago
Michael Bemmerl
2498670c5b
Tabified spaces
11 years ago
Michael Robinson
2d854932d8
Whitespace
11 years ago
Michael Robinson
198dda3b3b
Reformatted composer.json
11 years ago
Michael Robinson
431042e533
Whitespace
11 years ago
Michael Robinson
b86584270e
Add return $this to allow chaining
11 years ago
Michael Robinson
a732dda845
Whitespace
11 years ago
Michael Robinson
59d3603b47
Added composer.json
11 years ago
Michael Bemmerl
d2003c6137
Added support for attaching media to ATOM feed items.
11 years ago
Michael Bemmerl
2ca6219f8f
Bugfix: Filter atom namespace prefixes also in 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
3769d1e75d
setDate method supports RSS2 feeds now. New method addGenerator for some advertising.
11 years ago
Michael Bemmerl
e31dbf27df
Some improvements in wrapper functions (including documentation):
* 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).
11 years ago
Michael Bemmerl
0aba88e3d7
Updated README to new GitHub Pages domain.
11 years ago
Michael Bemmerl
fecb20f288
Some updates to the setDate method, both to code and documentation.
Since this project requires PHP >= 5.3 anyway, the check for this version is not needed anymore in Item.php.
11 years ago
Michael Bemmerl
c7f0ba2096
Added documentation section
11 years ago
Michael Bemmerl
cb8e25269f
Some documentation fixes and additions for phpdoc
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
aba31248df
Die when setEncloser is used on a non-RSS 2 feed.
11 years ago
Michael Bemmerl
0f4c077d5f
Do allow the content element in ATOM feeds only.
11 years ago
Michael Bemmerl
f0bcb31422
Added a check for a restriction in the ATOM specification regarding the number of atom:link entites.
11 years ago
Michael Bemmerl
c79ef09e08
Merge pull request #11 from sparkfun/master
Add setContent() for Atom feed items
11 years ago
Michael Bemmerl
2c73dabb3c
Updated README
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
d67feb4b66
Updated README.
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
4f172e9ff8
Merge branch 'examples'
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
6c1935f05f
Renamed the getContentType() method.
It's actually the MIME type which is returned and then used for the HTTP Content-Type header field.
12 years ago
Michael Bemmerl
1b1a3d0334
Fixed attribute string: Removed double whitespace between the key-value pairs.
12 years ago
Michael Bemmerl
ae59019c9f
Merge branch 'master' into examples
12 years ago
Michael Bemmerl
bf09994e24
Use printFeed() instead of generateFeed()
12 years ago
Michael Bemmerl
631cce83eb
Examples with including files
12 years ago
Michael Bemmerl
240b9c8c04
Merge pull request #7 from sparkfun/master
namespace FeedWriter
12 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
6b692f5ab2
Merge pull request #4 from paulferrett/master
ATOM feed <author> element fix
Thanks for the fix!
12 years ago
Paul Ferrett
429d961e59
Fix for incorrectly created `author` element for ATOM feed items.
12 years ago
Michael Bemmerl
1a31258e9a
Comments and updated README
12 years ago