Hello.
I have an object (basic) with some standard methods I have created - e.g. delete, create, print etc. This object is used to initialize my tables, so I don't have to create the boring forms and tables for create, delete and view what is in the sql table. Inside the object there is a large case method that checks the variable $action and jumps to the correct method. If I click on a delete link the object automatic jumps to the method that deletes the correct row. All this is fine, and saves me a lot of time. However how can I customize this object for each instance? Let’s say I want to have the create method slightly modified for my cars instance. Can I e.g. append another class to the basic class, so that my methods in my cars class overrule the method in my basic class? – If my cars class has a create method it should replace the create method in my basic class. All other methods in my basic object should still work. (Not them that is replaced)
This is an example for my case statement.
…
case 'delete':
$this->delete();
break;
Best regards.
Asbjørn Morell.