<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.7.2" -->
<rss version="2.0">
    <channel>
        <title>getFeed[ Search for &quot;&quot;]</title>
        <description></description>
        <link>http://xataface.com/wiki/index.php?-action=single_record_search&amp;-table=wiki&amp;page_id=%3D42&amp;-cursor=0&amp;-skip=0&amp;-limit=30&amp;-mode=list&amp;--subsearch=</link>
        <lastBuildDate>Mon, 20 May 2013 13:20:32 +0100</lastBuildDate>
        <generator>FeedCreator 1.7.2</generator>
        <item>
            <title>getFeed</title>
            <link>http://www.xataface.com/wiki/getFeed</link>
            <description>&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Field&lt;/th&gt;&lt;th&gt;Value&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;Page name&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;getFeed&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;Page id&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;42&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;Page title&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;getFeed&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;Content&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;
&lt;h2 id=&quot;toc0&quot;&gt;getFeed() Delegate Class Method&lt;/h2&gt;
&lt;table border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt;&lt;tr&gt;&lt;td&gt;
&lt;div id=&quot;toc&quot;&gt;&lt;strong&gt;Table of Contents&lt;/strong&gt;
	&lt;div style=&quot;margin-left: 0em;&quot;&gt;&lt;a href=&quot;#toc0&quot;&gt;getFeed() Delegate Class Method&lt;/a&gt;&lt;/div&gt;
	&lt;div style=&quot;margin-left: 1em;&quot;&gt;&lt;a href=&quot;#toc1&quot;&gt;Synopsis:&lt;/a&gt;&lt;/div&gt;
	&lt;div style=&quot;margin-left: 1em;&quot;&gt;&lt;a href=&quot;#toc2&quot;&gt;Parameters&lt;/a&gt;&lt;/div&gt;
	&lt;div style=&quot;margin-left: 1em;&quot;&gt;&lt;a href=&quot;#toc3&quot;&gt;Return Value&lt;/a&gt;&lt;/div&gt;
	&lt;div style=&quot;margin-left: 1em;&quot;&gt;&lt;a href=&quot;#toc4&quot;&gt;Example&lt;/a&gt;&lt;/div&gt;
	&lt;div style=&quot;margin-left: 1em;&quot;&gt;&lt;a href=&quot;#toc5&quot;&gt;See Also:&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;


&lt;h3 id=&quot;toc1&quot;&gt;Synopsis:&lt;/h3&gt;
&lt;p&gt;The getFeed() method of a table &lt;a href=&quot;/wiki/Delegate_class_methods&quot;&gt;delegate class&lt;/a&gt; or &lt;a href=&quot;/wiki/Application_Delegate_Class&quot;&gt;application delegate class&lt;/a&gt; returns an associative array of parameters to configure the &lt;a href=&quot;/wiki/Introduction_to_RSS_Feeds_in_Xataface&quot;&gt;RSS feed&lt;/a&gt; for a particular table .  An RSS feed consists of the following components:&lt;/p&gt;

&lt;ol&gt;
    &lt;li&gt; &lt;strong&gt;title&lt;/strong&gt; - The title of the RSS feed as it should appear in the subscribers' feed list.&lt;/li&gt;
    &lt;li&gt; &lt;strong&gt;description&lt;/strong&gt; - Describes the RSS feed.&lt;/li&gt;
    &lt;li&gt; &lt;strong&gt;link&lt;/strong&gt; - A link to the RSS feed&lt;/li&gt;
    &lt;li&gt; &lt;strong&gt;syndicationURL&lt;/strong&gt; - The URL to this RSS feed's site.&lt;/li&gt;
&lt;/ol&gt;


&lt;h3 id=&quot;toc2&quot;&gt;Parameters&lt;/h3&gt;
&lt;ol&gt;
    &lt;li&gt; &lt;strong&gt;array&lt;/strong&gt; $query - The HTTP query.  Contains information like the current table, current action, and search parameters.  This allows you to customize your RSS feed depending on the user's query parameters.&lt;/li&gt;
&lt;/ol&gt;


&lt;h3 id=&quot;toc3&quot;&gt;Return Value&lt;/h3&gt;
&lt;p&gt;The getFeed() method returns an associative array with the components of the RSS feed.  This array does not need to contain all possible keys, or even any keys.  Any keys that are omitted will simply use default values in the RSS feed.  The array may contain the following keys:&lt;/p&gt;



