[wp-hackers] Filter Hooks for Enclosures

Jamie Talbot wphackers at jamietalbot.com
Mon Feb 13 14:13:40 GMT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Owen Winkler wrote:
> Here's an off-the-wall suggestion...
> 
> What if we built feeds as PHP objects, fed them through a filter, then
> converted the object to XML?
> 
> There are some extant implementations of Object<->XML in PHP, so it
> might not be too difficult a conversion.  Manipulating the feed XML via
> DOM in a plugin would be swell.
> 
> Before I continue blathering about this, how much does this idea suck?
> 
> Owen

I definitely like the feeds as objects idea.  A base feed class WPFeed with vars to hold all
available information that could be subtyped for different feed flavours, WPAtom, WPRSS each with
their own methods of using that data would be nice.  It would also be nicely future proof when the
next latest and greatest feed format comes along as it would only require a new class with its own
'print' method.

If converting to XML was a trivial task already implemented, that might be cool too.

Is there mileage in this?

Jamie.

- --
http://jamietalbot.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFD8JQTrovxfShShFARApeQAJ48ZV2CKnAOMP18Y2o6EP8t/u+dCwCfdqcx
OBWgiV1obb0Tg5IeiX9XgWM=
=dNYv
-----END PGP SIGNATURE-----


More information about the wp-hackers mailing list