Hi,
i have a list of say courses and certificates and fun_days. These are all called objects. Every object has its requirements object_requirements. A requirement can be either one of the objects or several of them.
You can take any object without object_requirements as a starting point. "Everybody is allowed to have those objects."
So it could be that:
Introduction_courseis a starting point (no requirements)Introduction_certificatecan be obtained by those who haveIntroduction_course(thiscourseis a requirement of thiscertificate)Funday_swimmingcan be obtained by those who have aIntroduction_certificate(the certificate is a requirement of thefun_day).
Is there a way to create a visual representation of the hierarchical or somewhat structured-flow of this system? The example is fairly simple, but multiple requirements anywhere in the 'tree' should be possible.
This is how I store the requirements:
TABLE: OBJECT_REQUIREMENT
OBJECTTYPE (pk)
OBJECTID (pk)
REQUIREMENT_OBJECTTYPE (pk)
REQUIREMENT_OBJECTID (pk)
TABLE: COURSE
OBJECTID (pk)
OBJECTTYPE // value is always [1] for course
TABLE: CERTIFICATE
OBJECTID (pk)
OBJECTTYPE // value is always [2] for certificate
TABLE: FUN_DAY
OBJECTID (pk)
OBJECTTYPE // value is always [3] for fun_day
Oh and I use PHP and MySQL. But any piece of software which could generate these visual representations would be more than welcome also!