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:
- one attaches a new attribute to a class, which takes sections, user and manager roles as input.
- one creates objects which are based on information being stored in 1. At first creation two hidden user groups are being created named user_group and manager_group.
- when editing the object one is not actually storing any object related information, but executing related actions, like copying user objects to a user groups or adding or removing roles/sections and the like.
I started with the datatype and implemented the functions
- validateClassAttributeHTTPInput
- fetchClassAttributeHTTPInput
- parseXML
- defaultClassAttributeContent
- preStoreClassAttribute
- storeClassAttributeContent
- createClassDOMDocument
- storeClassDOMDocument
- domString
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
- content/view
- content/edit
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.
- First question now: Is there going to be any short-coming with this kind of implementation style for the desired functionality?
- Second question: is there a tutorial on how to set up for php debugging within eZPublish? I am used to line-based execution sequence of scripts.
- Third question: could somebody point out the exact calling order for object creation for datatypes? I could not figure it out myself from Thomas Koch's tutorial.
Looking forward to any hints Best wishes Sebastian
|