| 15 | | The "Component Resource" extension provides the functionality to pre-configure and re-use these joins as pseudo-attributes ("components") of the master entity. |
| | 15 | The "Component Resource" extension provides the functionality to pre-configure and re-use these joins as pseudo-attributes ("components") of the master entity, thereby replacing the joins by simple identifiers (aliases) which can be used to construct queries, e.g. in URLs: |
| | 16 | |
| | 17 | {{{ |
| | 18 | # Join "office": org_organisation <-- id/organisation_id --> org_office |
| | 19 | |
| | 20 | /org/organisation/5/office |
| | 21 | }}} |
| | 22 | |
| | 23 | or |
| | 24 | |
| | 25 | {{{ |
| | 26 | # Join "contact": pr_person <-- pe_id/pe_id --> pr_contact |
| | 27 | |
| | 28 | /pr/person?contact.contact_method=EMAIL&contact.value=user@example.com |
| | 29 | }}} |
| | 30 | |
| | 31 | The "Component Resource" extension is one of the fundamental RAD concepts of the S3 framework. Besides simplified construction of queries, views and self-processing forms it is also one of the fundamental premises for the implicit constraints in S3XML which simplify the mapping and transformation from and to other data models using XSLT. |