<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.7.2" -->
<rss version="2.0">
    <channel>
        <title>getChildren[ Search for &quot;&quot;]</title>
        <description></description>
        <link>http://xataface.com/wiki/index.php?-action=single_record_search&amp;-table=wiki&amp;page_id=%3D126&amp;-cursor=0&amp;-skip=0&amp;-limit=30&amp;-mode=list&amp;--subsearch=</link>
        <lastBuildDate>Thu, 23 May 2013 05:01:35 +0100</lastBuildDate>
        <generator>FeedCreator 1.7.2</generator>
        <item>
            <title>getChildren</title>
            <link>http://www.xataface.com/wiki/getChildren</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;getChildren&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;126&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;getChildren Delegate Class Method&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;p&gt;Return to &lt;a href=&quot;/wiki/Delegate_class_methods&quot;&gt;Delegate class methods&lt;/a&gt;&lt;/p&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: 1em;&quot;&gt;&lt;a href=&quot;#toc0&quot;&gt;Signature&lt;/a&gt;&lt;/div&gt;
	&lt;div style=&quot;margin-left: 1em;&quot;&gt;&lt;a href=&quot;#toc1&quot;&gt;Parameters&lt;/a&gt;&lt;/div&gt;
	&lt;div style=&quot;margin-left: 1em;&quot;&gt;&lt;a href=&quot;#toc2&quot;&gt;Returns&lt;/a&gt;&lt;/div&gt;
	&lt;div style=&quot;margin-left: 1em;&quot;&gt;&lt;a href=&quot;#toc3&quot;&gt;Examples&lt;/a&gt;&lt;/div&gt;
	&lt;div style=&quot;margin-left: 0em;&quot;&gt;&lt;a href=&quot;#toc4&quot;&gt;See Also&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;

&lt;p&gt;The getChildren() method can be implemented in a table's delegate class to specify the logical &amp;quot;child&amp;quot; records of a given record which can be used when creating hierarchical applications.  This method will effectively override the output of the Dataface_Record::getChildren() method for records of this table.&lt;/p&gt;


&lt;h3 id=&quot;toc0&quot;&gt;Signature&lt;/h3&gt;

&lt;pre&gt;&lt;code&gt;function getChildren( Dataface_Record $record) : Dataface_Record[]&lt;/code&gt;&lt;/pre&gt;


&lt;h3 id=&quot;toc1&quot;&gt;Parameters&lt;/h3&gt;
&lt;ol&gt;
    &lt;li&gt; &lt;strong&gt;$record&lt;/strong&gt; - The Dataface_Record that is the subject of the query &lt;/li&gt;
&lt;/ol&gt;


&lt;h3 id=&quot;toc2&quot;&gt;Returns&lt;/h3&gt;
&lt;p&gt;This method should return an array of Dataface_Record objects that are considered to be children of the subject record.&lt;/p&gt;


&lt;h3 id=&quot;toc3&quot;&gt;Examples&lt;/h3&gt;

&lt;pre&gt;&lt;code&gt;function getChildren($record){
    return df_get_records('webpages', 
        array(
            'parent_id'=&amp;gt;'='.$record-&amp;gt;val('webpage_id')
        )
    );
}&lt;/code&gt;&lt;/pre&gt;


&lt;h2 id=&quot;toc4&quot;&gt;See Also&lt;/h2&gt;
&lt;ul&gt;
    &lt;li&gt; &lt;strong&gt;getParent&lt;a href=&quot;/wiki/index.php?-action=new&amp;-table=wiki&amp;page_name=getParent&quot;&gt;?&lt;/a&gt;&lt;/strong&gt; - A Delegate class method to return the logical parent of a given record.&lt;/li&gt;
&lt;/ul&gt;

&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;Keywords&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;getChildren Delegate class method&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>getChildren</author>
        </item>
    </channel>
</rss>
