Documentation
CREATE DEPENDENCYTYPE
usage
<CREATE>
<DEPENDENCYENTITY [type="uturn"]><!-- uturn means a symmetric relationship like cousin to cousin -->
<DEPENDENCYTYPE type="start" from="module" to="module">
<TYPE>Technical name</TYPE>
<DENOMINATION>
<LABEL languageID="language1">Translation in language1</LABEL>
<LABEL languageID="language2">Translation in language2</LABEL>
<SEARCHLABEL languageID="language1">Label for search form in language1</SEARCHLABEL>
<SEARCHLABEL languageID="language2">Label for search form in language2</SEARCHLABEL>
</DENOMINATION>
[<TEMPORAL>{0,1}</TEMPORAL>]
[<DOMAIN>Free text</DOMAIN>]
[<DESCRIPTION>Free text</DESCRIPTION>]
[<TABLENAME>dependencies</TABLENAME>] <!-- if you want to save the dependencies in another table, you can give its name and this table will be created in the database -->
</DEPENDENCYTYPE>
[<DEPENDENCYTYPE type="return">
<TYPE>Technical name</TYPE>
<DENOMINATION>
<LABEL languageID="language1">Translation in language1</LABEL>
<LABEL languageID="language2">Translation in language2</LABEL>
</DENOMINATION>
[<TEMPORAL>{0,1}</TEMPORAL>]
[<DOMAIN>Free text</DOMAIN>]
[<DESCRIPTION>Free text</DESCRIPTION>]
[<TABLENAME>dependencies</TABLENAME>] <!-- if you want to save the dependencies in another table, you can give its name and this table will be created in the database -->
</DEPENDENCYTYPE>]
</DEPENDENCYENTITY>
</CREATE>
Create a dependencytype or a set of dependencytypes (for bidirectional dependencytypes).
exemples
Unidirectional dependencytype :
<CREATE>
<DEPENDENCYENTITY>
<DEPENDENCYTYPE type="start" from="media" to="media">
<TYPE>Includes</TYPE>
<DENOMINATION>
<LABEL languageID="eng">included</LABEL>
<LABEL languageID="fre">inclut</LABEL>
<LABEL languageID="spa">incluso</LABEL>
</DENOMINATION>
<DESCRIPTION>Products included in a package</DESCRIPTION
</DEPENDENCYTYPE>
</DEPENDENCYENTITY>
</CREATE>
Bidirectional dependencytype :
<CREATE>
<DEPENDENCYENTITY>
<DEPENDENCYTYPE type="start" from="media" to="contact">
<TYPE>Owner</TYPE>
<DENOMINATION>
<LABEL languageID="eng">owner of this product</LABEL>
<LABEL languageID="fre">Propriétaire</LABEL>
</DENOMINATION>
</DEPENDENCYTYPE>
<DEPENDENCYTYPE type="return">
<TYPE>Products</TYPE>
<DENOMINATION>
<LABEL languageID="eng">owns</LABEL>
<LABEL languageID="fre">Propriétaire de</LABEL>
</DENOMINATION>
</DEPENDENCYTYPE>
</DEPENDENCYENTITY>
</CREATE>
Symmetric relationship :
<CREATE>
<DEPENDENCYENTITY type="uturn">
<DEPENDENCYTYPE type="start" from="media" to="media">
<TYPE>SeeAlso</TYPE>
<DENOMINATION>
<LABEL languageID="eng">See also</LABEL>
<LABEL languageID="fre">voir aussi</LABEL>
</DENOMINATION>
<DESCRIPTION>Products related</DESCRIPTION
</DEPENDENCYTYPE>
</DEPENDENCYENTITY>
</CREATE>