Forums / Developer / Datatypes: object creation function sequence a.o.
Sebastian Schoeller
Friday 17 June 2011 6:53:02 am
Dear all,
I am trying to create a datatype to enable us having workshop/teamroom like functionality with a specific but various class type. I am using extensions like ezteamroom, membership, ezssp etc. and datatypes as templates in order to learn/advance. The idea is the following:
I started with the datatype and implemented the functions
After loading the extension. I can attach the attribute to a created class. Also manipulating and storing class contents works from the template subdirectories
I can also access the class related data from the templates in
My trouble starts with the object related information. I do not know which method is called in which sequence for object creation, based on the class definition. I have tried debugging using eZDebug::writeDebug, but I did not succeed in finding the starting point.
Looking forward to any hints
Best wishes
Sebastian
André R.
Saturday 18 June 2011 1:30:53 am
Isn't it better to use worflow / edit handlers for such logic?
Not so sure about order of excution of datatypes, but from a bit higher level you can see order of publish operation in kernel/content/operation_definition.php. Also make sure you take look at extensions that uses external objects, like ezgmaplocation, ezobjectrelation and so on.
eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription @: http://twitter.com/andrerom
Saturday 18 June 2011 5:21:06 am
André,
thanks for replying. I will continue with the two blog entries from Serwatka
http://serwatka.net/blog/ez_publish_3_8_new_custom_edit_handler
http://serwatka.net/blog/enhanced_content_edit_handler_for_validation_rules_in_ez_publish_4_1
Cheers for pointing out the edit handlers. About workflow I have no idea still, but whenever I get there I will ask for some advice.