Forums / General / Dynamic Object Creation

Dynamic Object Creation

Author Message

Florent GUERIN

Tuesday 28 July 2009 2:27:19 am

Hi All,

This is my situation: I have a database which contain data about geographic and administration organisation of France. (like province, town, elected representative)

My question is about Dynamic creation of object, It is possible for me to dynamically create object based on this database ? So i have for example a listing of information about a town, province, elected representative, ...

I hope you can help me.

Thank you.

Florent GUERIN

Matthieu Sévère

Tuesday 28 July 2009 4:50:15 am

You have a nice function to create object eZContentFunctions::createAndPublishObject()
You just have to give attributes of the object to this function and it creates the object using fromString function of datatypes.

I think that with this you can easily implement a script to publish whatever you want.

--
eZ certified developer: http://ez.no/certification/verify/346216