Code
$object = new $class ('D', $id)
What is the 'D' for?
Also, does the previous trigger PNObjectUtil select and selectPostProcess functions in the object class?
What I need to do is find a suitable place to do an "Edit Own" check and am using a generic edit function for all objects. This would only need to trigger during the edit function, not detail or view functions.
Using class functions, what would be the best way? If I create a custom class function that is defined for 1 object class, and not for another, will the script fail? ie, $object->checkeditown(); where checkeditown exists in the class definition for object A but not for object B
Or, what is the best method for passing to the class functions that the current mode is EDIT and to trigger a special case in a standard function - like selectPostProcess or validate()
Any ideas?
NCM
