Home » Docs » FeedWriter » set_feedConstruct()

set_feedConstruct()

Specify which FeedConstruct object corresponding to a feed output format to use during run-time.
Usage
void set_feedConstruct( string $format ) The feed format passed to the set_feedConstruct() function will be used to find the corresponding FeedConstruct. If a FeedConstruct object has not previously been created for the specified format, one will be instantaited and added to an array on FeedConstruct objects. The array of FeedConstruct objects is used when outputting the feed in a particular format, which includes any additions or modifications made to one of the a predefined constructs.
Parameters
string $format
A string constant indicating the feed format.
Return Values
void
Examples
Set the current Feed Construct to the construct for the Atom 1.0 feed format:
set_feedConstruct( Atom_1 );
Related Resources

Comments (0)

No comments yet

Leave a Reply

You must be logged in to post a comment.
  • Php FeedWriter (c) Copyright 2011 Daniel Soutter. Php FeedWriter and the information on this site has been designed to benefit website developers, owners and users, but may contain errors and is provided as is, with no warranty. Terms.