Mabey a better example is the use of the "content" object
most sites I create use a content object. The content contains a few fields like creation time and last modifiefd time, sometime there is also an embargo.


Of course there is some code to update te timestamp when an object is changed.
Now I would like to make the images builder extend the content builder.(of course I dont want to create my onw Images class)


What is best way of doing this?

keep in mind:
-node.delete() should delete the syncnodes to
-node.getXXX("lastmod"); must return the last modified date
-when an image node is changed the itype might have changed

I understand your problem. I think the main problem here is that MMObjectBuilder does not implement an interface. MMBase contains a lot of direct calls to MMObjectBuilder so you are not able to extend that class without problems. This would be different if MMObjectBuilder would extend for example the BuilderInterface. In that case you could easily create your own ContentBuilder class and extend that from MMObjectBuilder. Configure object.xml with ContentBuilder. If i am not wrong the same counts for all builders that extend MMObjectBuilder.

This would enable people so extend all possible builders, but i think it is another issue than the plugable functions i mentioned before. Although both ideas could work together.

Rob





Reply via email to