...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
// callback function would be "itemCreateHandler" cGenericDb::register(cGenericDb::CREATE_SUCCESS, 'itemCreateHandler', 'cApiArticle'); // callback function would be "executeCreateHandle" in the class "cCallbackHandler" cGenericDb::register(cGenericDb::CREATE_SUCCESS, array( 'cCallbackHandler', '::executeCreateHandle'), 'cApiArticle'); // unregisters all "CREATE_SUCCESS" events from specified class cGenericDb::unregister(cGenericDb::CREATE_SUCCESS, 'cApiArticle'); |