Current Record: meta:class #127

Return to relationships.ini file Table of Contents Allowed Values See Also The meta:class directive allows you to ascribe special mea...

Current Record: meta:class #127

Return to relationships.ini file Table of Contents Allowed Values See Also The meta:class directive allows you to ascribe special mea...

meta:class relationships.ini file directive

[Permalink]

Return to relationships.ini file

Table of Contents

The meta:class directive allows you to ascribe special meaning to a relationship which Xataface can use in various parts of your application to provide enhanced capabilities.

For example you can specify a relationship as a "parent" relationship, thereby using the relationship to obtain the "parent" of records of this table. This can be used to help build breadcrumbs.

You can also specify a relationship as a "children" relationship which would treat records in the relationship as children of the current record. This can be used in conjunction with the list:type=treetable directive of the relationships.ini file to build a tree table that navigates all child records and subtrees.

The Dataface_Record class contains some methods for retrieving the parent and children of records and these methods will take into account any settings you make here.

Allowed Values

Name Description Version
parent Designates the relationship as a 'parent' relationship, meaning that the first record in this relationship will be treated as the parent of the current record. This setting can be overridden by the getParent? method of the table delegate class if implemented. 0.8
children Designates the relationship as a 'children' relationship meaning that records of the the relationship will be treated as a children. This setting can be overridden by the getChildren method of the table delegate class if implemented. 0.8

See Also

  1. list:type - relationships.ini file directive to use a treetable for the related record list of a relationship.
  2. getChildren - Delegate class method to explicitly define the Dataface_Record objects that are to be considered as child records of the current record.
  3. getParent? - Delegate class method to explicitly define the Dataface_Record object that is to be considered as the parent record of the current record.
blog comments powered by Disqus
Powered by Xataface
(c) 2005-2024 All rights reserved