Twitter Feed

Xataface Maillist

Sign up to receive the Xataface news letter with weekly updates and development tips.

 
Found 135 of 135 records in table Wiki
Now Showing 47 of 135

Current Record: getChildren

getChildren Delegate Class Method

[Permalink]

Return to Delegate class methods

The getChildren() method can be implemented in a table's delegate class to specify the logical "child" 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.

Signature

function getChildren( Dataface_Record $record) : Dataface_Record[]

Parameters

  1. $record - The Dataface_Record that is the subject of the query

Returns

This method should return an array of Dataface_Record objects that are considered to be children of the subject record.

Examples

function getChildren($record){
    return df_get_records('webpages', 
        array(
            'parent_id'=>'='.$record->val('webpage_id')
        )
    );
}

See Also

  • getParent? - A Delegate class method to return the logical parent of a given record.
blog comments powered by Disqus
Powered by Xataface
(c) 2005-2010 All rights reserved