&lt;table class=&quot;listing listing2&quot;&gt;
    &lt;tr&gt;
        &lt;th&gt; Name&lt;/th&gt;
        &lt;th&gt; Description&lt;/th&gt;
        &lt;th&gt; Version&lt;/th&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt; title&lt;/td&gt;
        &lt;td&gt; The title for the RSS feed.  If this omitted, it will try to use the &lt;em&gt;title&lt;/em&gt; directive of the &lt;em&gt;[_feed]&lt;/em&gt; section of the &lt;a href=&quot;/wiki/conf.ini_file&quot;&gt;conf.ini file&lt;/a&gt;.  Failing that, it will try to generate an appropriate title for the feed depending on the current query.&lt;/td&gt;
        &lt;td&gt; 1.0&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt; description&lt;/td&gt;
        &lt;td&gt; A Description for this RSS feed.  If this is omitted, it will try to use the &lt;em&gt;description&lt;/em&gt; directive of the &lt;em&gt;[_feed]&lt;/em&gt; section of the &lt;a href=&quot;/wiki/conf.ini_file&quot;&gt;conf.ini file&lt;/a&gt;.&lt;/td&gt;
        &lt;td&gt; 1.0&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt; link&lt;/td&gt;
        &lt;td&gt; A link to the source page of the RSS feed.  If this is omitted, it will try to use the &lt;em&gt;link&lt;/em&gt; directive of the &lt;em&gt;[_feed]&lt;/em&gt; section of the &lt;a href=&quot;/wiki/conf.ini_file&quot;&gt;conf.ini file&lt;/a&gt;.&lt;/td&gt;
        &lt;td&gt; 1.0&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt; syndicationURL&lt;/td&gt;
        &lt;td&gt; A link to the source page of the RSS feed.  If this is omitted, it will try to use the &lt;em&gt;syndicationURL&lt;/em&gt; directive of the &lt;em&gt;[_feed]&lt;/em&gt; section of the &lt;a href=&quot;/wiki/conf.ini_file&quot;&gt;conf.ini file&lt;/a&gt;.&lt;/td&gt;
        &lt;td&gt; 1.0&lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;


&lt;h3 id=&quot;toc4&quot;&gt;Example&lt;/h3&gt;

&lt;pre&gt;&lt;code&gt;function getFeed(&amp;amp;$query){
    return array(
        'title' =&amp;gt; &amp;quot;RSS feed for the &amp;quot;.$query['-table'].&amp;quot; table.&amp;quot;,
        'description' =&amp;gt; &amp;quot;News and updates for automobiles&amp;quot;,
        'link' =&amp;gt; df_absolute_url(DATAFACE_SITE_HREF),
        'syndicationURL' =&amp;gt; df_absolute_url(DATAFACE_SITE_HREF)
    );
}
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;strong&gt;Note that RSS feeds will work perfectly well without defining this method.  This just allows you to customize one or more parameters of the RSS feed&lt;/strong&gt;.&lt;/p&gt;


&lt;h3 id=&quot;toc5&quot;&gt;See Also:&lt;/h3&gt;
&lt;ul&gt;
    &lt;li&gt; &lt;strong&gt;&lt;a href=&quot;/wiki/getFeedItem&quot;&gt;getFeedItem&lt;/a&gt;&lt;/strong&gt; - A delegate class method available to both the &lt;a href=&quot;/wiki/Delegate_class_methods&quot;&gt;table delegate classes&lt;/a&gt; to configure parameters for the particular items of the RSS feed.&lt;/li&gt;
    &lt;li&gt; &lt;strong&gt;getRelatedFeed&lt;a href=&quot;/wiki/index.php?-action=new&amp;-table=wiki&amp;page_name=getRelatedFeed&quot;&gt;?&lt;/a&gt;&lt;/strong&gt; - A &lt;a href=&quot;/wiki/Delegate_class_methods&quot;&gt;delegate class method&lt;/a&gt; available to both the &lt;a href=&quot;/wiki/Application_Delegate_Class&quot;&gt;application delegate class&lt;/a&gt; and the &lt;a href=&quot;/wiki/Delegate_class_methods&quot;&gt;table delegate classes&lt;/a&gt; to configure the &lt;a href=&quot;/wiki/Introduction_to_RSS_Feeds_in_Xataface&quot;&gt;RSS feed&lt;/a&gt; for a related records list.&lt;/li&gt;
    &lt;li&gt; &lt;strong&gt;getRSSDescription&lt;a href=&quot;/wiki/index.php?-action=new&amp;-table=wiki&amp;page_name=getRSSDescription&quot;&gt;?&lt;/a&gt;&lt;/strong&gt; - A delegate class method to override the description that appears for a particular record in an RSS feed.  (The same as the &lt;em&gt;description&lt;/em&gt; parameter of the &lt;a href=&quot;/wiki/getFeedItem&quot;&gt;getFeedItem&lt;/a&gt; method.&lt;/li&gt;
    &lt;li&gt; &lt;strong&gt;&lt;a href=&quot;/wiki/Introduction_to_RSS_Feeds_in_Xataface&quot;&gt;Introduction to RSS Feeds in Xataface&lt;/a&gt;&lt;/strong&gt; - An overview of Xataface's RSS feed support.&lt;/li&gt;
&lt;/ul&gt;

&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;Language&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;en&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;</description>
            <author>getFeed</author>
        </item>
    </channel>
</rss>
