This website works better with JavaScript.
Home
Explore
Help
Sign In
brennen
/
FeedWriter
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
PHP Universal Feed Generator
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
83
Commits
2
Branches
141 KiB
Branch:
multifeed_api
master
multifeed_api
Branches
Tags
${ item.name }
Create branch
${ searchTerm }
from 'multifeed_api'
${ noResults }
FeedWriter
/
RSS2.php
4 lines
97 B
Raw
Permalink
Normal View
History
Added wrapper classes for each feed type. Fixes #2. The FeedWriter class is now abstract, which means it is not possible to directly create an instance of it. Use the new wrapper classes in FeedTypes.php instead. This also obsoletes the constructor's version parameter for end-users.
12 years ago
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
add an interface to Feed, stub some additional feed types
11 years ago
<
?
php
namespace
FeedWriter
;
use
\FeedWriter\View\RSS2
as
NewRSS2
;
class
RSS2
extends
NewRSS2
{
}