I found this solution to be a tough one, but it needs tweaking.
Imagine, there is a class clsUSERtraining which extends a base class clsUSERmanual. There are many instances of clsUSERtraining each corresponding to a section in the training manual. There are a few training manuals. It is easy to instantiate any of the sections in a training manual morfing into class clsUSERtraining, so the code can remain
$aSECTION = new clsUSERtraining () ; Not a problem. That training manual data is in an ISAM database, and not in a transactional database.
However when Tom Sawyer signs up for a portfolio, he has to complete two training manuals, before given the post(not a terrorist post by any means). Tom Sawyer starts as an apprentice. My php code cannot designate both training manuals to him, in the same php session, because classes cannot remorf.
My solution is to get the job done the next time Tom accesses his data, which could be a simple button confirm click – did you enjoy that?
Before the tentative solution, my idea was to get php to trash its parser and give me a new parser mid-stream, so the needed class can remorf! This is only needed once at signup, because I had to copy its adjacent InfoCenter class to another name so they could run side-by-side.
Any ideas?